Skip to content

Commit 073520c

Browse files
Merge branch 'main' into feat/add-coverage-options
2 parents f0b4bdf + 53036fa commit 073520c

24 files changed

+1706
-611
lines changed

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ bazel_dep(name = "bazel_features", version = "1.3.0")
1010
bazel_dep(name = "bazel_skylib", version = "1.3.0")
1111
bazel_dep(
1212
name = "rules_swift",
13-
version = "1.6.0",
13+
version = "1.18.0",
1414
max_compatibility_level = 2,
1515
repo_name = "build_bazel_rules_swift",
1616
)
1717
bazel_dep(
1818
name = "rules_apple",
19-
version = "2.0.0",
19+
version = "3.6.0",
2020
repo_name = "build_bazel_rules_apple",
2121
)
2222
bazel_dep(name = "rules_python", version = "0.27.1")
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
load("@build_bazel_rules_apple//apple:apple.bzl", "local_provisioning_profile")
2+
load("@build_bazel_rules_apple//apple:ios.bzl", "ios_extension")
3+
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
4+
load("@rules_xcodeproj//xcodeproj:defs.bzl", "xcode_provisioning_profile")
5+
load(
6+
"//:xcodeproj_targets.bzl",
7+
"IOS_BUNDLE_ID",
8+
"TEAMID",
9+
)
10+
11+
config_setting(
12+
name = "device_build",
13+
values = {
14+
"cpu": "ios_arm64",
15+
},
16+
)
17+
18+
ios_extension(
19+
name = "ExtensionKitExtension",
20+
bundle_id = "{}.extensionkit-extension".format(IOS_BUNDLE_ID),
21+
extensionkit_extension = True,
22+
families = ["iphone"],
23+
infoplists = [":Info.plist"],
24+
minimum_os_version = "15.0",
25+
provisioning_profile = select({
26+
":device_build": ":xcode_profile",
27+
"//conditions:default": None,
28+
}),
29+
version = "//iOSApp:Version",
30+
visibility = ["//iOSApp:__subpackages__"],
31+
deps = [
32+
"ExtensionKitExtension.library",
33+
],
34+
)
35+
36+
xcode_provisioning_profile(
37+
name = "xcode_profile",
38+
managed_by_xcode = True,
39+
provisioning_profile = ":xcode_managed_profile",
40+
tags = ["manual"],
41+
)
42+
43+
local_provisioning_profile(
44+
name = "xcode_managed_profile",
45+
profile_name = "iOS Team Provisioning Profile: {}.extensionkit-extension".format(IOS_BUNDLE_ID),
46+
tags = ["manual"],
47+
team_id = TEAMID,
48+
)
49+
50+
swift_library(
51+
name = "ExtensionKitExtension.library",
52+
srcs = glob(["**/*.swift"]),
53+
module_name = "ExtensionKitExtension",
54+
tags = ["manual"],
55+
visibility = ["//:__subpackages__"],
56+
)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleName</key>
6+
<string>$(PRODUCT_NAME)</string>
7+
<key>CFBundleVersion</key>
8+
<string>1.0</string>
9+
<key>CFBundleShortVersionString</key>
10+
<string>1.0</string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundlePackageType</key>
14+
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
15+
<key>EXAppExtensionAttributes</key>
16+
<dict>
17+
<key>EXExtensionPointIdentifier</key>
18+
<string>com.apple.generic-extension</string>
19+
</dict>
20+
</dict>
21+
</plist>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Foundation
2+
3+
public class main {
4+
public init() {}
5+
public func main() { print("Hello world") }
6+
}

examples/integration/iOSApp/Source/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ ios_application(
5252
":device_build": None,
5353
"//conditions:default": "iOSApp_ExecutableName",
5454
}),
55-
extensions = ["//WidgetExtension"],
55+
extensions = [
56+
"//ExtensionKitExtension",
57+
"//WidgetExtension",
58+
],
5659
families = ["iphone"],
5760
frameworks = [
5861
"//iOSApp/Source/CoreUtilsObjC:FrameworkCoreUtilsObjC",
Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
1-
CONFIGURATION-STABLE-0 darwin_x86_64-dbg-ST-407e30105d50
2-
CONFIGURATION-STABLE-1 darwin_x86_64-dbg-ST-0cb41a45890d
3-
CONFIGURATION-STABLE-2 darwin_x86_64-opt-ST-3ebaaa60f9ea
4-
CONFIGURATION-STABLE-3 ios_x86_64-dbg-ios-x86_64-min15.0-applebin_ios-ST-ec26bca69b41
5-
CONFIGURATION-STABLE-4 watchos_x86_64-dbg-watchos-x86_64-min7.0-applebin_watchos-ST-1043e03348d6
6-
CONFIGURATION-STABLE-5 tvos_x86_64-dbg-tvos-x86_64-min15.0-applebin_tvos-ST-ce438f055cbb
7-
CONFIGURATION-STABLE-6 darwin_x86_64-dbg-macos-x86_64-min12.0-applebin_macos-ST-2def78e7184f
8-
CONFIGURATION-STABLE-7 ios_arm64-dbg-ios-arm64-min15.0-applebin_ios-ST-c30990658771
9-
CONFIGURATION-STABLE-8 watchos_arm64_32-dbg-watchos-arm64_32-min7.0-applebin_watchos-ST-fd2a96b3b11f
10-
CONFIGURATION-STABLE-9 tvos_arm64-dbg-tvos-arm64-min15.0-applebin_tvos-ST-7a5a862cb382
11-
CONFIGURATION-STABLE-10 ios_x86_64-opt-ios-x86_64-min15.0-applebin_ios-ST-2c9b4ecefc25
12-
CONFIGURATION-STABLE-11 watchos_x86_64-opt-watchos-x86_64-min7.0-applebin_watchos-ST-847c5b6a4329
13-
CONFIGURATION-STABLE-12 tvos_x86_64-opt-tvos-x86_64-min15.0-applebin_tvos-ST-85587bfa0dfc
14-
CONFIGURATION-STABLE-13 darwin_x86_64-opt-macos-x86_64-min12.0-applebin_macos-ST-5faa35951e87
15-
CONFIGURATION-STABLE-14 ios_arm64-opt-ios-arm64-min15.0-applebin_ios-ST-9a1a343abca6
16-
CONFIGURATION-STABLE-15 watchos_arm64_32-opt-watchos-arm64_32-min7.0-applebin_watchos-ST-64303a5eeb36
17-
CONFIGURATION-STABLE-16 tvos_arm64-opt-tvos-arm64-min15.0-applebin_tvos-ST-fe56c91186e8
18-
CONFIGURATION-STABLE-17 watchos_x86_64-dbg-watchos-x86_64-min8.0-applebin_watchos-ST-99e1c5fcd7e3
19-
CONFIGURATION-STABLE-18 watchos_arm64_32-dbg-watchos-arm64_32-min8.0-applebin_watchos-ST-9d3d8bec26be
20-
CONFIGURATION-STABLE-19 watchos_x86_64-opt-watchos-x86_64-min8.0-applebin_watchos-ST-0a19b84585db
21-
CONFIGURATION-STABLE-20 watchos_arm64_32-opt-watchos-arm64_32-min8.0-applebin_watchos-ST-f46b06ca0e7b
22-
CONFIGURATION-STABLE-21 darwin_x86_64-dbg-macos-x86_64-min11.0-applebin_macos-ST-12067848ee5c
23-
CONFIGURATION-STABLE-22 darwin_x86_64-opt-macos-x86_64-min11.0-applebin_macos-ST-114572f286c3
24-
CONFIGURATION-STABLE-23 darwin_x86_64-dbg-macos-x86_64-min11.0-applebin_macos-ST-2fa98142772b
25-
CONFIGURATION-STABLE-24 darwin_arm64-dbg-macos-arm64-min11.0-applebin_macos-ST-17dc5fb9af4b
26-
CONFIGURATION-STABLE-25 darwin_x86_64-dbg-macos-x86_64-min11.0-applebin_macos-ST-67006a47c4ef
27-
CONFIGURATION-STABLE-26 darwin_x86_64-opt-macos-x86_64-min11.0-applebin_macos-ST-007da2440a68
28-
CONFIGURATION-STABLE-27 darwin_arm64-opt-macos-arm64-min11.0-applebin_macos-ST-44db42dc8599
29-
CONFIGURATION-STABLE-28 darwin_x86_64-opt-macos-x86_64-min11.0-applebin_macos-ST-b46e9b013234
30-
CONFIGURATION-STABLE-29 darwin_x86_64-dbg-ST-e273d27b8a77
31-
CONFIGURATION-STABLE-30 darwin_x86_64-opt-ST-d92b73c84722
1+
CONFIGURATION-STABLE-0 darwin_x86_64-dbg-ST-376989c9bb44
2+
CONFIGURATION-STABLE-1 darwin_x86_64-dbg-ST-65b9ae3229ca
3+
CONFIGURATION-STABLE-2 darwin_x86_64-opt-ST-4603bbaf5d98
4+
CONFIGURATION-STABLE-3 ios_x86_64-dbg-ios-x86_64-min15.0-applebin_ios-ST-ec49b5570e6a
5+
CONFIGURATION-STABLE-4 watchos_x86_64-dbg-watchos-x86_64-min7.0-applebin_watchos-ST-c601ed35d954
6+
CONFIGURATION-STABLE-5 ios_x86_64-dbg-ios-x86_64-min16.0-applebin_ios-ST-7c661f35007d
7+
CONFIGURATION-STABLE-6 tvos_x86_64-dbg-tvos-x86_64-min15.0-applebin_tvos-ST-8fa93ae60f3c
8+
CONFIGURATION-STABLE-7 darwin_x86_64-dbg-macos-x86_64-min12.0-applebin_macos-ST-e4d1b54e0a5f
9+
CONFIGURATION-STABLE-8 ios_arm64-dbg-ios-arm64-min15.0-applebin_ios-ST-d4ed85805c03
10+
CONFIGURATION-STABLE-9 watchos_arm64_32-dbg-watchos-arm64_32-min7.0-applebin_watchos-ST-2d1383ea1bfd
11+
CONFIGURATION-STABLE-10 ios_arm64-dbg-ios-arm64-min16.0-applebin_ios-ST-9d40ca217462
12+
CONFIGURATION-STABLE-11 tvos_arm64-dbg-tvos-arm64-min15.0-applebin_tvos-ST-f0bf1e4db2b5
13+
CONFIGURATION-STABLE-12 ios_x86_64-opt-ios-x86_64-min15.0-applebin_ios-ST-f0647120a524
14+
CONFIGURATION-STABLE-13 watchos_x86_64-opt-watchos-x86_64-min7.0-applebin_watchos-ST-9b6da1c1ca96
15+
CONFIGURATION-STABLE-14 ios_x86_64-opt-ios-x86_64-min16.0-applebin_ios-ST-98784b0141f7
16+
CONFIGURATION-STABLE-15 tvos_x86_64-opt-tvos-x86_64-min15.0-applebin_tvos-ST-fd3222aa8913
17+
CONFIGURATION-STABLE-16 darwin_x86_64-opt-macos-x86_64-min12.0-applebin_macos-ST-478bd2e7095f
18+
CONFIGURATION-STABLE-17 ios_arm64-opt-ios-arm64-min15.0-applebin_ios-ST-d4b659e4a9d4
19+
CONFIGURATION-STABLE-18 watchos_arm64_32-opt-watchos-arm64_32-min7.0-applebin_watchos-ST-ecd9d94fb4e5
20+
CONFIGURATION-STABLE-19 ios_arm64-opt-ios-arm64-min16.0-applebin_ios-ST-9a1b0839beb3
21+
CONFIGURATION-STABLE-20 tvos_arm64-opt-tvos-arm64-min15.0-applebin_tvos-ST-618e0eabc398
22+
CONFIGURATION-STABLE-21 watchos_x86_64-dbg-watchos-x86_64-min8.0-applebin_watchos-ST-65044d9cb033
23+
CONFIGURATION-STABLE-22 watchos_arm64_32-dbg-watchos-arm64_32-min8.0-applebin_watchos-ST-e2adfc6423ec
24+
CONFIGURATION-STABLE-23 watchos_x86_64-opt-watchos-x86_64-min8.0-applebin_watchos-ST-b7000f81fbba
25+
CONFIGURATION-STABLE-24 watchos_arm64_32-opt-watchos-arm64_32-min8.0-applebin_watchos-ST-58e24dd35eea
26+
CONFIGURATION-STABLE-25 darwin_x86_64-dbg-macos-x86_64-min11.0-applebin_macos-ST-23ced71d870c
27+
CONFIGURATION-STABLE-26 darwin_x86_64-opt-macos-x86_64-min11.0-applebin_macos-ST-5c2767082c6b
28+
CONFIGURATION-STABLE-27 darwin_x86_64-dbg-macos-x86_64-min11.0-applebin_macos-ST-7c4786726810
29+
CONFIGURATION-STABLE-28 darwin_arm64-dbg-macos-arm64-min11.0-applebin_macos-ST-5f46583411cc
30+
CONFIGURATION-STABLE-29 darwin_x86_64-dbg-macos-x86_64-min11.0-applebin_macos-ST-a6b23e99dd1c
31+
CONFIGURATION-STABLE-30 darwin_x86_64-opt-macos-x86_64-min11.0-applebin_macos-ST-d247baf1a2e1
32+
CONFIGURATION-STABLE-31 darwin_arm64-opt-macos-arm64-min11.0-applebin_macos-ST-4320432566be
33+
CONFIGURATION-STABLE-32 darwin_x86_64-opt-macos-x86_64-min11.0-applebin_macos-ST-11b4a0ee8e7b
34+
CONFIGURATION-STABLE-33 darwin_x86_64-dbg-ST-3a99c2752788
35+
CONFIGURATION-STABLE-34 darwin_x86_64-opt-ST-a99a48f137fe

0 commit comments

Comments
 (0)