Browse Source

Attempt to include Web

app-api
Nikolay Igotti 3 years ago
parent
commit
6ab029d0be
  1. 9
      components/Kapp/demo/build.gradle.kts
  2. 0
      components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/Complex.desktop.kt
  3. 0
      components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/Simple.desktop.kt
  4. 5
      components/Kapp/library/build.gradle.kts

9
components/Kapp/demo/build.gradle.kts

@ -7,7 +7,12 @@ plugins {
} }
kotlin { kotlin {
jvm("desktop") {} jvm("desktop")
js(IR) {
browser()
binaries.executable()
}
sourceSets { sourceSets {
named("desktopMain") { named("desktopMain") {
dependencies { dependencies {
@ -25,7 +30,7 @@ kotlin {
compose.desktop { compose.desktop {
application { application {
mainClass = "org.jetbrains.compose.kapp.demo.MainKt" mainClass = "org.jetbrains.compose.kapp.demo.Simple_desktopKt"
} }
} }

0
components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/PreviewComplex.desktop.kt → components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/Complex.desktop.kt

0
components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/PreviewSimple.desktop.kt → components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/Simple.desktop.kt

5
components/Kapp/library/build.gradle.kts

@ -9,6 +9,9 @@ plugins {
kotlin { kotlin {
jvm("desktop") jvm("desktop")
js(IR) {
browser()
}
sourceSets { sourceSets {
named("commonMain") { named("commonMain") {
@ -19,7 +22,7 @@ kotlin {
api(compose.ui) api(compose.ui)
} }
} }
named("desktopMain") {} named("desktopMain")
} }
} }

Loading…
Cancel
Save