diff --git a/website/docs/docs/docs-Installing.mdx b/website/docs/docs/docs-Installing.mdx index 7c95e231da..64191e259b 100644 --- a/website/docs/docs/docs-Installing.mdx +++ b/website/docs/docs/docs-Installing.mdx @@ -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 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.