Skip to content

Commit

Permalink
fixup! make the project multiplatform
Browse files Browse the repository at this point in the history
  • Loading branch information
AYastrebov committed Jun 26, 2024
1 parent c6aefce commit 3781d8a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ version = "1.4.0"

kotlin {
androidTarget {
publishAllLibraryVariants()
publishLibraryVariants("release")
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
Expand Down Expand Up @@ -63,6 +63,11 @@ kotlin {
implementation(libs.kotlin.test.junit)
}
}

//https://kotlinlang.org/docs/native-objc-interop.html#export-of-kdoc-comments-to-generated-objective-c-headers
targets.withType<org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget> {
compilations["main"].compilerOptions.options.freeCompilerArgs.add("-Xexport-kdoc")
}
}

android {
Expand Down

0 comments on commit 3781d8a

Please sign in to comment.