Skip to content

Commit 1b3bf3e

Browse files
committed
Merge branch 'develop' into extractingToTemp-fix
2 parents a59967d + 59ce226 commit 1b3bf3e

115 files changed

Lines changed: 3054 additions & 2226 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ local.properties
1212
local.gradle
1313
moko-resources-generated.js
1414
.fleet
15+
.kotlin

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ kotlin.mpp.enableCInteropCommonization=true
1313
org.jetbrains.compose.experimental.jscanvas.enabled=true
1414
org.jetbrains.compose.experimental.uikit.enabled=true
1515
org.jetbrains.compose.experimental.macos.enabled=true
16+
org.jetbrains.compose.experimental.wasm.enabled=true
1617

1718
android.useAndroidX=true
1819

gradle/libs.versions.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
[versions]
2-
kotlinVersion = "1.9.20"
2+
kotlinVersion = "1.9.25"
33
androidGradleVersion = "8.1.4"
44
androidSdkCommonVersion = "31.1.2"
55

66
# kotlinx
77
kotlinxSerializationVersion = "1.6.1"
8-
kotlinxCoroutinesVersion = "1.6.4"
8+
kotlinxCoroutinesVersion = "1.8.0"
9+
kotlinxBrowserVersion = "0.3"
910

1011
# android
1112
androidAppCompatVersion = "1.6.1"
1213

1314
# android compose
14-
composeUiVersion = "1.5.1"
15+
composeUiVersion = "1.7.1"
1516

1617
# jetbrains compose
17-
composeJetbrainsVersion = "1.6.0"
18+
composeJetbrainsVersion = "1.7.0"
1819

1920
# jvm
2021
apacheCommonsTextVersion = "1.10.0"
@@ -25,14 +26,15 @@ commonsCodecVersion = "1.15"
2526
batikVersion = "1.17"
2627

2728
# moko
28-
mokoGraphicsVersion = "0.9.0"
29+
mokoGraphicsVersion = "0.10.0"
2930
mokoTestVersion = "0.6.1"
3031
mokoMultiplatformPluginVersion = "0.14.2"
3132

3233
[libraries]
3334
# kotlinx
3435
kotlinxSerialization = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationVersion" }
3536
kotlinxCoroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinxCoroutinesVersion" }
37+
kotlinxBrowser = { module = "org.jetbrains.kotlinx:kotlinx-browser", version.ref = "kotlinxBrowserVersion" }
3638

3739
# moko
3840
mokoGraphics = { module = "dev.icerock.moko:graphics", version.ref = "mokoGraphicsVersion" }

gradle/moko.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
resourcesVersion = "0.24.5"
2+
resourcesVersion = "0.25.0"
33

44
[libraries]
55
resources = { module = "dev.icerock.moko:resources", version.ref = "resourcesVersion" }

kotlin-js-store/yarn.lock

Lines changed: 752 additions & 574 deletions
Large diffs are not rendered by default.

resources-build-logic/src/main/kotlin/multiplatform-library-convention.gradle.kts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ kotlin {
2424
browser()
2525
useCommonJs()
2626
}
27+
wasmJs {
28+
browser()
29+
useCommonJs()
30+
}
31+
32+
// For https://youtrack.jetbrains.com/issue/KT-61573
33+
targets.configureEach {
34+
compilations.configureEach {
35+
compileTaskProvider.configure {
36+
compilerOptions {
37+
freeCompilerArgs.add("-Xexpect-actual-classes")
38+
}
39+
}
40+
}
41+
}
2742

2843
sourceSets {
2944
val commonMain by getting
@@ -57,6 +72,16 @@ kotlin {
5772
macosX64Main.dependsOn(this)
5873
}
5974

75+
val commonJsMain = create("commonJsMain") {
76+
dependsOn(commonMain)
77+
}
78+
val jsMain by getting {
79+
dependsOn(commonJsMain)
80+
}
81+
val wasmJsMain by getting {
82+
dependsOn(commonJsMain)
83+
}
84+
6085
val commonTest by getting
6186
val macosArm64Test by getting
6287
val macosX64Test by getting
@@ -70,6 +95,10 @@ kotlin {
7095
val jsTest by getting {
7196
dependsOn(commonTest)
7297
}
98+
99+
val wasmJsTest by getting {
100+
dependsOn(commonTest)
101+
}
73102
}
74103

75104
jvmToolchain(11)

resources-compose/build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ kotlin {
3434
js(IR) {
3535
browser()
3636
}
37+
wasmJs {
38+
browser()
39+
}
3740

3841
sourceSets {
3942
commonMain {

resources-compose/src/iosMain/kotlin/dev/icerock/moko/resources/compose/FontResource.ios.kt renamed to resources-compose/src/appleMain/kotlin/dev/icerock/moko/resources/compose/FontResource.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2025 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package dev.icerock.moko.resources.compose

resources-compose/src/jsMain/kotlin/dev/icerock/moko/resources/compose/AssetResource.kt renamed to resources-compose/src/commonJsMain/kotlin/dev/icerock/moko/resources/compose/AssetResource.kt

File renamed without changes.

resources-compose/src/jsMain/kotlin/dev/icerock/moko/resources/compose/ColorResource.kt renamed to resources-compose/src/commonJsMain/kotlin/dev/icerock/moko/resources/compose/ColorResource.kt

File renamed without changes.

0 commit comments

Comments
 (0)