Commit a1e8eb9
authored
fix(android): bump JVM target from 11 to 17 (#68)
React Native 0.80+ ships with Gradle/AGP defaults that compile host
app Java with JVM 17. AGP's `JavaCompile` / `KotlinCompile` consistency
check fails the Kotlin compile task when this library's `jvmTarget`
("11") disagrees with the consumer's compileJavaWithJavac target ("17").
Bumping both `sourceCompatibility`/`targetCompatibility` and
`kotlinOptions.jvmTarget` to 17 aligns the library with the modern RN
toolchain. Apps still on JVM 11 are unaffected as long as their AGP
version supports JDK 17 source level (AGP 7.4+).
Repro: any RN 0.80+ host project pulling `@frontegg/react-native`
fails `:react-native_frontegg:compileDebugKotlin` with:
> Inconsistent JVM-target compatibility detected for tasks
> 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (11).1 parent 7aca8c0 commit a1e8eb9
0 file changed
0 commit comments