Skip to content

Commit

Permalink
Add WKWatchKitApp key by default to legacy watchOS 2 application bund…
Browse files Browse the repository at this point in the history
…les hosting an extension. (#1655)

This key is used to disambiguate watchOS 2 app bundles from the new
single target watchOS app format pioneered by Xcode 14, supporting
watchOS 7 and later.

PiperOrigin-RevId: 473031666
(cherry picked from commit fdd377d)

Co-authored-by: Nicholas Levin <[email protected]>
  • Loading branch information
brentleyjones and nglevin authored Sep 8, 2022
1 parent 7798c4c commit 66861e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions apple/internal/rule_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ _RULE_TYPE_DESCRIPTORS = {
"watchos": {
# watchos_application
apple_product_type.watch2_application: _describe_rule_type(
additional_infoplist_values = {"WKWatchKitApp": True},
allowed_device_families = ["watch"],
allows_locale_trimming = True,
app_icon_parent_extension = ".xcassets",
Expand Down
1 change: 1 addition & 0 deletions test/starlark_tests/watchos_application_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def watchos_application_test_suite(name):
"DTXcodeBuild": "*",
"MinimumOSVersion": "4.0",
"UIDeviceFamily:0": "4",
"WKWatchKitApp": "true",
},
tags = [name],
)
Expand Down

0 comments on commit 66861e2

Please sign in to comment.