-
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, ios-plist): make sure Info.plist exists before processing #5153
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/invertase/react-native-firebase/9PZcKo74kb8ksWw3SqpBSER49H9K |
Codecov Report
@@ Coverage Diff @@
## master #5153 +/- ##
=======================================
Coverage 88.99% 88.99%
=======================================
Files 109 109
Lines 3739 3739
Branches 358 358
=======================================
Hits 3327 3327
Misses 367 367
Partials 45 45 |
Previously there was no dependency stated on Info.plist, so occasionally we would "lose the race" and attempt to interpolate values prior to it existing Since ads requires the Info.plist admob ids in the Info.plist, this resulted in crashes on startup occasionally for users of the admob module Fixes #5152
641b2a7
to
d748c4f
Compare
approved over chat pending eslint fix (re-pushed, checking now...) |
…5677) The path used in the script is `_TARGET_PLIST="${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}"`, but the path specified as "input files" was `$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)`. This caused that sometimes values from `firebase.json` were not taken into account on iOS, because build step "Processing Info.plist" could be executed after "[RNFB] Core Configuration" and it could overwrite the `Info.plist` file. Related #5152 Related #5153
Description
Previously there was no dependency stated on Info.plist, so occasionally we would "lose the race"
and attempt to interpolate values prior to it existing
Since ads requires the Info.plist admob ids in the Info.plist, this resulted in crashes on startup occasionally
for users of the admob module
Noticed this occasionally in CI E2E plus during local testing it was very frustrating!
Related issues
Fixes #5152
Release Summary
conventional commit message
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter