diff --git a/plugin/android/build.gradle b/plugin/android/build.gradle index 9cf7add..189485e 100644 --- a/plugin/android/build.gradle +++ b/plugin/android/build.gradle @@ -58,8 +58,8 @@ android { abortOnError false } compileOptions { - sourceCompatibility JavaVersion.VERSION_17 - targetCompatibility JavaVersion.VERSION_17 + sourceCompatibility JavaVersion.VERSION_21 + targetCompatibility JavaVersion.VERSION_21 } publishing { singleVariant("release") @@ -68,6 +68,9 @@ android { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:$kotlinxCoroutinesVersion") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinxCoroutinesVersion") } + kotlin { + jvmToolchain(21) + } } repositories { diff --git a/plugin/e2e-tests/android/app/capacitor.build.gradle b/plugin/e2e-tests/android/app/capacitor.build.gradle index 6ff7d33..9b10d25 100644 --- a/plugin/e2e-tests/android/app/capacitor.build.gradle +++ b/plugin/e2e-tests/android/app/capacitor.build.gradle @@ -2,8 +2,8 @@ android { compileOptions { - sourceCompatibility JavaVersion.VERSION_17 - targetCompatibility JavaVersion.VERSION_17 + sourceCompatibility JavaVersion.VERSION_21 + targetCompatibility JavaVersion.VERSION_21 } }