Skip to content

Commit 444b968

Browse files
committed
Implement for JS and Wasm
1 parent 20789e9 commit 444b968

File tree

14 files changed

+148
-838
lines changed

14 files changed

+148
-838
lines changed

core/build.gradle.kts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -174,22 +174,33 @@ kotlin {
174174
}
175175
}
176176

177+
val commonKotlinMain by creating {
178+
dependsOn(commonMain.get())
179+
dependencies {
180+
api("org.jetbrains.kotlinx:kotlinx-serialization-core:$serializationVersion")
181+
}
182+
}
183+
184+
val commonKotlinTest by creating {
185+
dependsOn(commonTest.get())
186+
}
187+
177188
val jvmMain by getting {
178189
}
179190

180191
val jvmTest by getting {
181192
}
182193

183194
val commonJsMain by creating {
184-
dependsOn(commonMain.get())
195+
dependsOn(commonKotlinMain)
185196
dependencies {
186197
api("org.jetbrains.kotlinx:kotlinx-serialization-core:$serializationVersion")
187198
implementation(npm("@js-joda/core", "3.2.0"))
188199
}
189200
}
190201

191202
val commonJsTest by creating {
192-
dependsOn(commonTest.get())
203+
dependsOn(commonKotlinTest)
193204
dependencies {
194205
implementation(npm("@js-joda/timezone", "2.3.0"))
195206
}
@@ -211,17 +222,6 @@ kotlin {
211222
dependsOn(commonJsTest)
212223
}
213224

214-
val commonKotlinMain by creating {
215-
dependsOn(commonMain.get())
216-
dependencies {
217-
api("org.jetbrains.kotlinx:kotlinx-serialization-core:$serializationVersion")
218-
}
219-
}
220-
221-
val commonKotlinTest by creating {
222-
dependsOn(commonTest.get())
223-
}
224-
225225
val nativeMain by getting {
226226
dependsOn(commonKotlinMain)
227227
}

core/commonJs/src/DayOfWeek.kt

Lines changed: 0 additions & 20 deletions
This file was deleted.

core/commonJs/src/Instant.kt

Lines changed: 0 additions & 214 deletions
This file was deleted.

0 commit comments

Comments
 (0)