Skip to content

Commit 737a0bb

Browse files
jvm update to 17
1 parent 39d123c commit 737a0bb

5 files changed

Lines changed: 15 additions & 8 deletions

File tree

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ android {
5555
}
5656

5757
compileOptions {
58-
sourceCompatibility JavaVersion.VERSION_11
59-
targetCompatibility JavaVersion.VERSION_11
58+
sourceCompatibility JavaVersion.VERSION_17
59+
targetCompatibility JavaVersion.VERSION_17
6060
}
6161

6262
kotlinOptions {
63-
jvmTarget = "11"
63+
jvmTarget = "17"
6464
}
6565
}
6666

docs/advanced.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,16 @@ Passkeys provide a seamless, passwordless login experience using WebAuthn and pl
6767
}
6868
```
6969

70-
3. Inside the `android` block, add the following to set Java 8 compatibility:
70+
3. Inside the `android` block, set JVM 17 compatibility (required for React Native 0.80+ and AGP 8.x; use AGP 7.4+ if upgrading from older toolchains):
7171

7272
```groovy
7373
android {
7474
compileOptions {
75-
sourceCompatibility JavaVersion.VERSION_1_8
76-
targetCompatibility JavaVersion.VERSION_1_8
75+
sourceCompatibility JavaVersion.VERSION_17
76+
targetCompatibility JavaVersion.VERSION_17
77+
}
78+
kotlinOptions {
79+
jvmTarget = "17"
7780
}
7881
}
7982
```

docs/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The Frontegg React Native SDK automatically handles token refresh behind the sce
1818

1919
### Supported platforms
2020
- iOS: Deployment target 14.0 or higher
21-
- Android: Minimum SDK version 26 (Android 8.0)
21+
- Android: Minimum SDK version 26 (Android 8.0); **JDK 17** and **AGP 7.4+** for the Android toolchain (required by React Native 0.80+ and AGP 8.x)
2222
- React Native: Version 0.63+ (recommended for best compatibility)
2323
- WebAuthn support (Passkeys):
2424
- iOS: Version 15+ required for platform-level support

example/android/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ android {
108108
buildFeatures {
109109
buildConfig = true
110110
}
111+
compileOptions {
112+
sourceCompatibility JavaVersion.VERSION_17
113+
targetCompatibility JavaVersion.VERSION_17
114+
}
111115
buildTypes {
112116
debug {
113117
signingConfig signingConfigs.debug

example/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
3939
# are providing them.
4040
newArchEnabled=false
4141

42-
# Allow JVM target mismatch between Kotlin (17) and Java (11) in dependencies
42+
# Warn (do not fail) if a transitive dependency still uses a different JVM target
4343
kotlin.jvm.target.validation.mode=warning
4444

4545
# Use this property to enable or disable the Hermes JS engine.

0 commit comments

Comments
 (0)