Skip to content

Commit

Permalink
Fix the name of requested runtime dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
TadeasKriz committed Nov 2, 2023
1 parent b6408a7 commit 6853d88
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6853d88

Please sign in to comment.