Skip to content

Commit 0d72662

Browse files
authored
build_testapps.py suppresses Dynamic Links on tvOS (#599)
This change updates the build_testapps.py to suppress its build of Dynamic Links even if its passed in as one the provided targets on tvOS.
1 parent f693f3d commit 0d72662

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

scripts/gha/build_testapps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,11 @@ def main(argv):
327327
continue # If setup failed, don't try to build. Move to next testapp.
328328
for p in platforms:
329329
try:
330+
if p not in api_config.platforms:
331+
logging.warning(
332+
"Skipping {0} on {1} as it's not in the platform config.".format(
333+
testapp, p))
334+
continue
330335
if p == _DESKTOP: # e.g. 'Desktop' -> 'OSXUniversal'
331336
p = get_desktop_platform()
332337
if p == _PLAYMODE:

scripts/gha/integration_testing/build_testapps.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"captial_name": "Analytics",
77
"bundle_id": "com.google.firebase.unity.analytics.testapp",
88
"testapp_path": "analytics/testapp",
9+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
910
"plugins": [
1011
"FirebaseAnalytics.unitypackage"
1112
],
@@ -22,6 +23,7 @@
2223
"captial_name": "Auth",
2324
"bundle_id": "com.google.FirebaseUnityAuthTestApp.dev",
2425
"testapp_path": "auth/testapp",
26+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
2527
"plugins": [
2628
"FirebaseAuth.unitypackage"
2729
],
@@ -39,6 +41,7 @@
3941
"captial_name": "Crashlytics",
4042
"bundle_id": "com.google.firebase.unity.crashlytics.testapp",
4143
"testapp_path": "crashlytics/testapp",
44+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
4245
"plugins": [
4346
"FirebaseCrashlytics.unitypackage"
4447
],
@@ -55,6 +58,7 @@
5558
"captial_name": "Database",
5659
"bundle_id": "com.google.firebase.unity.database.testapp",
5760
"testapp_path": "database/testapp",
61+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
5862
"plugins": [
5963
"FirebaseDatabase.unitypackage"
6064
],
@@ -72,6 +76,7 @@
7276
"captial_name": "DynamicLinks",
7377
"bundle_id": "com.google.FirebaseUnityDynamicLinksTestApp.dev",
7478
"testapp_path": "dynamic_links/testapp",
79+
"platforms": ["Android", "Playmode", "iOS", "Desktop"],
7580
"plugins": [
7681
"FirebaseDynamicLinks.unitypackage"
7782
],
@@ -89,6 +94,7 @@
8994
"captial_name": "Firestore",
9095
"bundle_id": "com.google.firebase.firestore.unity.testapp",
9196
"testapp_path": "firestore/testapp",
97+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
9298
"plugins": [
9399
"FirebaseFirestore.unitypackage",
94100
"FirebaseAuth.unitypackage"
@@ -108,6 +114,7 @@
108114
"captial_name": "Functions",
109115
"bundle_id": "com.google.firebase.unity.functions.testapp",
110116
"testapp_path": "functions/testapp",
117+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
111118
"plugins": [
112119
"FirebaseFunctions.unitypackage",
113120
"FirebaseAuth.unitypackage"
@@ -126,6 +133,7 @@
126133
"captial_name": "Installations",
127134
"bundle_id": "com.google.firebase.unity.fis.testapp",
128135
"testapp_path": "installations/testapp",
136+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
129137
"plugins": [
130138
"FirebaseInstallations.unitypackage"
131139
],
@@ -142,6 +150,7 @@
142150
"captial_name": "Messaging",
143151
"bundle_id": "com.google.FirebaseUnityMessagingTestApp.dev",
144152
"testapp_path": "messaging/testapp",
153+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
145154
"plugins": [
146155
"FirebaseMessaging.unitypackage"
147156
],
@@ -159,6 +168,7 @@
159168
"captial_name": "RemoteConfig",
160169
"bundle_id": "com.google.firebase.unity.remoteconfig.testapp",
161170
"testapp_path": "remote_config/testapp",
171+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
162172
"plugins": [
163173
"FirebaseRemoteConfig.unitypackage"
164174
],
@@ -175,6 +185,7 @@
175185
"captial_name": "Storage",
176186
"bundle_id": "com.google.firebase.unity.storage.testapp",
177187
"testapp_path": "storage/testapp",
188+
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Desktop"],
178189
"plugins": [
179190
"FirebaseStorage.unitypackage"
180191
],

scripts/gha/integration_testing/config_reader.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def read_config(path=None):
100100
captial_name=api["captial_name"],
101101
testapp_path=api["testapp_path"],
102102
plugins=api["plugins"],
103+
platforms=api["platforms"],
103104
bundle_id=api["bundle_id"],
104105
upm_packages=api.get("upm_packages", None),
105106
entitlements=api.get("entitlements", None),
@@ -136,6 +137,7 @@ class APIConfig(object):
136137
captial_name = attr.ib()
137138
testapp_path = attr.ib() # Relative path to this testapp's directory
138139
plugins = attr.ib() # .unitypackages
140+
platforms = attr.ib() # supported platforms
139141
bundle_id = attr.ib()
140142
upm_packages = attr.ib() # Optional package tars for use_local_packages
141143
entitlements = attr.ib() # Optional relative path to an entitlements file

0 commit comments

Comments
 (0)