Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions website/docs/docs/docs-Installing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,52 @@ In Xcode, you will need to edit this file: `AppDelegate.h`. Its content should l
+ [super application:application didFinishLaunchingWithOptions:launchOptions];
```

### Firebase integration on React-Native 0.79:

For Firebase integration with static frameworks the following change needs to be added to your `podfile`:

`podfile`
```diff
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end

+ static_frameworks = [
+ 'FirebaseCore',
+ 'FirebaseCoreExtension',
+ 'GoogleUtilities',
+ 'FirebaseCoreInternal',
+ 'FirebaseInstallations',
+ 'GoogleDataTransport',
+ 'FirebaseFirestoreInternal',
+ 'FirebaseMessagingInternal',
+ 'FirebaseAuth',
+ ]

+ pre_install do |installer|
+ installer.pod_targets.each do |pod|
+ if static_frameworks.include?(pod.name)
+ puts "Configuring #{pod.name} as static framework"
+ def pod.build_type
+ Pod::BuildType.new(:linkage => :static, :packaging => :framework)
+ end
+ end
+ end
+ end

target <ProjectName> do
config = use_native_modules!

+ $RNFirebaseAsStaticFramework = true

+ pod 'FirebaseAuthInterop', :modular_headers => true
+ pod 'FirebaseAppCheckInterop', :modular_headers => true
+ pod 'RecaptchaInterop', :modular_headers => true
...
```

### Android

> Make sure your Android Studio installation is up to date. We recommend editing `gradle` and `kotlin` files in Android Studio as the IDE will suggest fixes and point out errors, this way you avoid most common pitfalls.
Expand Down