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

fix(app, ios-plist): make sure Info.plist exists before processing #5153

Merged
merged 1 commit into from
Apr 11, 2021

Conversation

mikehardy
Copy link
Collaborator

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

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
    • Yes
  • My change supports the following platforms;
    • Android
    • iOS
  • My change includes tests;
    • e2e tests added or updated in packages/\*\*/e2e
    • jest tests added or updated in packages/\*\*/__tests__
  • I have updated TypeScript types that are affected by my change.
  • This is a breaking change;
    • Yes
    • No

Test Plan


Think react-native-firebase is great? Please consider supporting the project with any of the below:

@vercel
Copy link

vercel bot commented Apr 10, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/invertase/react-native-firebase/9PZcKo74kb8ksWw3SqpBSER49H9K
✅ Preview: https://react-native-f-git-mikehardy-info-plist-processing-order-47a604.vercel.app

@mikehardy mikehardy requested a review from Salakar April 10, 2021 19:16
@codecov
Copy link

codecov bot commented Apr 10, 2021

Codecov Report

Merging #5153 (11d166d) into master (f0a2957) will not change coverage.
The diff coverage is n/a.

❗ Current head 11d166d differs from pull request most recent head d748c4f. Consider uploading reports for the commit d748c4f to get more accurate results

@@           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
@mikehardy
Copy link
Collaborator Author

approved over chat pending eslint fix (re-pushed, checking now...)

@mikehardy mikehardy added the Workflow: Pending Merge Waiting on CI or similar label Apr 10, 2021
@mikehardy mikehardy merged commit 245149c into master Apr 11, 2021
@mikehardy mikehardy removed the Workflow: Pending Merge Waiting on CI or similar label Apr 11, 2021
@mikehardy mikehardy deleted the @mikehardy/info-plist-processing-order branch April 11, 2021 13:55
mikehardy added a commit that referenced this pull request Apr 11, 2021
mikehardy added a commit that referenced this pull request Apr 12, 2021
mikehardy added a commit that referenced this pull request Apr 12, 2021
mikehardy added a commit that referenced this pull request Apr 12, 2021
mikehardy added a commit that referenced this pull request Apr 12, 2021
mikehardy pushed a commit that referenced this pull request Sep 2, 2021
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cocoapods occasionally processes Info.plist *after* RNFB configuration
1 participant