From 6d5475a9cf51feb36bb1a45d88b51182ede4a1f8 Mon Sep 17 00:00:00 2001 From: Zephyron Date: Mon, 13 Jan 2025 15:17:39 +1000 Subject: Android: Update build system and dependencies - Update Gradle from 8.1 to 8.10.2 - Update Android Gradle Plugin from 8.1.2 to 8.8.0 - Update Kotlin from 1.9.20 to 2.1.20-Beta1 - Update various AndroidX dependencies to latest versions - Update NDK from 26.1 to 27.2 (with RC1/RC2 options commented) - Update Java target from 17 to 21 - Update Android target SDK from 34 to 35 - Enable additional optimizations in release builds: - Enable shrinkResources - Use proguard-android-optimize.txt - Disable JNI debugging - Replace vector drawables with PNG for ic_citron - Comment out unused ComputeInline constant in dma_pusher.cpp - Update Gradle wrapper and configuration files This updates the Android build system and dependencies to their latest versions while enabling additional optimizations for release builds. The ic_citron icon was converted from vector to PNG format for better compatibility. --- src/android/build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/android/build.gradle.kts') diff --git a/src/android/build.gradle.kts b/src/android/build.gradle.kts index 2bdd77c55..2f993b197 100644 --- a/src/android/build.gradle.kts +++ b/src/android/build.gradle.kts @@ -3,9 +3,9 @@ // 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("org.jetbrains.kotlin.android") version "1.9.20" 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.1.20-Beta1" apply false } tasks.register("clean").configure { @@ -17,6 +17,6 @@ buildscript { google() } dependencies { - classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.6.0") + classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.8.5") } } -- cgit v1.2.3