From 6bea75b36f33c769593cacc02ccc94562e8840a7 Mon Sep 17 00:00:00 2001 From: Tadeas Kriz Date: Thu, 2 Nov 2023 17:37:22 -0400 Subject: [PATCH] Fix wrong artifact link task name casing. --- .../kotlin/co/touchlab/skie/plugin/util/SkieTarget.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/util/SkieTarget.kt b/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/util/SkieTarget.kt index 216154e9..d8926b7d 100644 --- a/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/util/SkieTarget.kt +++ b/SKIE/skie-gradle/plugin/src/kgp_common/gradle_common/kotlin/co/touchlab/skie/plugin/util/SkieTarget.kt @@ -129,10 +129,11 @@ sealed interface SkieTarget { private companion object { fun linkTaskName(artifact: KotlinNativeArtifact, konanTarget: KonanTarget, buildType: NativeBuildType): String { - return "assemble" + when (artifact) { + return when (artifact) { is KotlinNativeLibrary -> { val kind = if (artifact.isStatic) NativeOutputKind.STATIC else NativeOutputKind.DYNAMIC lowerCamelCaseName( + "assemble", artifact.artifactName, buildType.visibleName, kind.taskNameClassifier, @@ -141,12 +142,14 @@ sealed interface SkieTarget { ) } is KotlinNativeFramework -> lowerCamelCaseName( + "assemble", artifact.artifactName, buildType.visibleName, NativeOutputKind.FRAMEWORK.taskNameClassifier, konanTarget.presetName ) is KotlinNativeFatFramework -> lowerCamelCaseName( + "assemble", artifact.artifactName, buildType.visibleName, NativeOutputKind.FRAMEWORK.taskNameClassifier, @@ -154,6 +157,7 @@ sealed interface SkieTarget { "ForFat", ) is KotlinNativeXCFramework -> lowerCamelCaseName( + "assemble", artifact.artifactName, buildType.visibleName, NativeOutputKind.FRAMEWORK.taskNameClassifier,