MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / choose_targets

Function choose_targets

scripts/ios/create-shared-scheme.py:83–94  ·  view source on GitHub ↗
(targets: Iterable[Target])

Source from the content-addressed store, hash-verified

81
82
83def choose_targets(targets: Iterable[Target]) -> tuple[Optional[Target], Optional[Target], Optional[Target]]:
84 app = None
85 ui = None
86 unit = None
87 for target in targets:
88 if target.product_type.endswith(".application") and app is None:
89 app = target
90 elif target.product_type.endswith(".bundle.ui-testing") and ui is None:
91 ui = target
92 elif target.product_type.endswith(".bundle.unit-test") and unit is None:
93 unit = target
94 return app, unit, ui
95
96
97def render_testable(target: Target, container: str) -> str:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected