Skip to content

Commit d3ee70c

Browse files
authored
Merge pull request #2 from smithmicro/SPFATT-4135-Update_Local_firebase-ios-sdk
SPFATT-4135 - Update local firebase_ios_sdk
2 parents 84b9d57 + 9a56d95 commit d3ee70c

262 files changed

Lines changed: 12196 additions & 1290 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/abtesting.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ jobs:
3838
run: scripts/setup_bundler.sh
3939
- name: Xcode
4040
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
41-
- name: Build and test
42-
run: |
43-
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseABTesting.podspec \
44-
--platforms=${{ matrix.target }}
41+
- uses: nick-fields/retry@v3
42+
with:
43+
timeout_minutes: 120
44+
max_attempts: 3
45+
retry_on: error
46+
retry_wait_seconds: 120
47+
command: scripts/pod_lib_lint.rb FirebaseABTesting.podspec --platforms=${{ matrix.target }}
4548

4649
spm:
4750
# Don't run on private repo unless it is a PR.
@@ -65,8 +68,13 @@ jobs:
6568
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
6669
- name: Initialize xcodebuild
6770
run: scripts/setup_spm_tests.sh
68-
- name: Unit Tests
69-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh ABTestingUnit ${{ matrix.target }} spm
71+
- uses: nick-fields/retry@v3
72+
with:
73+
timeout_minutes: 120
74+
max_attempts: 3
75+
retry_on: error
76+
retry_wait_seconds: 120
77+
command: scripts/build.sh ABTestingUnit ${{ matrix.target }} spm
7078

7179
catalyst:
7280
# Don't run on private repo unless it is a PR.
@@ -81,8 +89,13 @@ jobs:
8189
- uses: ruby/setup-ruby@v1
8290
- name: Setup Bundler
8391
run: scripts/setup_bundler.sh
84-
- name: Setup project and Build for Catalyst
85-
run: scripts/test_catalyst.sh FirebaseABTesting test FirebaseABTesting-Unit-unit
92+
- uses: nick-fields/retry@v3
93+
with:
94+
timeout_minutes: 120
95+
max_attempts: 3
96+
retry_on: error
97+
retry_wait_seconds: 120
98+
command: scripts/test_catalyst.sh FirebaseABTesting test FirebaseABTesting-Unit-unit
8699

87100
quickstart:
88101
# Don't run on private repo unless it is a PR.

.github/workflows/api_diff_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
--commit $GITHUB_SHA \
8383
--run_id ${{github.run_id}}
8484
85-
- uses: actions/upload-artifact@v3
85+
- uses: actions/upload-artifact@v4
8686
if: ${{ !cancelled() }}
8787
with:
8888
name: api_info_and_report

.github/workflows/auth.yml

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,21 @@ jobs:
4444
run: scripts/configure_test_keychain.sh
4545
- name: Xcode
4646
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
47-
- name: Build and test
48-
run: |
49-
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} \
50-
${{ matrix.tests }}
47+
- uses: nick-fields/retry@v3
48+
with:
49+
timeout_minutes: 120
50+
max_attempts: 3
51+
retry_on: error
52+
retry_wait_seconds: 120
53+
command: scripts/pod_lib_lint.rb ${{ matrix.podspec }} --platforms=${{ matrix.target }} ${{ matrix.tests }}
5154

5255
integration-tests:
5356
# Don't run on private repo unless it is a PR.
5457
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
5558

5659
env:
5760
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
58-
runs-on: macos-12
61+
runs-on: macos-13
5962
steps:
6063
- uses: actions/checkout@v4
6164
- uses: mikehardy/buildcache-action@c87cea0ccd718971d6cc39e672c4f26815b6c126
@@ -82,9 +85,15 @@ jobs:
8285
FirebaseAuth/Tests/Sample/Sample/Sample.entitlements "$plist_secret"
8386
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/AuthSample/Credentials.swift.gpg \
8487
FirebaseAuth/Tests/Sample/SwiftApiTests/Credentials.swift "$plist_secret"
85-
86-
- name: BuildAndTest # can be replaced with pod lib lint with CocoaPods 1.10
87-
run: ([ -z $plist_secret ] || scripts/third_party/travis/retry.sh scripts/build.sh Auth iOS)
88+
- name: Xcode
89+
run: sudo xcode-select -s /Applications/Xcode_15.1.app/Contents/Developer
90+
- uses: nick-fields/retry@v3
91+
with:
92+
timeout_minutes: 120
93+
max_attempts: 3
94+
retry_on: error
95+
retry_wait_seconds: 120
96+
command: ([ -z $plist_secret ] || scripts/build.sh Auth iOS)
8897

8998
spm:
9099
# Don't run on private repo unless it is a PR.
@@ -110,8 +119,13 @@ jobs:
110119
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
111120
- name: Initialize xcodebuild
112121
run: scripts/setup_spm_tests.sh
113-
- name: Unit Tests
114-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }} ${{ matrix.test }}
122+
- uses: nick-fields/retry@v3
123+
with:
124+
timeout_minutes: 120
125+
max_attempts: 3
126+
retry_on: error
127+
retry_wait_seconds: 120
128+
command: scripts/third_party/travis/retry.sh ./scripts/build.sh AuthUnit ${{ matrix.target }} ${{ matrix.test }}
115129

116130
catalyst:
117131
# Don't run on private repo unless it is a PR.
@@ -125,9 +139,13 @@ jobs:
125139
- uses: ruby/setup-ruby@v1
126140
- name: Setup Bundler
127141
run: scripts/setup_bundler.sh
128-
- name: Setup project and Build for Catalyst
129-
# Only build the unit tests on Catalyst. Their keychain reliance causes several failures.
130-
run: scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit
142+
- uses: nick-fields/retry@v3
143+
with:
144+
timeout_minutes: 120
145+
max_attempts: 3
146+
retry_on: error
147+
retry_wait_seconds: 120
148+
command: scripts/test_catalyst.sh FirebaseAuth build FirebaseAuth-Unit-unit
131149

132150
quickstart:
133151
# Don't run on private repo unless it is a PR.
@@ -194,5 +212,10 @@ jobs:
194212
run: scripts/setup_bundler.sh
195213
- name: Configure test keychain
196214
run: scripts/configure_test_keychain.sh
197-
- name: PodLibLint Auth Cron
198-
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}
215+
- uses: nick-fields/retry@v3
216+
with:
217+
timeout_minutes: 120
218+
max_attempts: 3
219+
retry_on: error
220+
retry_wait_seconds: 120
221+
command: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAuth.podspec --platforms=${{ matrix.target }} ${{ matrix.flags }}

.github/workflows/crashlytics.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ jobs:
4141
run: scripts/setup_bundler.sh
4242
- name: Xcode
4343
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
44-
- name: Build and test
45-
run: |
46-
scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} \
47-
${{ matrix.tests }}
44+
- uses: nick-fields/retry@v3
45+
with:
46+
timeout_minutes: 120
47+
max_attempts: 3
48+
retry_on: error
49+
retry_wait_seconds: 120
50+
command: scripts/pod_lib_lint.rb FirebaseCrashlytics.podspec --platforms=${{ matrix.target }} ${{ matrix.tests }}
4851

4952
spm:
5053
# Don't run on private repo unless it is a PR.
@@ -68,9 +71,13 @@ jobs:
6871
run: sudo xcode-select -s /Applications/${{ matrix.xcode }}.app/Contents/Developer
6972
- name: Initialize xcodebuild
7073
run: scripts/setup_spm_tests.sh
71-
- name: Unit Tests
72-
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlyticsUnit ${{ matrix.target }} spm
73-
74+
- uses: nick-fields/retry@v3
75+
with:
76+
timeout_minutes: 120
77+
max_attempts: 3
78+
retry_on: error
79+
retry_wait_seconds: 120
80+
command: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseCrashlyticsUnit ${{ matrix.target }} spm
7481

7582
catalyst:
7683
# Don't run on private repo unless it is a PR.
@@ -85,8 +92,13 @@ jobs:
8592
- uses: ruby/setup-ruby@v1
8693
- name: Setup Bundler
8794
run: scripts/setup_bundler.sh
88-
- name: Setup project and Build for Catalyst
89-
run: scripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit
95+
- uses: nick-fields/retry@v3
96+
with:
97+
timeout_minutes: 120
98+
max_attempts: 3
99+
retry_on: error
100+
retry_wait_seconds: 120
101+
command: scripts/test_catalyst.sh FirebaseCrashlytics test FirebaseCrashlytics-Unit-unit
90102

91103
quickstart:
92104
# Don't run on private repo unless it is a PR.

.github/workflows/firebase_app_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseAppCheckUnit iOS spm ${{ matrix.diagnostic }}
7373
- name: Upload raw logs if failed
7474
if: ${{ failure() }}
75-
uses: actions/upload-artifact@v2
75+
uses: actions/upload-artifact@v4
7676
with:
7777
name: failure-xcodebuild-raw-logs
7878
path: xcodebuild.log

.github/workflows/health-metrics-presubmit.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
run: scripts/setup_bundler.sh
7373
- name: Build and test
7474
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseABTesting --platform=${{ matrix.target }}
75-
- uses: actions/upload-artifact@v2
75+
- uses: actions/upload-artifact@v3
7676
with:
7777
name: codecoverage
7878
path: /Users/runner/*.xcresult
@@ -92,7 +92,7 @@ jobs:
9292
run: scripts/setup_bundler.sh
9393
- name: Build and test
9494
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseAuth --platform=${{ matrix.target }}
95-
- uses: actions/upload-artifact@v2
95+
- uses: actions/upload-artifact@v3
9696
with:
9797
name: codecoverage
9898
path: /Users/runner/*.xcresult
@@ -115,7 +115,9 @@ jobs:
115115
run: scripts/setup_bundler.sh
116116
- name: Build and test
117117
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseDatabase --platform=${{ matrix.target }}
118-
- uses: actions/upload-artifact@v2
118+
# TODO: Make sure that https://github.com/actions/upload-artifact/issues/478 is resolved
119+
# before going to actions/upload-artifact@v4.
120+
- uses: actions/upload-artifact@v3
119121
with:
120122
name: codecoverage
121123
path: /Users/runner/*.xcresult
@@ -138,7 +140,7 @@ jobs:
138140
run: scripts/setup_bundler.sh
139141
- name: Build and test
140142
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseDynamicLinks --platform=${{ matrix.target }}
141-
- uses: actions/upload-artifact@v2
143+
- uses: actions/upload-artifact@v3
142144
with:
143145
name: codecoverage
144146
path: /Users/runner/*.xcresult
@@ -164,7 +166,7 @@ jobs:
164166
run: |
165167
export EXPERIMENTAL_MODE=true
166168
./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseFirestore --platform=${{ matrix.target }}
167-
- uses: actions/upload-artifact@v2
169+
- uses: actions/upload-artifact@v3
168170
with:
169171
name: codecoverage
170172
path: /Users/runner/*.xcresult
@@ -187,7 +189,7 @@ jobs:
187189
run: scripts/setup_bundler.sh
188190
- name: Build and test
189191
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseFunctions --platform=${{ matrix.target }}
190-
- uses: actions/upload-artifact@v2
192+
- uses: actions/upload-artifact@v3
191193
with:
192194
name: codecoverage
193195
path: /Users/runner/*.xcresult
@@ -210,7 +212,7 @@ jobs:
210212
run: scripts/setup_bundler.sh
211213
- name: Build and test
212214
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseInAppMessaging --platform=${{ matrix.target }}
213-
- uses: actions/upload-artifact@v2
215+
- uses: actions/upload-artifact@v3
214216
with:
215217
name: codecoverage
216218
path: /Users/runner/*.xcresult
@@ -233,7 +235,7 @@ jobs:
233235
run: scripts/setup_bundler.sh
234236
- name: Build and test
235237
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseMessaging --platform=${{ matrix.target }}
236-
- uses: actions/upload-artifact@v2
238+
- uses: actions/upload-artifact@v3
237239
with:
238240
name: codecoverage
239241
path: /Users/runner/*.xcresult
@@ -258,7 +260,7 @@ jobs:
258260
run: gem install xcpretty
259261
- name: Build and test
260262
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebasePerformance --platform=${{ matrix.target }}
261-
- uses: actions/upload-artifact@v2
263+
- uses: actions/upload-artifact@v3
262264
with:
263265
name: codecoverage
264266
path: /Users/runner/*.xcresult
@@ -281,7 +283,7 @@ jobs:
281283
run: scripts/setup_bundler.sh
282284
- name: Build and test
283285
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseRemoteConfig --platform=${{ matrix.target }}
284-
- uses: actions/upload-artifact@v2
286+
- uses: actions/upload-artifact@v3
285287
with:
286288
name: codecoverage
287289
path: /Users/runner/*.xcresult
@@ -304,7 +306,7 @@ jobs:
304306
run: scripts/setup_bundler.sh
305307
- name: Build and test
306308
run: ./scripts/health_metrics/pod_test_code_coverage_report.sh --sdk=FirebaseStorage --platform=${{ matrix.target }}
307-
- uses: actions/upload-artifact@v2
309+
- uses: actions/upload-artifact@v3
308310
with:
309311
name: codecoverage
310312
path: /Users/runner/*.xcresult
@@ -331,7 +333,7 @@ jobs:
331333
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/metrics_service_access.json.gpg \
332334
metrics-access.json "${{ env.METRICS_SERVICE_SECRET }}"
333335
gcloud auth activate-service-account --key-file metrics-access.json
334-
- uses: actions/download-artifact@v2
336+
- uses: actions/download-artifact@v3
335337
id: download
336338
with:
337339
path: /Users/runner/test

.github/workflows/health-metrics-release.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)