Skip to content

Enable WasmJs target#822

Merged
Alex009 merged 20 commits into
icerockdev:developfrom
Tetraquark:target-wasmjs
Jun 29, 2025
Merged

Enable WasmJs target#822
Alex009 merged 20 commits into
icerockdev:developfrom
Tetraquark:target-wasmjs

Conversation

@Tetraquark

Copy link
Copy Markdown
Contributor

This is a continuation of the pool request: #724. Issue: #582

The main goal of this pull request: enabling the WasmJs target. What has been done:

  1. Kotlin version has been updated to 2.1.21, along with updates to several dependency versions
  2. Added wasmJs support in resources and resources-generator
  3. Added a wasmJs sample in compose-resources-gallery

luca992 and others added 12 commits May 26, 2024 22:07
In wasmJs generated code have to handle:

Calls to 'js(code)' should be a single expression inside a top-level function body or a property initializer in Kotlin/Wasm.
# Conflicts:
#	gradle/libs.versions.toml
#	gradle/moko.versions.toml
#	resources-build-logic/src/main/kotlin/multiplatform-library-convention.gradle.kts
#	resources-compose/build.gradle.kts
#	resources/build.gradle.kts
#	samples/compose-resources-gallery/gradle.properties
@Alex009 Alex009 linked an issue Jun 10, 2025 that may be closed by this pull request
@Tetraquark Tetraquark changed the title WIP: Enable WasmJs target Enable WasmJs target Jun 10, 2025
Comment thread gradle/moko.versions.toml Outdated
Comment thread resources-build-logic/src/main/kotlin/multiplatform-library-convention.gradle.kts Outdated
Comment thread resources/src/appleMain/kotlin/dev/icerock/moko/resources/FontResource.kt Outdated
Comment thread samples/compose-resources-gallery/settings.gradle.kts Outdated
Comment thread samples/default-hierarchy-gallery-mobile/settings.gradle.kts Outdated
Comment thread samples/ios-cocoapods-static-framework/settings.gradle.kts Outdated
Comment thread samples/kotlin-ios-app/settings.gradle.kts Outdated
Comment thread samples/resources-gallery/settings.gradle.kts Outdated
Comment thread resources/src/jsMain/kotlin/dev/icerock/moko/resources/internal/JsonExt.kt Outdated
Comment thread resources/src/wasmJsMain/kotlin/dev/icerock/moko/resources/internal/Json.kt Outdated
@Alex009 Alex009 mentioned this pull request Jun 23, 2025
@Tetraquark Tetraquark force-pushed the target-wasmjs branch 2 times, most recently from 129f79c to 3c9ad2a Compare June 24, 2025 14:28
Comment thread samples/compose-resources-gallery/webApp/build.gradle.kts Outdated
@Alex009 Alex009 added this to the 0.25.0 milestone Jun 29, 2025
@Alex009 Alex009 merged commit 59ce226 into icerockdev:develop Jun 29, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No support for wasm on multiplatform

4 participants