Skip to content

Commit 6af1b91

Browse files
committed
Firebase pod should be pushed last
1 parent 00885ec commit 6af1b91

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Releases/update-versions.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,11 @@ def PushPodspecs(version_data):
229229
version_data: dictionary of versions to be updated.
230230
"""
231231
pods = version_data.keys()
232-
tmp_dir = tempfile.mkdtemp()
233232
for pod in pods:
234233
LogOrRun('pod cache clean {} --all'.format(pod))
234+
if pod == 'Firebase':
235+
# Do the Firebase pod last
236+
continue
235237
if pod == 'FirebaseFirestore':
236238
warnings_ok = ' --allow-warnings'
237239
else:
@@ -240,7 +242,9 @@ def PushPodspecs(version_data):
240242
podspec = '{}.podspec'.format(pod)
241243
LogOrRun('pod repo push --skip-tests --use-json {} {}{}'
242244
.format(GetCpdcInternal(), podspec, warnings_ok))
243-
os.system('rm -rf {}'.format(tmp_dir))
245+
LogOrRun('pod repo push --skip-tests --use-json --skip-import-validation ' +
246+
'--sources=sso://cpdc-internal/firebase.git,https://cdn.cocoapods.org' +
247+
' {} {}{}'.format(GetCpdcInternal(), podspec, warnings_ok))
244248

245249

246250
def UpdateVersions():

0 commit comments

Comments
 (0)