From 6853d887825b9d4c541becb8f9636f129d2cce64 Mon Sep 17 00:00:00 2001 From: Tadeas Kriz Date: Thu, 2 Nov 2023 15:32:24 -0400 Subject: [PATCH] Fix the name of requested runtime dependency. --- .../skie/plugin/coroutines/AddDependencyOnSkieRuntime.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 df9bff02..9c21aafe 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 @@ -34,10 +34,10 @@ private val BuildConfig.DEFAULT_RUNTIME_DEPENDENCY: String get() = "$RUNTIME_DEPENDENCY_GROUP:$RUNTIME_DEPENDENCY_NAME:$RUNTIME_DEPENDENCY_VERSION" private fun BuildConfig.SPECIFIC_RUNTIME_DEPENDENCY(konanTarget: KonanTarget, kotlinVersion: String): String { - return "$RUNTIME_DEPENDENCY_GROUP:$RUNTIME_DEPENDENCY_NAME-${konanTarget.presetName}__kgp_${kotlinVersion}:$RUNTIME_DEPENDENCY_VERSION" + return "$RUNTIME_DEPENDENCY_GROUP:$RUNTIME_DEPENDENCY_NAME-${konanTarget.dependencyPresetName}__kgp_${kotlinVersion}:$RUNTIME_DEPENDENCY_VERSION" } -private val KonanTarget.presetName: String +private val KonanTarget.dependencyPresetName: String get() = when (this) { KonanTarget.IOS_ARM32 -> "iosArm32" KonanTarget.IOS_ARM64 -> "iosArm64"