Skip to content

Commit bc5e27f

Browse files
danil-pavlovSebastianAigner
authored andcommitted
update: kotlin multiplatform plugin
1 parent 14167ec commit bc5e27f

File tree

8 files changed

+25
-22
lines changed

8 files changed

+25
-22
lines changed

build.gradle.kts

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
kotlin("js") version "1.8.20"
3-
kotlin("plugin.serialization") version "1.8.20"
2+
kotlin("multiplatform") version "1.8.22"
3+
kotlin("plugin.serialization") version "1.8.22"
44
}
55

66
group = "org.example"
@@ -21,26 +21,29 @@ kotlin {
2121
}
2222
binaries.executable()
2323
}
24-
}
25-
26-
dependencies {
27-
//React, React DOM + Wrappers (chapter 3)
28-
implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:1.0.0-pre.430"))
29-
implementation("org.jetbrains.kotlin-wrappers:kotlin-react")
30-
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom")
31-
32-
//Kotlin React Emotion (CSS) (chapter 3)
33-
implementation("org.jetbrains.kotlin-wrappers:kotlin-emotion")
34-
35-
//Video Player (chapter 7)
36-
implementation(npm("react-player", "2.12.0"))
37-
38-
//Share Buttons (chapter 7)
39-
implementation(npm("react-share", "4.4.1"))
40-
41-
//Coroutines & serialization (chapter 8)
42-
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
43-
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
24+
sourceSets {
25+
val jsMain by getting {
26+
dependencies {
27+
//React, React DOM + Wrappers (chapter 3)
28+
implementation(enforcedPlatform("org.jetbrains.kotlin-wrappers:kotlin-wrappers-bom:1.0.0-pre.430"))
29+
implementation("org.jetbrains.kotlin-wrappers:kotlin-react")
30+
implementation("org.jetbrains.kotlin-wrappers:kotlin-react-dom")
31+
32+
//Kotlin React Emotion (CSS) (chapter 3)
33+
implementation("org.jetbrains.kotlin-wrappers:kotlin-emotion")
34+
35+
//Video Player (chapter 7)
36+
implementation(npm("react-player", "2.12.0"))
37+
38+
//Share Buttons (chapter 7)
39+
implementation(npm("react-share", "4.4.1"))
40+
41+
//Coroutines & serialization (chapter 8)
42+
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
43+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
44+
}
45+
}
46+
}
4447
}
4548

4649
// Heroku Deployment (chapter 9)
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)