Skip to content

Commit 6c2f067

Browse files
authored
Modify SDK build Cocoapods inclusion to use frameworks instead of libraries (#905)
* Fix Cocoapod header inclusion path to work for framework-based pods. These don't specify a Pods/Header directory, so the header has to come directly from the Sources/Public directory. * Enable use_frameworks! on pods. * Fix include paths for framework cocoapods. Adds additional paths that are used by some dependency pods. * Fix for GTMSessionFetcher path. * Add use_frameworks! to all integration test podfiles as well. * Set linkage to static for integration tests. * Add git credentials to tvOS build (was mistakenly previously omitted).
1 parent 52d219b commit 6c2f067

File tree

19 files changed

+40
-19
lines changed

19 files changed

+40
-19
lines changed

.github/workflows/integration_tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,12 @@ jobs:
663663
with:
664664
ref: ${{needs.check_and_prepare.outputs.github_ref}}
665665
submodules: true
666+
- name: Store git credentials for all git commands
667+
# Forces all git commands to use authenticated https, to prevent throttling.
668+
shell: bash
669+
run: |
670+
git config --global credential.helper 'store --file /tmp/git-credentials'
671+
echo 'https://${{ github.token }}@github.com' > /tmp/git-credentials
666672
- name: Setup python
667673
uses: actions/setup-python@v2
668674
with:

admob/integration_test/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
source 'https://github.com/CocoaPods/Specs.git'
22
platform :ios, '10.0'
33
# Firebase AdMob test application.
4+
use_frameworks! :linkage => :static
45

56
target 'integration_test' do
67
pod 'Firebase/Analytics', '8.15.0'

analytics/integration_test/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
21
source 'https://github.com/CocoaPods/Specs.git'
32
platform :ios, '10.0'
43
# Firebase Analytics test application.
4+
use_frameworks! :linkage => :static
55

66
target 'integration_test' do
77
platform :ios, '10.0'

app/integration_test/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
21
source 'https://github.com/CocoaPods/Specs.git'
32
platform :ios, '10.0'
43
# Firebase App test application.
4+
use_frameworks! :linkage => :static
55

66
target 'integration_test' do
77
pod 'Firebase/Analytics', '8.15.0'

auth/integration_test/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
21
source 'https://github.com/CocoaPods/Specs.git'
32
# Firebase Auth test application.
3+
use_frameworks! :linkage => :static
44

55
target 'integration_test' do
66
platform :ios, '10.0'

database/integration_test/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
21
source 'https://github.com/CocoaPods/Specs.git'
32
# Firebase Realtime Database test application.
3+
use_frameworks! :linkage => :static
44

55
target 'integration_test' do
66
platform :ios, '10.0'

dynamic_links/integration_test/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
21
source 'https://github.com/CocoaPods/Specs.git'
32
platform :ios, '10.0'
43
# Firebase Dynamic Links test application.
4+
use_frameworks! :linkage => :static
55

66
target 'integration_test' do
77
pod 'Firebase/DynamicLinks', '8.15.0'

firestore/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ elseif(IOS)
392392
nanopb
393393
gRPC-C++
394394
gRPC-Core
395-
)
395+
FirebaseAuth/Interop/Auth/Public
396+
)
396397

397398
if (FIREBASE_XCODE_TARGET_FORMAT STREQUAL "frameworks")
398399
set_target_properties(firebase_firestore PROPERTIES

firestore/integration_test/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
21
source 'https://github.com/CocoaPods/Specs.git'
32
# Firebase Realtime Firestore test application.
3+
use_frameworks! :linkage => :static
44

55
target 'integration_test' do
66
platform :ios, '10.0'

functions/integration_test/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
21
source 'https://github.com/CocoaPods/Specs.git'
32
# Cloud Functions for Firebase test application.
3+
use_frameworks! :linkage => :static
44

55
target 'integration_test' do
66
platform :ios, '10.0'

0 commit comments

Comments
 (0)