11plugins {
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
66group = " 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)
0 commit comments