Skip to content

Commit

Permalink
Fix wrong artifact link task name casing.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Nov 2, 2023
1 parent 6853d88 commit 6bea75b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -141,19 +142,22 @@ 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,
konanTarget.presetName,
"ForFat",
)
is KotlinNativeXCFramework -> lowerCamelCaseName(
"assemble",
artifact.artifactName,
buildType.visibleName,
NativeOutputKind.FRAMEWORK.taskNameClassifier,
Expand Down

0 comments on commit 6bea75b

Please sign in to comment.