Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛] Bug when trying to upgrade my firebase libraries #5447

Closed
1 of 10 tasks
laurpantelimon opened this issue Jun 22, 2021 · 1 comment
Closed
1 of 10 tasks

[🐛] Bug when trying to upgrade my firebase libraries #5447

laurpantelimon opened this issue Jun 22, 2021 · 1 comment
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report

Comments

@laurpantelimon
Copy link

laurpantelimon commented Jun 22, 2021

Issue

So I upgraded all my firebase libraries as follows:

"@react-native-firebase/admob": "^10.1.1" -> "^11.5.0",
"@react-native-firebase/analytics": "^7.6.1" -> "^12.1.0",
"@react-native-firebase/app": "^8.4.1" -> "^12.1.0",
"@react-native-firebase/auth": "^9.1.2" -> "^12.1.0",
"@react-native-firebase/firestore": "^7.6.2" -> "^12.1.0",
"@react-native-firebase/functions": "^7.4.2" -> "^12.1.0",
"@react-native-firebase/messaging": "^7.8.4" -> "^12.1.0",

But when I run pod install (or pod install --repo-update) I get the following error:

[!] CocoaPods could not find compatible versions for pod "Firebase/AdMob":
In Podfile:
RNFBAdMob (from ../node_modules/@react-native-firebase/admob) was resolved to 11.5.0, which depends on
Firebase/AdMob (= 8.1.1)

None of your spec sources contain a spec satisfying the dependency: Firebase/AdMob (= 8.1.1).

You have either:

  • mistyped the name or version.
  • not added the source repo that hosts the Podspec to your Podfile.

[!] NPM package '@react-native-firebase/admob' depends on '@react-native-firebase/app' v11.5.0 but found v12.1.0, this might cause build issues or runtime crashes.

[!] NPM package '@react-native-firebase/admob' depends on '@react-native-firebase/app' v11.5.0 but found v12.1.0, this might cause build issues or runtime crashes.


Project Files

Javascript

Click To Expand

package.json:

# N/A

firebase.json for react-native-firebase v6:

# N/A

iOS

Click To Expand

ios/Podfile:

  • I'm not using Pods
  • I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION


@laurpantelimon laurpantelimon added help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels Jun 22, 2021
@mikehardy
Copy link
Collaborator

You cannot mix and match the versions here

https://invertase.io/blog/react-native-firebase-versioning

You cannot use admob with v12 https://github.com/invertase/react-native-firebase/blob/master/CHANGELOG.md#breaking-changes

AdMob: Removed from upstream SDKs. Stay on v11.5.0 for now if you need AdMob. @invertase/react-native-admob package planned with v11.5.0 code

So you cannot upgrade your libraries past v11.5.0 while still using admob

There are still plans to release a separate admob but it's a human process (time available) and professional thing (admob is not in firebase anymore so it is prioritized behind firebase-specifc items important to the firebase ecosystem)#2355

In essence this is a duplicate of #5329 then and discussion / status is there

I appreciate the understanding while handling all the breaking changes and getting it done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report
Projects
None yet
Development

No branches or pull requests

2 participants