Skip to content

Commit 4bdc4fb

Browse files
committed
Migrate off CocoaPods (#403)
* move crash, rtdb, and appcheck to spm * move firestore to spm * migrate firoptions example * migrate functions to spm * migrate iam, installations, functions again, storage * remove pod invocations from workflows * add CI for other products * fix tests * use xcode 16 for storage * swift 6 updates and sendable hack * use xcode 16 for objc build
1 parent d0e2653 commit 4bdc4fb

File tree

52 files changed

+926
-3289
lines changed

Some content is hidden

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

52 files changed

+926
-3289
lines changed

.github/workflows/appcheck.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- 'appcheck/**'
5+
- '.github/workflows/appcheck.yml'
6+
name: App Check
7+
jobs:
8+
swift-build:
9+
name: Swift build
10+
runs-on: macOS-latest
11+
strategy:
12+
matrix:
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Build Swift snippets
18+
run: |
19+
cd appcheck
20+
xcodebuild -project AppCheckSnippets.xcodeproj clean build -scheme AppCheckSnippetsSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
21+
env:
22+
destination: ${{ matrix.destination }}
23+
objc-build:
24+
name: ObjC build
25+
runs-on: macOS-latest
26+
strategy:
27+
matrix:
28+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@master
32+
- name: Build ObjC snippets
33+
run: |
34+
cd appcheck
35+
xcodebuild -project AppCheckSnippets.xcodeproj clean build -scheme AppCheckSnippetsObjC -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
36+
env:
37+
destination: ${{ matrix.destination }}

.github/workflows/core.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ jobs:
1010
runs-on: macOS-latest
1111
strategy:
1212
matrix:
13-
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 11']
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@master
1717
- name: Build Swift snippets
1818
run: |
1919
cp .github/GoogleService-Info-CI.plist firoptions/FiroptionConfiguration/GoogleService-Info.plist
2020
cd firoptions
21-
pod install --repo-update
22-
xcodebuild -workspace FiroptionConfiguration.xcworkspace clean build -scheme FiroptionConfiguration -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
21+
xcodebuild -project FiroptionConfiguration.xcodeproj clean build -scheme FiroptionConfiguration -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
2322
env:
2423
destination: ${{ matrix.destination }}

.github/workflows/crashlytics.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- 'crashlytics/**'
5+
- '.github/workflows/crashlytics.yml'
6+
name: Crashlytics
7+
jobs:
8+
swift-build:
9+
name: Swift build
10+
runs-on: macOS-latest
11+
strategy:
12+
matrix:
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Build Swift snippets
18+
run: |
19+
cd crashlytics
20+
xcodebuild -project CrashlyticsExample.xcodeproj clean build -scheme CrashlyticsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
21+
env:
22+
destination: ${{ matrix.destination }}
23+
objc-build:
24+
name: ObjC build
25+
runs-on: macOS-latest
26+
strategy:
27+
matrix:
28+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@master
32+
- name: Build ObjC snippets
33+
run: |
34+
cd crashlytics
35+
xcodebuild -project CrashlyticsExample.xcodeproj clean build -scheme CrashlyticsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
36+
env:
37+
destination: ${{ matrix.destination }}

.github/workflows/database.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- 'database/**'
5+
- '.github/workflows/database.yml'
6+
name: Database
7+
jobs:
8+
swift-build:
9+
name: Build combined snippets
10+
runs-on: macOS-latest
11+
strategy:
12+
matrix:
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Build snippets
18+
run: |
19+
cd database
20+
xcodebuild -project DatabaseReference.xcodeproj clean build -scheme DatabaseReference -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
21+
env:
22+
destination: ${{ matrix.destination }}

.github/workflows/firestore.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,30 @@ jobs:
1010
runs-on: macOS-latest
1111
strategy:
1212
matrix:
13-
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 11']
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@master
1717
- name: Build Swift snippets
1818
run: |
1919
cp .github/GoogleService-Info-CI.plist firestore/swift/firestore-smoketest/GoogleService-Info.plist
2020
cd firestore/swift
21-
pod install --repo-update
22-
xcodebuild -workspace firestore-smoketest.xcworkspace clean build -scheme firestore-smoketest -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
21+
xcodebuild -project firestore-smoketest.xcodeproj clean build -scheme firestore-smoketest -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
2322
env:
2423
destination: ${{ matrix.destination }}
2524
objc-build:
2625
name: ObjC build
2726
runs-on: macOS-latest
2827
strategy:
2928
matrix:
30-
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 11']
29+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
3130
steps:
3231
- name: Checkout
3332
uses: actions/checkout@master
3433
- name: Build ObjC snippets
3534
run: |
3635
cp .github/GoogleService-Info-CI.plist firestore/objc/GoogleService-Info.plist
3736
cd firestore/objc
38-
pod install --repo-update
39-
xcodebuild -workspace firestore-smoketest-objc.xcworkspace clean build -scheme firestore-smoketest-objc -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
37+
xcodebuild -project firestore-smoketest-objc.xcodeproj clean build -scheme firestore-smoketest-objc -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
4038
env:
4139
destination: ${{ matrix.destination }}

.github/workflows/functions.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- 'functions/**'
5+
- '.github/workflows/functions.yml'
6+
name: Functions
7+
jobs:
8+
swift-build:
9+
name: Swift build
10+
runs-on: macOS-latest
11+
strategy:
12+
matrix:
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Build Swift snippets
18+
run: |
19+
cd functions
20+
xcodebuild -project FunctionsExample.xcodeproj clean build -scheme FunctionsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
21+
env:
22+
destination: ${{ matrix.destination }}
23+
objc-build:
24+
name: ObjC build
25+
runs-on: macOS-latest
26+
strategy:
27+
matrix:
28+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@master
32+
- name: Build ObjC snippets
33+
run: |
34+
cd functions
35+
xcodebuild -project FunctionsExample.xcodeproj clean build -scheme FunctionsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
36+
env:
37+
destination: ${{ matrix.destination }}

.github/workflows/installations.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@ jobs:
1010
runs-on: macOS-latest
1111
strategy:
1212
matrix:
13-
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 11']
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@master
1717
- name: Build Swift snippets
1818
run: |
1919
cd installations/
20-
pod install --repo-update
21-
xcodebuild -workspace InstallationsSnippets.xcworkspace clean build -scheme InstallationsSnippets -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
20+
xcodebuild -project InstallationsSnippets.xcodeproj clean build -scheme InstallationsSnippets -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
2221
env:
2322
destination: ${{ matrix.destination }}

.github/workflows/ml-functions.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- 'ml-functions/**'
5+
- '.github/workflows/ml-functions.yml'
6+
name: Functions (ML)
7+
jobs:
8+
swift-build:
9+
name: Swift build
10+
runs-on: macOS-latest
11+
strategy:
12+
matrix:
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Build Swift snippets
18+
run: |
19+
cd ml-functions
20+
xcodebuild -project MLFunctionsExample.xcodeproj clean build -scheme MLFunctionsExampleSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
21+
env:
22+
destination: ${{ matrix.destination }}
23+
objc-build:
24+
name: ObjC build
25+
runs-on: macOS-latest
26+
strategy:
27+
matrix:
28+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@master
32+
- name: Build ObjC snippets
33+
run: |
34+
cd ml-functions
35+
xcodebuild -project MLFunctionsExample.xcodeproj clean build -scheme MLFunctionsExample -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
36+
env:
37+
destination: ${{ matrix.destination }}

.github/workflows/storage.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
on:
2+
pull_request:
3+
paths:
4+
- 'storage/**'
5+
- '.github/workflows/storage.yml'
6+
name: Storage
7+
jobs:
8+
swift-build:
9+
name: Swift build
10+
runs-on: macOS-latest
11+
strategy:
12+
matrix:
13+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
- name: Build Swift snippets
18+
run: |
19+
sudo xcode-select -switch /Applications/Xcode_16.1.app/Contents/Developer
20+
cd storage
21+
xcodebuild -project StorageReference.xcodeproj clean build -scheme StorageReferenceSwift -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
22+
env:
23+
destination: ${{ matrix.destination }}
24+
objc-build:
25+
name: ObjC build
26+
runs-on: macOS-latest
27+
strategy:
28+
matrix:
29+
destination: ['platform=iOS Simulator,OS=latest,name=iPhone 16']
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@master
33+
- name: Build ObjC snippets
34+
run: |
35+
sudo xcode-select -switch /Applications/Xcode_16.1.app/Contents/Developer
36+
cd storage
37+
xcodebuild -project StorageReference.xcodeproj clean build -scheme StorageReference -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
38+
env:
39+
destination: ${{ matrix.destination }}

0 commit comments

Comments
 (0)