Skip to content

Commit

Permalink
Added WASM to components.uiToolingPreview library (#4286)
Browse files Browse the repository at this point in the history
Added Wasm target to gradle publication
  • Loading branch information
dima-avdeev-jb authored Feb 12, 2024
1 parent cf04f46 commit 903a9bb
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions components/ui-tooling-preview/library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
kotlin("multiplatform")
Expand All @@ -23,9 +24,11 @@ kotlin {
iosSimulatorArm64()
js {
browser {
testTask(Action {
enabled = false
})
}
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
browser {
}
}
macosX64()
Expand All @@ -51,3 +54,10 @@ configureMavenPublication(
name = "Experimental Compose Multiplatform tooling library API. This library provides the API required to declare " +
"@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
}
}

0 comments on commit 903a9bb

Please sign in to comment.