Browse Source

Added WASM to components.uiToolingPreview library (#4286)

Added Wasm target to gradle publication
igor.demin/wasm-kotlin-compatibility
dima.avdeev 9 months ago committed by GitHub
parent
commit
903a9bb8aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 16
      components/ui-tooling-preview/library/build.gradle.kts

16
components/ui-tooling-preview/library/build.gradle.kts

@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins { plugins {
kotlin("multiplatform") kotlin("multiplatform")
@ -23,9 +24,11 @@ kotlin {
iosSimulatorArm64() iosSimulatorArm64()
js { js {
browser { browser {
testTask(Action { }
enabled = false }
}) @OptIn(ExperimentalWasmDsl::class)
wasmJs {
browser {
} }
} }
macosX64() macosX64()
@ -51,3 +54,10 @@ configureMavenPublication(
name = "Experimental Compose Multiplatform tooling library API. This library provides the API required to declare " + name = "Experimental Compose Multiplatform tooling library API. This library provides the API required to declare " +
"@Preview composables in user apps." "@Preview composables in user apps."
) )
afterEvaluate {
// TODO(o.k.): remove this after we refactor jsAndWasmMain source set in skiko to get rid of broken "common" js-interop
tasks.configureEach {
if (name == "compileWebMainKotlinMetadata") enabled = false
}
}

Loading…
Cancel
Save