From c5a2689ceff33343a8be623bdd1687486db78123 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 3e5665c2f..4177acde1 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 b77906ed6..b5ebbf59d 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.1.2" apply false - id("com.android.library") version "8.1.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 "1.9.20" apply false }