-
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
fix(app, expo): Update iOS AppDelegate
plugin to work with Expo SDK 43
#5796
Conversation
This pull request is being automatically deployed with Vercel (learn more). react-native-firebase – ./🔍 Inspect: https://vercel.com/invertase/react-native-firebase/DAxP4rY9JuTyabR5TLs3qHnJitVo react-native-firebase-next – ./website_modular🔍 Inspect: https://vercel.com/invertase/react-native-firebase-next/4eHmft6Ng7RHTFFT2hBaLk4n8CVm [Deployment for a9e91be canceled] |
Codecov Report
@@ Coverage Diff @@
## master #5796 +/- ##
============================================
- Coverage 53.14% 53.14% -0.00%
Complexity 620 620
============================================
Files 208 208
Lines 10069 10071 +2
Branches 1542 1542
============================================
+ Hits 5350 5351 +1
- Misses 4463 4464 +1
Partials 256 256 |
To make the update seamless
8599020
to
a9e91be
Compare
Thanks for this! When you say:
Does that imply perf and crashlytics will have similar issues? If that understanding is correct, any effort to bring them in line with expo-future-state would be really appreciated. This repo sees enough new users / day that if everything isn't nailed down (code + tests + docs) you can see how quickly issue traffic / response eats up all available time then no forward progress happens. The alternative (everything nailed down) is an actual time-saver then |
Not really, unless Google changes the way of installing Firebase on Android, or Gradle file structure changes significantly. The only difference is that the new method adds these fancy
The expo-future-state of plugin system is still unknown 😉 Maybe soon there will be a more reliable way to make such changes, because both mentioned above still rely on regex. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thank you for your continued help here on the expo integration, I really appreciate it and obviously it has some traction from the users based on related traffic
Description
Resolves problem described in #5788
Followed solution from the
react-native-maps
plugin as suggested in the conversation: #5788 (comment)I did NOT update other places to use the new syntax (
mergeContents()
), but I can if asked to do so.To avoid possible problems with duplicate
[FIRApp configure]
call after updating, the new plugin skips if the call is found. ThemergeContents
has this functionality already, but compares only@expo generated headers
which are introduced in this PR, so it wouldn't work with previous plugin versions.These problems themselves could be easily solved by running
expo prebuild --clean
, but IMO it's better to have an extra check instead of users creating issues "expo plugin stopped working. Firebase default app instance already initialized" etc 😉Related issues
Resolves #5788
Release Summary
@react-native-firebase/app
to work with Expo SDK 43.Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
AppDelegate.m
.snap
snapshot files, we can see that the plugin works perfectly in both cases 😁