Skip to content

Commit 783612a

Browse files
authored
Fix more examples after Kotlin 2.2 update (#5411)
## Release Notes N/A
1 parent b4b1ce8 commit 783612a

22 files changed

+490
-326
lines changed

examples/imageviewer/kotlin-js-store/yarn.lock

Lines changed: 466 additions & 316 deletions
Large diffs are not rendered by default.

examples/imageviewer/shared/build.gradle.kts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
2+
13
plugins {
24
kotlin("multiplatform")
35
kotlin("plugin.compose")
@@ -16,6 +18,7 @@ kotlin {
1618
browser()
1719
useEsModules()
1820
}
21+
@OptIn(ExperimentalWasmDsl::class)
1922
wasmJs { browser() }
2023

2124
listOf(
@@ -62,19 +65,19 @@ kotlin {
6265
implementation("com.google.maps.android:maps-compose:2.11.2")
6366
}
6467

65-
val jsWasmMain by creating {
68+
val webMain by creating {
6669
dependsOn(commonMain.get())
6770
dependencies {
6871
implementation(npm("uuid", "^9.0.1"))
6972
}
7073
}
7174

7275
val jsMain by getting {
73-
dependsOn(jsWasmMain)
76+
dependsOn(webMain)
7477
}
7578

7679
val wasmJsMain by getting {
77-
dependsOn(jsWasmMain)
80+
dependsOn(webMain)
7881
}
7982

8083
val desktopMain by getting
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)