fix(build): pin Skiko version to align with Compose Multiplatform (#5117)

This commit is contained in:
James Rich 2026-04-13 18:32:00 -05:00 committed by GitHub
parent 28be6933c8
commit 27367e9064
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -72,6 +72,21 @@ internal fun Project.configureKotlinAndroid(commonExtension: CommonExtension) {
/** Configure Kotlin Multiplatform options */
internal fun Project.configureKotlinMultiplatform() {
// Skiko is an internal CMP implementation detail; third-party KMP libraries
// (e.g. coil3) can carry an older skiko transitive requirement that Gradle
// upgrades to the CMP-bundled version, triggering a "Skiko dependencies'
// versions are incompatible" warning from CMP's compatibility checker.
// Force the version to match CMP so the checker sees a consistent graph.
val skikoVersion = libs.version("skiko")
configurations.configureEach {
resolutionStrategy.eachDependency {
if (requested.group == "org.jetbrains.skiko") {
useVersion(skikoVersion)
because("Align Skiko with the version bundled by Compose Multiplatform")
}
}
}
extensions.configure<KotlinMultiplatformExtension> {
// Standard KMP targets for Meshtastic
jvm()

View file

@ -35,6 +35,11 @@ turbine = "1.2.1"
# Compose Multiplatform
compose-multiplatform = "1.11.0-beta02"
# Skiko is an internal CMP implementation detail. Pin it to the version shipped by CMP to
# silence the "Skiko dependencies' versions are incompatible" warning emitted when transitive
# dependencies (e.g. coil3) carry an older skiko requirement that Gradle then upgrades to the
# CMP-bundled version. Bump this together with compose-multiplatform.
skiko = "0.144.5"
compose-multiplatform-material3 = "1.11.0-alpha06"
androidx-compose-material = "1.7.8"
jetbrains-adaptive = "1.3.0-alpha06"