why was the java version specified in compileOptions removed from the template? #768
Closed
Adnan-Bacic
started this conversation in
Feedback
Replies: 1 comment
-
It has been removed because React Native Gradle Plugin sets the Java version for all the modules in your project so there is no need to specify it in your project. That's one field less for you to configure so one thing less that can go wrong when building things |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i have the version of node in the .nvmrc file
the version of yarn in the .yarnrc.yml file
the version of ruby and cocoapods on the gemfile file
but nowhere is the project version of java specified. i know react native 0.73 will upgrade from 11 to 17 but this is not reflected anywhere in the code. i would have to run
java --version
to see the version. i think it would be very handy if this value was embedded into the project.i know previous version of react native had this code:
on 0.72 that version that would be
and i guess it would be JavaVersion.VERSION_17 on 0.73.
i only remember this because when they updated from 8 to 11 this was already removed and someone suggested adding it here: facebook/react-native#33731 to fix a problem someone was encountering
im just curious as to why this was removed from the template. it seems like it adds a lot of value having the version specific, especially since certain versions of react native rely on a specific java version.
Beta Was this translation helpful? Give feedback.
All reactions