From b07751ed435e3231c509c7af82f1335cb88737fa Mon Sep 17 00:00:00 2001 From: Zephyron Date: Sun, 9 Feb 2025 18:24:45 +1000 Subject: [PATCH] android: Update build toolchain to NDK 28 and Java 21 Update Android build configuration to use the latest NDK version 28.0.13004108 and Java JDK 21. This includes: - Updating ndkVersion from 26.3.11579264 to 28.0.13004108 - Upgrading Java compatibility from Java 17 to Java 21 - Setting Kotlin JVM target from 17 to 21 These changes modernize the Android build toolchain and ensure compatibility with the latest development tools. --- src/android/app/build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index ac1139677..aa98969cc 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -28,7 +28,7 @@ android { namespace = "org.citron.citron_emu" compileSdk = 35 - ndkVersion = "26.3.11579264" + ndkVersion = "28.0.13004108" // "26.3.11579264" buildFeatures { viewBinding = true @@ -36,12 +36,12 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_17 - targetCompatibility = JavaVersion.VERSION_17 + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 } kotlinOptions { - jvmTarget = "17" + jvmTarget = "21" } packaging {