-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Expo app plugin adds Firebase import multiple times [Expo 45] #6477
Comments
That does sound irritating. Expo isn't a use case of mine (apologies) so this will need a patch from someone else but I can merge+release anything that comes in related |
@pehagg I think you're right, looks like the following check is not correct:
You should give patch-package a try. Our do you mean by |
@DoctorJohn , Sorry, didn't see this before now. I tried with patch-package, but my changes didn't have any effect when I built the app, regardless what I tried. Might've been missing some step or something 🤷🏻 . Thanks for the fix! |
That sounds like a mis-integration of patch-package somehow. Yarn will obliterate patch-package changes if you re-run yarn and patch-package is not in a postinstall (or maybe even postinstall-postinstall - check patch-package docs) step |
@mikehardy nope, that's not it. I verified several times that the postinstall task ran successfully. Most likely some other issue, but let's not rule out PEBCAK completely 😁 |
Can confirm that the fix is working. Thanks for fixing this @DoctorJohn. |
Issue
On Expo 45, Firebase import gets added every time
expo prebuild
is run on an Expo project that uses dev client and the Firebase app plugin. Most likely caused by the import check inappDelegate.ts
which only checks for@import Firebase
, not#import <Firebase/Firebase.h>
.Had a stab at a local fix/patch, but wasn't able to figure out how to update the plugin code so that my changes would apply.
Not a huge issue, but somewhat annoying because I need to remove the added lines every time I want to check in my changes to version control.
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
:# N/A
AppDelegate.m
:// N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?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:react-native-firebase
version you're using that has this issue:15.3.0
Firebase
module(s) you're using that has the issue:App
TypeScript
?N/A
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: