From 73e41b4240fabfa05cddfcd30a08adb213c74064 Mon Sep 17 00:00:00 2001 From: Tadeas Kriz Date: Mon, 13 Nov 2023 11:00:29 -0500 Subject: [PATCH] Add back missing check if coroutine interop is enabled. --- .../skie/plugin/coroutines/AddDependencyOnSkieRuntime.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/coroutines/AddDependencyOnSkieRuntime.kt b/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/coroutines/AddDependencyOnSkieRuntime.kt index 7c023b6d..a28eabbd 100644 --- a/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/coroutines/AddDependencyOnSkieRuntime.kt +++ b/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/coroutines/AddDependencyOnSkieRuntime.kt @@ -10,6 +10,10 @@ import org.jetbrains.kotlin.konan.target.KonanTarget import org.jetbrains.kotlin.konan.target.presetName internal fun SkieTarget.addDependencyOnSkieRuntime() { + if (!project.isCoroutinesInteropEnabled) { + return + } + val configurationNames = when (this) { is SkieTarget.TargetBinary -> listOfNotNull( binary.compilation.apiConfigurationName,