From aa8926aa848d9ac7de6ba7b0f25fb8e9338e635d Mon Sep 17 00:00:00 2001 From: Chace Daniels Date: Tue, 10 Dec 2024 08:12:49 -0800 Subject: [PATCH] chore: use jdk 21 --- android/build.gradle | 8 ++++++-- example-app/android/app/capacitor.build.gradle | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index 49b5d5f..a7446ee 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -40,11 +40,15 @@ android { abortOnError false } compileOptions { - sourceCompatibility JavaVersion.VERSION_17 - targetCompatibility JavaVersion.VERSION_17 + sourceCompatibility JavaVersion.VERSION_21 + targetCompatibility JavaVersion.VERSION_21 } } +kotlin { + jvmToolchain(21) +} + repositories { google() mavenCentral() diff --git a/example-app/android/app/capacitor.build.gradle b/example-app/android/app/capacitor.build.gradle index 99f157e..c039307 100644 --- a/example-app/android/app/capacitor.build.gradle +++ b/example-app/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 } }