Skip to content

Commit bd3cc53

Browse files
committed
chore: use jdk 21
1 parent 6e314fe commit bd3cc53

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

plugin/android/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ android {
5858
abortOnError false
5959
}
6060
compileOptions {
61-
sourceCompatibility JavaVersion.VERSION_17
62-
targetCompatibility JavaVersion.VERSION_17
61+
sourceCompatibility JavaVersion.VERSION_21
62+
targetCompatibility JavaVersion.VERSION_21
6363
}
6464
publishing {
6565
singleVariant("release")
@@ -68,6 +68,9 @@ android {
6868
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinxCoroutinesVersion")
6969
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion")
7070
}
71+
kotlin {
72+
jvmToolchain(21)
73+
}
7174
}
7275

7376
repositories {

plugin/e2e-tests/android/app/capacitor.build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
android {
44
compileOptions {
5-
sourceCompatibility JavaVersion.VERSION_17
6-
targetCompatibility JavaVersion.VERSION_17
5+
sourceCompatibility JavaVersion.VERSION_21
6+
targetCompatibility JavaVersion.VERSION_21
77
}
88
}
99

0 commit comments

Comments
 (0)