Skip to content

Commit 93aeed7

Browse files
committed
build(deps): update firebase-ios-sdk to v9
1 parent e5bd716 commit 93aeed7

File tree

6 files changed

+244
-196
lines changed

6 files changed

+244
-196
lines changed

.spellcheck.dict.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ utils
178178
Utils
179179
v5
180180
v6
181+
v9
182+
v15
181183
VPN
182184
VSCode
183185
Wix

docs/index.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ apply plugin: 'com.google.gms.google-services' // <- Add this line
7777

7878
### 3. iOS Setup
7979

80-
To allow the iOS app to securely connect to your Firebase project, a configuration file must be downloaded and added to your project.
80+
To allow the iOS app to securely connect to your Firebase project, a configuration file must be downloaded and added to your project, and you must enable frameworks in CocoaPods
8181

8282
#### Generating iOS credentials
8383

@@ -119,6 +119,18 @@ Within your existing `didFinishLaunchingWithOptions` method, add the following t
119119
}
120120
```
121121

122+
#### Altering CocoaPods to use frameworks
123+
124+
Beginning with firebase-ios-sdk v9+ (react-native-firebase v15+) you must tell CocoaPods to use frameworks.
125+
126+
Open the file `./ios/Podfile` and add this line inside your targets:
127+
128+
```
129+
use_frameworks!
130+
```
131+
132+
> Note `use_frameworks` [is _not_ compatible with Flipper, Hermes, React Native New Architecture or react-native 0.69.0](https://github.com/reactwg/react-native-releases/discussions/21#discussioncomment-2924919). Community support to help fix `use_frameworks` support is welcome!
133+
122134
### 4. Autolinking & rebuilding
123135

124136
Once the above steps have been completed, the React Native Firebase library must be linked to your project and your application needs to be rebuilt.

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
},
6666
"sdkVersions": {
6767
"ios": {
68-
"firebase": "8.15.0"
68+
"firebase": "9.1.0"
6969
},
7070
"android": {
7171
"minSdk": 19,

tests/ios/Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ appPackage = JSON.parse(File.read(File.join('..', '..', 'node_modules', '@react-
55
$FirebaseSDKVersion = appPackage['sdkVersions']['ios']['firebase']
66
#$FirebaseSDKVersion = '8.0.0' # https://firebase.google.com/support/release-notes/ios
77
Pod::UI.puts "react-native-firebase/tests: Using Firebase SDK version '#{$FirebaseSDKVersion}'"
8-
# $RNFirebaseAsStaticFramework = true # toggle this to true (and set 'use_frameworks!' below to test static frameworks)
8+
$RNFirebaseAsStaticFramework = true # toggle this to true (and set 'use_frameworks!' below to test static frameworks)
99

1010
# Toggle this to true for the no-ad-tracking Analytics subspec. Useful at minimum for Kids category apps.
1111
# See: https://firebase.google.com/support/release-notes/ios#analytics - requires firebase-ios-sdk 7.11.0+
@@ -22,7 +22,7 @@ require_relative '../node_modules/@react-native-community/cli-platform-ios/nativ
2222

2323
target 'testing' do
2424
# set this and toggle '$RNFirebaseAsStaticFramework' above to test static frameworks)
25-
# use_frameworks!
25+
use_frameworks!
2626

2727
config = use_native_modules!
2828
use_react_native!(

0 commit comments

Comments
 (0)