Disable publishing in androidTarget KMP configuration. Re-enable in Android block, and use updated syntax.

This commit is contained in:
KotlinGeekDev
2025-09-01 16:40:36 +01:00
parent edf5b28e06
commit 2f2919090e

View File

@@ -34,10 +34,9 @@ android {
excludes.add("**/libscrypt.dylib") excludes.add("**/libscrypt.dylib")
} }
} }
// publishing { publishing {
// singleVariant("release") singleVariant("release")
// this.multipleVariants { singleVariant("release") } }
// }
} }
kotlin { kotlin {
@@ -50,7 +49,7 @@ kotlin {
// which platforms this KMP module supports. // which platforms this KMP module supports.
// See: https://kotlinlang.org/docs/multiplatform-discover-project.html#targets // See: https://kotlinlang.org/docs/multiplatform-discover-project.html#targets
androidTarget { androidTarget {
publishLibraryVariants("release") // publishLibraryVariants("release")
} }
// For iOS targets, this is also where you should // For iOS targets, this is also where you should