From 92d77a3a0db1e2437715cf669b8579d8a606677a Mon Sep 17 00:00:00 2001 From: anod <171704+anod@users.noreply.github.com> Date: Wed, 22 Jul 2026 12:17:34 +0300 Subject: [PATCH] Migrate to AGP 9: compileSdk 37 and android {} KMP DSL Bump compileSdk 36 -> 37 (required by androidx.core 1.19.0 / lifecycle 2.11.0 AAR metadata; AGP 9 enforces it). Rename deprecated `kotlin { androidLibrary {} }` to `kotlin { android {} }` for the com.android.kotlin.multiplatform.library plugin (AGP 9 / Kotlin 2.4.10). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 534c1f2d-6818-4df0-b4d2-23fccfbf9976 --- applog/build.gradle.kts | 4 ++-- compose/build.gradle.kts | 4 ++-- context/build.gradle.kts | 4 ++-- framework/build.gradle.kts | 4 ++-- graphics/build.gradle.kts | 4 ++-- ktx/build.gradle.kts | 4 ++-- notification/build.gradle.kts | 4 ++-- permissions/build.gradle.kts | 4 ++-- playservices/build.gradle.kts | 4 ++-- viewmodel/build.gradle.kts | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/applog/build.gradle.kts b/applog/build.gradle.kts index d639067..31a7561 100644 --- a/applog/build.gradle.kts +++ b/applog/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.applog" - compileSdk = 36 + compileSdk = 37 } listOf( iosX64(), diff --git a/compose/build.gradle.kts b/compose/build.gradle.kts index 7950c71..d9dbe21 100644 --- a/compose/build.gradle.kts +++ b/compose/build.gradle.kts @@ -5,9 +5,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.compose" - compileSdk = 36 + compileSdk = 37 minSdk = 31 } diff --git a/context/build.gradle.kts b/context/build.gradle.kts index 92ed647..4896b98 100644 --- a/context/build.gradle.kts +++ b/context/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.context" - compileSdk = 36 + compileSdk = 37 minSdk = 31 } diff --git a/framework/build.gradle.kts b/framework/build.gradle.kts index 229167b..69aa84e 100644 --- a/framework/build.gradle.kts +++ b/framework/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.framework" - compileSdk = 36 + compileSdk = 37 minSdk = 31 androidResources { enable = true diff --git a/graphics/build.gradle.kts b/graphics/build.gradle.kts index 2139662..1c3821a 100644 --- a/graphics/build.gradle.kts +++ b/graphics/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.graphics" - compileSdk = 36 + compileSdk = 37 minSdk = 31 // PathParser withJava() diff --git a/ktx/build.gradle.kts b/ktx/build.gradle.kts index 0f002c1..ecc3489 100644 --- a/ktx/build.gradle.kts +++ b/ktx/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.ktx" - compileSdk = 36 + compileSdk = 37 minSdk = 31 } diff --git a/notification/build.gradle.kts b/notification/build.gradle.kts index 22b481e..bb85fa7 100644 --- a/notification/build.gradle.kts +++ b/notification/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.notification" - compileSdk = 36 + compileSdk = 37 minSdk = 31 } diff --git a/permissions/build.gradle.kts b/permissions/build.gradle.kts index 2fcdb2e..64cc435 100644 --- a/permissions/build.gradle.kts +++ b/permissions/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.permissions" - compileSdk = 36 + compileSdk = 37 minSdk = 31 } listOf( diff --git a/playservices/build.gradle.kts b/playservices/build.gradle.kts index a4f659f..acb0428 100644 --- a/playservices/build.gradle.kts +++ b/playservices/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.playservices" - compileSdk = 36 + compileSdk = 37 minSdk = 31 androidResources { enable = true diff --git a/viewmodel/build.gradle.kts b/viewmodel/build.gradle.kts index b11733c..fd9a780 100644 --- a/viewmodel/build.gradle.kts +++ b/viewmodel/build.gradle.kts @@ -4,9 +4,9 @@ plugins { } kotlin { - androidLibrary { + android { namespace = "info.anodsplace.viewmodel" - compileSdk = 36 + compileSdk = 37 minSdk = 31 } listOf(