Skip to content

Commit 1e0263f

Browse files
committed
Restore logic for watchos complications
1 parent 1dc75ac commit 1e0263f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apple/internal/resource_actions/actool.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ def _validate_asset_files_and_generate_args(
432432
)
433433
args.extend(_args_for_launch_images(launch_image_files = launch_image_files))
434434

435+
# Add arguments for watch extension complication, if there is one.
436+
complication_files = [f for f in asset_files if ".complicationset/" in f.path]
437+
if product_type == apple_product_type.watch2_extension and complication_files:
438+
args += ["--complication", "Complication"]
439+
435440
return args
436441

437442
def _alticonstool_args(

0 commit comments

Comments
 (0)