From edd68aeea17ad40d199c477d699be742b302b050 Mon Sep 17 00:00:00 2001 From: Siarhei Luskanau Date: Wed, 17 Jul 2024 10:02:44 +0200 Subject: [PATCH] Downgrade agp and kotlin versions to stable --- app/build.gradle.kts | 9 +++++---- gradle/libs.versions.toml | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 06bf10b..5285acc 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -7,12 +7,12 @@ plugins { android { namespace = "siarhei.luskanau.managed.virtual.device" - compileSdk = 34 + compileSdk = libs.versions.build.android.compileSdk.get().toInt() defaultConfig { applicationId = "siarhei.luskanau.managed.virtual.device" - minSdk = 24 - targetSdk = 34 + minSdk = libs.versions.build.android.minSdk.get().toInt() + targetSdk = libs.versions.build.android.targetSdk.get().toInt() versionCode = 1 versionName = "1.0" @@ -53,7 +53,7 @@ android { emulatorSnapshots { enableForTestFailures = false } - (27..34).forEach { apiLevelIt -> + (27..35).forEach { apiLevelIt -> val name = listOf( "managedVirtualDevice", @@ -64,6 +64,7 @@ android { apiLevel = apiLevelIt val systemImageConfig: Pair = when (apiLevel) { 33, 34 -> "aosp" to true + 35 -> "google" to null else -> null to null } systemImageConfig.first?.also { systemImageSource = it } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index b6498ba..f448fd5 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -agp = "8.7.0-alpha01" +agp = "8.5.1" android-material = "1.12.0" androidx-navigation = "2.7.7" androidx-test-espresso = "3.6.1" @@ -9,7 +9,7 @@ build-android-targetSdk = "35" build-javaVersion = "VERSION_17" build-jvmTarget = "17" detekt = "1.23.6" -kotlin = "2.0.20-Beta2" +kotlin = "2.0.0" kotlinx-kover = "0.8.2" ktlint = "1.3.1"