1
1
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpack
2
2
3
3
val serializationVersion = " 1.6.2"
4
- val ktorVersion = " 2. 3.0"
4
+ val ktorVersion = " 3.0.0-wasm2 "
5
5
val logbackVersion = " 1.2.11"
6
6
val kotlinWrappersVersion = " 1.0.0-pre.561"
7
7
val kmongoVersion = " 4.5.0"
@@ -19,6 +19,7 @@ version = "1.0-SNAPSHOT"
19
19
repositories {
20
20
mavenCentral()
21
21
maven(" https://maven.pkg.jetbrains.space/public/p/compose/dev" )
22
+ maven(" https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental" )
22
23
}
23
24
24
25
kotlin {
@@ -38,6 +39,10 @@ kotlin {
38
39
sourceSets {
39
40
val commonMain by getting {
40
41
dependencies {
42
+ implementation(compose.runtime)
43
+ implementation(" io.ktor:ktor-client-core:$ktorVersion " )
44
+ implementation(" io.ktor:ktor-client-content-negotiation:$ktorVersion " )
45
+ implementation(" io.ktor:ktor-serialization-kotlinx-json:$ktorVersion " )
41
46
implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion " )
42
47
}
43
48
}
@@ -51,7 +56,6 @@ kotlin {
51
56
52
57
val jvmMain by getting {
53
58
dependencies {
54
- implementation(" io.ktor:ktor-client-core:$ktorVersion " )
55
59
implementation(" io.ktor:ktor-serialization:$ktorVersion " )
56
60
implementation(" io.ktor:ktor-server-content-negotiation:$ktorVersion " )
57
61
implementation(" io.ktor:ktor-serialization-kotlinx-json:$ktorVersion " )
@@ -66,10 +70,7 @@ kotlin {
66
70
67
71
val jsMain by getting {
68
72
dependencies {
69
- implementation(" io.ktor:ktor-client-core:$ktorVersion " )
70
73
implementation(" io.ktor:ktor-client-js:$ktorVersion " )
71
- implementation(" io.ktor:ktor-client-content-negotiation:$ktorVersion " )
72
- implementation(" io.ktor:ktor-serialization-kotlinx-json:$ktorVersion " )
73
74
implementation(project.dependencies.enforcedPlatform(" org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:$kotlinWrappersVersion " ))
74
75
implementation(" org.jetbrains.kotlin-wrappers:kotlin-react" )
75
76
implementation(" org.jetbrains.kotlin-wrappers:kotlin-react-dom" )
@@ -78,7 +79,6 @@ kotlin {
78
79
79
80
val wasmJsMain by getting {
80
81
dependencies {
81
- implementation(compose.runtime)
82
82
implementation(compose.ui)
83
83
implementation(compose.foundation)
84
84
implementation(compose.material3)
0 commit comments