Browse Source

Rename android artifact name "...-androidRelease" -> "...-android" (#3996)

dima.avdeev/cocoapods-dynamic-frameworks v1.6.0-dev1296
Konstantin 12 months ago committed by GitHub
parent
commit
a1be71ac8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      components/buildSrc/src/main/kotlin/GradleUtils.kt

6
components/buildSrc/src/main/kotlin/GradleUtils.kt

@ -15,5 +15,9 @@ var MavenPublication.mppArtifactId: String
get() = throw UnsupportedOperationException()
set(value) {
val target = this.name
artifactId = if ("kotlinMultiplatform" in target) value else "$value-$target"
artifactId = when (target) {
"kotlinMultiplatform" -> value
"androidRelease" -> "$value-android"
else -> "$value-$target"
}
}
Loading…
Cancel
Save