Skip to content

Commit

Permalink
Add JS and wasm targets for compose extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Feb 28, 2024
1 parent 2e0537d commit 4b35bd9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ jobs:
- uses: gradle/gradle-build-action@v2
with:
arguments: |
:test:jsNodeTest
:test:jvmTest
:test:linuxX64Test
:test:check
:colormath:compileKotlinLinuxArm64
:colormath:compileKotlinWasmJs
:extensions:colormath-ext-jetpack-compose:check
:extensions:colormath-ext-android-colorint:check
:extensions:colormath-ext-android-color:check
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## Unreleased
### Added
- Publish artifacts for the `JS` and `wasmJs` targets for the jetpack-compose extensions.

## 3.4.0
### Added
- Publish artifacts for the `wasmJs` target. This target is experimental and not tested on CI.
- Publish artifacts for the `wasmJs` target. This target is experimental.

## 3.3.3
### Changed
Expand Down
5 changes: 5 additions & 0 deletions extensions/colormath-ext-jetpack-compose/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.vanniktech.maven.publish.tasks.JavadocJar
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
id("com.android.library")
Expand All @@ -17,6 +18,10 @@ kotlin {
}

jvm()
js { nodejs() }

@OptIn(ExperimentalWasmDsl::class)
wasmJs { nodejs() }

iosX64()
iosArm64()
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "1.9.21"
compose = "1.6.0-beta01"
compose = "1.6.0"

[libraries]

Expand Down
3 changes: 3 additions & 0 deletions test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ kotlin {
jvm()
js { nodejs() }

@OptIn(ExperimentalWasmDsl::class)
wasmJs { nodejs() }

linuxX64()
linuxArm64()
mingwX64()
Expand Down

0 comments on commit 4b35bd9

Please sign in to comment.