Skip to content

Commit

Permalink
Stop using legacy coroutines in runtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Aug 7, 2024
1 parent 9e88b7b commit db0c4a9
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions SKIE/runtime/kotlin/runtime-kotlin.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,12 @@ multiCompileRuntime {
klibPath = { kotlinVersion, target ->
"build/classes/kotlin/${target.name}/main/klib/runtime-kotlin-${kotlinVersion}.klib"
}
dependencies = { kotlinVersion ->
if (kotlinVersion == MultiCompileTarget.kotlin_1_8_0) {
"implementation(libs.kotlinx.coroutines.core.legacy)"
} else {
"implementation(libs.kotlinx.coroutines.core)"
}
dependencies = { _ ->
"implementation(libs.kotlinx.coroutines.core)"
}
applyDependencies = { kotlinVersion, configuration ->
applyDependencies = { _, configuration ->
configuration(
if (kotlinVersion == MultiCompileTarget.kotlin_1_8_0) {
libs.kotlinx.coroutines.core.legacy
} else {
libs.kotlinx.coroutines.core
}
libs.kotlinx.coroutines.core
)
}
}

0 comments on commit db0c4a9

Please sign in to comment.