Skip to content

Commit 1b5a344

Browse files
committed
Update kotlin to 2.2.10 and small fixes
1 parent 0118b9e commit 1b5a344

File tree

5 files changed

+16
-3107
lines changed

5 files changed

+16
-3107
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To build and run the application:
5050
1. In IntelliJ IDEA, open the repository.
5151
2. Run the application by typing the following Gradle command in the terminal:
5252

53-
`./gradlew wasmJsBrowserRun -t`
53+
`./gradlew wasmJsBrowserProductionRun -t`
5454
<br>&nbsp;<br>
5555

5656
Once the application starts, open the following URL in your browser:

build.gradle.kts

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
1+
@file:OptIn(ExperimentalWasmDsl::class)
2+
3+
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
24

35
plugins {
46
alias(libs.plugins.kotlinMultiplatform)
@@ -14,29 +16,15 @@ repositories {
1416
kotlin {
1517
wasmJs {
1618
binaries.executable()
17-
browser {
18-
commonWebpackConfig {
19-
devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
20-
static = (static ?: mutableListOf()).apply {
21-
add(project.rootDir.path)
22-
}
23-
}
24-
}
25-
}
19+
browser()
2620
}
2721

2822
sourceSets {
29-
val commonMain by getting
30-
val commonTest by getting {
31-
dependencies {
32-
implementation(libs.kotlin.test)
33-
}
23+
commonTest.dependencies {
24+
implementation(libs.kotlin.test)
3425
}
35-
val wasmJsMain by getting {
36-
dependencies {
37-
implementation(libs.kotlinx.browser)
38-
}
26+
wasmJsMain.dependencies {
27+
implementation(libs.kotlinx.browser)
3928
}
40-
val wasmJsTest by getting
4129
}
4230
}

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[versions]
2-
kotlin = "2.0.10"
2+
kotlin = "2.2.10"
33
kotlinx-browser = "0.3"
44

55
[libraries]

0 commit comments

Comments
 (0)