From f32c7108c009f44f85ff029f0f21c2f09d41ebd4 Mon Sep 17 00:00:00 2001 From: Zephyron Date: Mon, 27 Jan 2025 00:47:43 +1000 Subject: [PATCH] android: Update Gradle and Java version requirements Updates Android build configuration to use newer versions: - Upgrade Java/JVM target from 17 to 21 - Update Android Gradle Plugin from 8.1.2 to 8.8.0 These changes modernize the Android build system to use the latest LTS version of Java and the most recent stable Android Gradle Plugin. This enables access to newer language features and build optimizations while maintaining compatibility with modern Android development tools. --- src/android/app/build.gradle.kts | 6 +++--- src/android/build.gradle.kts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts index 5ffa0d178b..7cfb287c8e 100644 --- a/src/android/app/build.gradle.kts +++ b/src/android/app/build.gradle.kts @@ -35,12 +35,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 { diff --git a/src/android/build.gradle.kts b/src/android/build.gradle.kts index 9fb44500b1..a3fcc797bd 100644 --- a/src/android/build.gradle.kts +++ b/src/android/build.gradle.kts @@ -3,8 +3,8 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { - id("com.android.application") version "8.5.2" apply false - id("com.android.library") version "8.5.2" apply false + id("com.android.application") version "8.8.0" apply false + id("com.android.library") version "8.8.0" apply false id("org.jetbrains.kotlin.android") version "2.0.20" apply false }