Browse Source

Use coroutines 1.7.3 for desktop and native. But use 1.8.0-RC2 for web targets (#4244)

pull/4249/head
Oleksandr Karpovich 11 months ago committed by GitHub
parent
commit
ffea196aa8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      components/gradle/libs.versions.toml
  2. 13
      components/resources/library/build.gradle.kts

2
components/gradle/libs.versions.toml

@ -1,5 +1,5 @@
[versions]
kotlinx-coroutines = "1.8.0-RC2"
kotlinx-coroutines = "1.7.3"
androidx-appcompat = "1.6.1"
androidx-activity-compose = "1.8.2"
androidx-test = "1.5.0"

13
components/resources/library/build.gradle.kts

@ -204,3 +204,16 @@ afterEvaluate {
if (name == "compileWebMainKotlinMetadata") enabled = false
}
}
// TODO: remove this (https://youtrack.jetbrains.com/issue/COMPOSE-939)
configurations.all {
val isWeb = name.startsWith("wasmJs") || name.startsWith("js")
if (isWeb) {
resolutionStrategy.eachDependency {
if (requested.group.startsWith("org.jetbrains.kotlinx") &&
requested.name.startsWith("kotlinx-coroutines-")) {
useVersion("1.8.0-RC2")
}
}
}
}
Loading…
Cancel
Save