diff --git a/examples/llama.android/app/build.gradle.kts b/examples/llama.android/app/build.gradle.kts index 525ff08e7b..1ea0b5a469 100644 --- a/examples/llama.android/app/build.gradle.kts +++ b/examples/llama.android/app/build.gradle.kts @@ -9,7 +9,7 @@ plugins { android { namespace = "com.example.llama" - compileSdk = 35 + compileSdk = 36 defaultConfig { applicationId = "com.example.llama" @@ -36,11 +36,15 @@ android { } } compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } - kotlinOptions { - jvmTarget = "1.8" + kotlin { + jvmToolchain(17) + + compileOptions { + targetCompatibility = JavaVersion.VERSION_17 + } } buildFeatures { compose = true diff --git a/examples/llama.android/gradle/libs.versions.toml b/examples/llama.android/gradle/libs.versions.toml index 216e3a5a23..de2357a718 100644 --- a/examples/llama.android/gradle/libs.versions.toml +++ b/examples/llama.android/gradle/libs.versions.toml @@ -1,39 +1,39 @@ [versions] # Plugins -agp = "8.9.1" -ksp = "2.1.20-2.0.0" -kotlin = "2.1.20" -dagger-hilt = "2.56.1" +agp = "8.12.2" +ksp = "2.2.10-2.0.2" +kotlin = "2.2.10" +dagger-hilt = "2.57.1" # AndroidX activity = "1.10.1" -core-ktx = "1.15.0" -datastore-preferences = "1.0.0" -lifecycle = "2.8.7" -navigation = "2.8.9" -room = "2.7.0" +core-ktx = "1.17.0" +datastore-preferences = "1.1.7" +lifecycle = "2.9.3" +navigation = "2.9.3" +room = "2.7.2" hilt = "1.2.0" -retrofit2 = "2.11.0" -okhttp3 = "4.12.0" +retrofit2 = "3.0.0" +okhttp3 = "5.1.0" # Kotlin Extensions coroutines = "1.10.2" -serialization = "1.8.1" +serialization = "1.9.0" # Compose -compose-bom = "2025.03.01" -compose-foundation = "1.7.8" +compose-bom = "2025.08.01" +compose-foundation = "1.9.0" compose-material-icons = "1.7.8" -compose-material3 = "1.4.0-alpha12" -compose-ui = "1.7.8" +compose-material3 = "1.4.0-beta03" +compose-ui = "1.9.0" # Accompanist accompanist = "0.36.0" # Testing -espresso-core = "3.5.0" -androidx-junit = "1.1.5" +espresso-core = "3.7.0" +androidx-junit = "1.3.0" junit = "4.13.2" diff --git a/examples/llama.android/gradle/wrapper/gradle-wrapper.properties b/examples/llama.android/gradle/wrapper/gradle-wrapper.properties index 3e76dfc5e9..6b993e909f 100644 --- a/examples/llama.android/gradle/wrapper/gradle-wrapper.properties +++ b/examples/llama.android/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Tue Apr 01 11:15:06 PDT 2025 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/examples/llama.android/llama/build.gradle.kts b/examples/llama.android/llama/build.gradle.kts index 3b44149bb0..e5aeb58ad9 100644 --- a/examples/llama.android/llama/build.gradle.kts +++ b/examples/llama.android/llama/build.gradle.kts @@ -6,7 +6,7 @@ plugins { android { namespace = "android.llama.cpp" - compileSdk = 35 + compileSdk = 36 ndkVersion = "29.0.13113456 rc1" @@ -47,11 +47,15 @@ android { } } compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } - kotlinOptions { - jvmTarget = "1.8" + kotlin { + jvmToolchain(17) + + compileOptions { + targetCompatibility = JavaVersion.VERSION_17 + } } packaging {