-
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(auth,android): fix exception syntax breaks in lower jdk versions #7862
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
I have seen this before - sorry for the breakage, we're generally testing on the newest versions of all the ecosystem components so sometimes this slips through
In general we attempt to support current + last 2 versions of react-native and I'm not sure JDK11 will still work on those, but the patch is small so I'm fine with it to help improve compatibility
there is no reason android should have run that slow and/or timed out - rebased on to current main which has larger runners / updated test rig and pushed that, it will kick CI again and this should go green I think |
Okay - got CI to pass (it uses JDK17), but also had a moment to look at this more closely and I cannot see JDK11 as a viable development platform - I am unable to get it to work for a tangle of reasons despite trying to work through them: 1- crashlytics gradle plugin requires JDK17 or higher --> okay, so I commented that out, perhaps someone on JDK11 doesn't need it? Note that all this testing was done on react-native 0.72 since it is the oldest supported version and higher versions start requiring android gradle plugin 8.x which requires JDK17 (and JDK17 is recommended for react-native per docs at reactnative.dev) 1 and 2 are issues enough, but issue 3 here is a showstopper for me. I don't believe this patch is valid then - as I do not believe we can support JDK11. I'm going to close it and instead propose a PR that updates our docs to indicate that JDK17 is a requirement for react-native-firebase If for some reason staying on JDK11 is a hard requirement for your project vs adopting JDK17 (or 21...) then I can highly recommend patch-package as a way to apply this patch in your local environment |
No worries, I just happened to see it and created a PR. |
Description
As issue, the newly introduced exception syntax breaks the some versions of jdk.
(ex: JDK11, zulu@1.17.0-0)
Related issues
fix #7816
Release Summary
Checklist
Android
iOS
e2e
tests added or updated inpackages/\*\*/e2e
jest
tests added or updated inpackages/\*\*/__tests__
Test Plan
use jdk 11, 17, 21 to build android
Think
react-native-firebase
is great? Please consider supporting the project with any of the below:React Native Firebase
andInvertase
on Twitter🔥