From 34847c6a3e41d4f9d66bd9180e6c5c472f9a3ce5 Mon Sep 17 00:00:00 2001 From: Igor Demin Date: Fri, 25 Aug 2023 12:51:32 +0200 Subject: [PATCH] Update Android project - update AGP - update targetSdk=34 - update versions - update Gradle - targetSdk in library projects is deprecated --- gradle.properties | 6 +++--- gradle/wrapper/gradle-wrapper.properties | 2 +- shared/build.gradle.kts | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gradle.properties b/gradle.properties index f25548b..f9099e8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,11 +14,11 @@ org.jetbrains.compose.experimental.uikit.enabled=true #Android android.useAndroidX=true -android.compileSdk=33 -android.targetSdk=33 +android.targetSdk=34 +android.compileSdk=34 android.minSdk=24 #Versions kotlin.version=1.9.0 -agp.version=7.4.2 +agp.version=8.0.2 compose.version=1.5.0-rc01 \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ae04661..84a0b92 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 5252806..fc07392 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -30,9 +30,9 @@ kotlin { } val androidMain by getting { dependencies { - api("androidx.activity:activity-compose:1.6.1") + api("androidx.activity:activity-compose:1.7.2") api("androidx.appcompat:appcompat:1.6.1") - api("androidx.core:core-ktx:1.9.0") + api("androidx.core:core-ktx:1.10.1") } } val iosX64Main by getting @@ -57,7 +57,6 @@ android { defaultConfig { minSdk = (findProperty("android.minSdk") as String).toInt() - targetSdk = (findProperty("android.targetSdk") as String).toInt() } compileOptions { sourceCompatibility = JavaVersion.VERSION_11