@@ -30,53 +30,53 @@ kotlin {
3030 }
3131 }
3232
33- jvm()
34-
35- @OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl ::class )
36- wasmJs {
37- binaries.executable()
38- browser {
39- val projectDir = project.projectDir.path
40- val rootDir = project.rootDir.path
41- commonWebpackConfig {
42- outputFileName = " kotlin-app-wasm-js.js"
43- devServer = (devServer ? : KotlinWebpackConfig .DevServer ()).apply {
44- // Uncomment and configure this if you want to open a browser different from the system default
45- // open = mapOf(
46- // "app" to mapOf(
47- // "name" to "google chrome"
48- // )
49- // )
50-
51- static = (static ? : mutableListOf ()).apply {
52- // Serve sources to debug inside a browser
53- add(projectDir)
54- add(rootDir)
55- }
56- }
57- }
58- }
59- }
60-
61- js {
62- binaries.executable()
63- browser {
64- commonWebpackConfig {
65- outputFileName = " kotlin-app-js.js"
66- }
67- }
68- }
69-
70- listOf (
71- iosX64(),
72- iosArm64(),
73- iosSimulatorArm64()
74- ).forEach {
75- it.binaries.framework {
76- baseName = " shared"
77- isStatic = true
78- }
79- }
33+ // jvm()
34+ //
35+ // @OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
36+ // wasmJs {
37+ // binaries.executable()
38+ // browser {
39+ // val projectDir = project.projectDir.path
40+ // val rootDir = project.rootDir.path
41+ // commonWebpackConfig {
42+ // outputFileName = "kotlin-app-wasm-js.js"
43+ // devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
44+ // // Uncomment and configure this if you want to open a browser different from the system default
45+ // // open = mapOf(
46+ // // "app" to mapOf(
47+ // // "name" to "google chrome"
48+ // // )
49+ // // )
50+ //
51+ // static = (static ?: mutableListOf()).apply {
52+ // // Serve sources to debug inside a browser
53+ // add(projectDir)
54+ // add(rootDir)
55+ // }
56+ // }
57+ // }
58+ // }
59+ // }
60+ //
61+ // js {
62+ // binaries.executable()
63+ // browser {
64+ // commonWebpackConfig {
65+ // outputFileName = "kotlin-app-js.js"
66+ // }
67+ // }
68+ // }
69+ //
70+ // listOf(
71+ // iosX64(),
72+ // iosArm64(),
73+ // iosSimulatorArm64()
74+ // ).forEach {
75+ // it.binaries.framework {
76+ // baseName = "shared"
77+ // isStatic = true
78+ // }
79+ // }
8080
8181 applyDefaultHierarchyTemplate {
8282 common {
@@ -143,22 +143,22 @@ kotlin {
143143 implementation(libs.ktor.client.okhttp)
144144 }
145145
146- iosMain.dependencies {
147- implementation(libs.kotlinx.coroutines.core)
148- implementation(libs.ktor.client.darwin)
149- }
150-
151- jvmMain.dependencies {
152- implementation(libs.ktor.client.okhttp)
153- implementation(compose.desktop.currentOs)
154- implementation(libs.android.svg)
155- implementation(libs.kotlinx.coroutines.swing)
156- }
157-
158- get(" webMain" ).dependencies {
159- implementation(libs.ktor.client.js)
160- implementation(npm(" @js-joda/timezone" , " 2.3.0" ))
161- }
146+ // iosMain.dependencies {
147+ // implementation(libs.kotlinx.coroutines.core)
148+ // implementation(libs.ktor.client.darwin)
149+ // }
150+ //
151+ // jvmMain.dependencies {
152+ // implementation(libs.ktor.client.okhttp)
153+ // implementation(compose.desktop.currentOs)
154+ // implementation(libs.android.svg)
155+ // implementation(libs.kotlinx.coroutines.swing)
156+ // }
157+ //
158+ // get("webMain").dependencies {
159+ // implementation(libs.ktor.client.js)
160+ // implementation(npm("@js-joda/timezone", "2.3.0"))
161+ // }
162162 }
163163}
164164
@@ -189,19 +189,19 @@ compose.desktop {
189189 }
190190}
191191
192- val buildWebApp by tasks.creating(Copy ::class ) {
193- val wasmDist = " wasmJsBrowserDistribution"
194- val jsDist = " jsBrowserDistribution"
195-
196- dependsOn(wasmDist, jsDist)
197-
198- from(tasks.named(jsDist).get().outputs.files)
199- from(tasks.named(wasmDist).get().outputs.files)
200-
201- into(layout.buildDirectory.dir(" webApp" ))
202-
203- duplicatesStrategy = DuplicatesStrategy .INCLUDE
204- }
192+ // val buildWebApp by tasks.creating(Copy::class) {
193+ // val wasmDist = "wasmJsBrowserDistribution"
194+ // val jsDist = "jsBrowserDistribution"
195+ //
196+ // dependsOn(wasmDist, jsDist)
197+ //
198+ // from(tasks.named(jsDist).get().outputs.files)
199+ // from(tasks.named(wasmDist).get().outputs.files)
200+ //
201+ // into(layout.buildDirectory.dir("webApp"))
202+ //
203+ // duplicatesStrategy = DuplicatesStrategy.INCLUDE
204+ // }
205205
206206// Hot reload support
207207composeCompiler {
0 commit comments