From 6ab029d0beae0f636840902814762fad16c6e273 Mon Sep 17 00:00:00 2001 From: Nikolay Igotti Date: Thu, 3 Feb 2022 12:44:28 +0300 Subject: [PATCH] Attempt to include Web --- components/Kapp/demo/build.gradle.kts | 9 +++++++-- .../{PreviewComplex.desktop.kt => Complex.desktop.kt} | 0 .../demo/{PreviewSimple.desktop.kt => Simple.desktop.kt} | 0 components/Kapp/library/build.gradle.kts | 5 ++++- 4 files changed, 11 insertions(+), 3 deletions(-) rename components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/{PreviewComplex.desktop.kt => Complex.desktop.kt} (100%) rename components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/{PreviewSimple.desktop.kt => Simple.desktop.kt} (100%) diff --git a/components/Kapp/demo/build.gradle.kts b/components/Kapp/demo/build.gradle.kts index 4bcfdab24d..d1094d9968 100644 --- a/components/Kapp/demo/build.gradle.kts +++ b/components/Kapp/demo/build.gradle.kts @@ -7,7 +7,12 @@ plugins { } kotlin { - jvm("desktop") {} + jvm("desktop") + js(IR) { + browser() + binaries.executable() + } + sourceSets { named("desktopMain") { dependencies { @@ -25,7 +30,7 @@ kotlin { compose.desktop { application { - mainClass = "org.jetbrains.compose.kapp.demo.MainKt" + mainClass = "org.jetbrains.compose.kapp.demo.Simple_desktopKt" } } diff --git a/components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/PreviewComplex.desktop.kt b/components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/Complex.desktop.kt similarity index 100% rename from components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/PreviewComplex.desktop.kt rename to components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/Complex.desktop.kt diff --git a/components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/PreviewSimple.desktop.kt b/components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/Simple.desktop.kt similarity index 100% rename from components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/PreviewSimple.desktop.kt rename to components/Kapp/demo/src/desktopMain/kotlin/org/jetbrains/compose/kapp/demo/Simple.desktop.kt diff --git a/components/Kapp/library/build.gradle.kts b/components/Kapp/library/build.gradle.kts index ebdbcc2e3d..5ee350494b 100644 --- a/components/Kapp/library/build.gradle.kts +++ b/components/Kapp/library/build.gradle.kts @@ -9,6 +9,9 @@ plugins { kotlin { jvm("desktop") + js(IR) { + browser() + } sourceSets { named("commonMain") { @@ -19,7 +22,7 @@ kotlin { api(compose.ui) } } - named("desktopMain") {} + named("desktopMain") } }