fix(build): align Kotlin/KSP/Compose and force stdlib resolution
- Use Kotlin 2.2.0, KSP 2.2.0-2.0.2, Compose Multiplatform 1.8.2 to match transitive dependencies compiled with Kotlin metadata 2.3.0. - Add root resolutionStrategy force for kotlin-stdlib 2.1.20/2.1.20 variants to keep runtime consistent while compiler reads 2.3.0 metadata. - Baseline ':app:assembleOssDebug' now passes, APK ~80 MB.
This commit is contained in:
parent
73f16be140
commit
83e4b420d4
2 changed files with 14 additions and 3 deletions
|
|
@ -14,6 +14,17 @@ val test by tasks.registering {
|
||||||
description = "Runs available unit tests for the included projects."
|
description = "Runs available unit tests for the included projects."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
configurations.all {
|
||||||
|
resolutionStrategy {
|
||||||
|
force("org.jetbrains.kotlin:kotlin-stdlib:2.1.20")
|
||||||
|
force("org.jetbrains.kotlin:kotlin-stdlib-common:2.1.20")
|
||||||
|
force("org.jetbrains.kotlin:kotlin-stdlib-jdk7:2.1.20")
|
||||||
|
force("org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.1.20")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
val rootTest = rootProject.tasks.named("test")
|
val rootTest = rootProject.tasks.named("test")
|
||||||
tasks.matching {
|
tasks.matching {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[versions]
|
[versions]
|
||||||
agp = "8.9.2"
|
agp = "8.9.2"
|
||||||
kotlin = "2.1.20"
|
kotlin = "2.2.0"
|
||||||
coreKtx = "1.16.0"
|
coreKtx = "1.16.0"
|
||||||
junit = "4.13.2"
|
junit = "4.13.2"
|
||||||
junitVersion = "1.2.1"
|
junitVersion = "1.2.1"
|
||||||
|
|
@ -21,8 +21,8 @@ androidxAnnotationJvm = "1.9.1"
|
||||||
androidxTestRunner = "1.6.2"
|
androidxTestRunner = "1.6.2"
|
||||||
material3WindowSizeClassAndroid = "1.3.2"
|
material3WindowSizeClassAndroid = "1.3.2"
|
||||||
credentials = "1.5.0"
|
credentials = "1.5.0"
|
||||||
composeMultiplatform = "1.7.3"
|
composeMultiplatform = "1.8.2"
|
||||||
ksp = "2.1.20-1.0.32"
|
ksp = "2.2.0-2.0.2"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue