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: Refix firebase ios sdk dependencies / adopt firebase-ios-sdk 11.5.0 #8130

Merged
merged 4 commits into from
Nov 13, 2024

Conversation

mikehardy
Copy link
Collaborator

@mikehardy mikehardy commented Nov 13, 2024

Description

Note to reviewer: review commit by commit, the diffs are all tiny with hopefully useful messages

With #8127 I discovered that my fix for the temporary build error with firebase-ios-sdk 11.4.1 (in #8074) had a negative side effect - it constrained versions to not slip upwards but it allowed old versions to stay in place.

That is not okay, as we depend on updated versions to bring us new APIs that we use (which was the problem in #8127)

So, with this commit I'm reverting that change as the cure was worse than the disease and there is no other good way to specify the versions since = breaks integration with firestore-ios-sdk-frameworks (I tested it, I was surprised and disappointed)

I take the opportunity in separate commits to:

  • clean old warnings that are obsolete
  • adopt 11.5.0 now that it is out

Related issues

Release Summary

All conventional commits so a rebase merge should work, followed by a release

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

Lots of local testing of pod install with various settings of the firebase-ios-sdk version to see how the new fail-fast error logic behaves, and how the versions in Podfile.lock are resolved


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

firebase-ios-sdk minimum versions are much higher than this currently,
these are no longer necessary
this was intended to be a static framework toggle, use correct name
(vs copy-paste analytics var name) and disable it as !use_frameworks dominates
the setting in practice
@mikehardy mikehardy added platform: ios Workflow: Needs Review Pending feedback or review from a maintainer. labels Nov 13, 2024
Copy link

vercel bot commented Nov 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-firebase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 6:44pm

@mikehardy
Copy link
Collaborator Author

mikehardy commented Nov 13, 2024

Well that's unexpected:

https://github.com/invertase/react-native-firebase/actions/runs/11821842007/job/32937511224#step:14:84

It triggered my new "could not find 11.5.0 firebase-ios-sdk" in CI

Why? Possibly some missing step in workflow, unsure but queued for investigation

edit: Unable to resolve even with very close inspection 🤷 - removed that check, we'll just continue to rely on built-in pod error messages, they're not too bad at least

This reverts commit d03ab42.

the cure was worse than the disease, see:
#8127

If we constrain deps to <=, old deps may be used which is invalid
If we constrain deps to =, then binary firestore-ios-sdk-frameworks does not resolve
If we constrain deps to ~> like FlutterFire it may work
However, we constrained this way for a long time without issue until one build break
that prompted this commit, and the ~> suffered the build break as well in FlutterFire

The break was fixed quickly and had a workaround, so revert appears to be the lesser of all evils
@mikehardy mikehardy merged commit c387357 into main Nov 13, 2024
18 of 19 checks passed
@mikehardy mikehardy deleted the refix-firebase-ios-sdk-dependencies branch November 13, 2024 19:40
@mikehardy mikehardy removed Workflow: Needs Review Pending feedback or review from a maintainer. Needs Attention labels Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🔥[🐛] Crashlytics throws "No known class method for selector" error on Expo
2 participants