From db0c4a9ec93865c0e8188dc97e50219f719e93cb Mon Sep 17 00:00:00 2001 From: Tadeas Kriz Date: Tue, 6 Aug 2024 22:22:14 -0400 Subject: [PATCH] Stop using legacy coroutines in runtime. --- SKIE/runtime/kotlin/runtime-kotlin.gradle.kts | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/SKIE/runtime/kotlin/runtime-kotlin.gradle.kts b/SKIE/runtime/kotlin/runtime-kotlin.gradle.kts index 5158e847..7fdb557e 100644 --- a/SKIE/runtime/kotlin/runtime-kotlin.gradle.kts +++ b/SKIE/runtime/kotlin/runtime-kotlin.gradle.kts @@ -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 ) } }