Skip to content

Commit aef7394

Browse files
committed
Disable non-Android targets
1 parent f619834 commit aef7394

File tree

4 files changed

+120
-120
lines changed

4 files changed

+120
-120
lines changed

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ include(":androidApp")
5454
include(":ui-components")
5555
include(":ui-components-gallery")
5656
include(":shared")
57-
include(":backend")
57+
//include(":backend")

shared/build.gradle.kts

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -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
207207
composeCompiler {

ui-components-gallery/build.gradle.kts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@ plugins {
1212
kotlin {
1313
androidTarget()
1414

15-
jvm()
16-
17-
iosX64()
18-
iosArm64()
19-
iosSimulatorArm64()
20-
21-
@OptIn(ExperimentalWasmDsl::class)
22-
wasmJs {
23-
binaries.executable()
24-
browser {
25-
commonWebpackConfig {
26-
outputFileName = "kotlinconf-app-gallery.js"
27-
}
28-
}
29-
}
30-
js {
31-
browser()
32-
}
15+
// jvm()
16+
//
17+
// iosX64()
18+
// iosArm64()
19+
// iosSimulatorArm64()
20+
//
21+
// @OptIn(ExperimentalWasmDsl::class)
22+
// wasmJs {
23+
// binaries.executable()
24+
// browser {
25+
// commonWebpackConfig {
26+
// outputFileName = "kotlinconf-app-gallery.js"
27+
// }
28+
// }
29+
// }
30+
// js {
31+
// browser()
32+
// }
3333

3434
sourceSets {
3535
commonMain.dependencies {
@@ -48,11 +48,11 @@ kotlin {
4848
implementation(libs.androidx.activity.compose)
4949
}
5050

51-
// For hot-reload
52-
jvmMain.dependencies {
53-
implementation(compose.desktop.currentOs)
54-
implementation(libs.logback.classic)
55-
}
51+
// // For hot-reload
52+
// jvmMain.dependencies {
53+
// implementation(compose.desktop.currentOs)
54+
// implementation(libs.logback.classic)
55+
// }
5656
}
5757
}
5858

ui-components/build.gradle.kts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ kotlin {
3030

3131
androidTarget()
3232

33-
jvm()
34-
35-
iosX64()
36-
iosArm64()
37-
iosSimulatorArm64()
38-
39-
@OptIn(ExperimentalWasmDsl::class)
40-
wasmJs()
41-
js {
42-
browser()
43-
}
33+
// jvm()
34+
//
35+
// iosX64()
36+
// iosArm64()
37+
// iosSimulatorArm64()
38+
//
39+
// @OptIn(ExperimentalWasmDsl::class)
40+
// wasmJs()
41+
// js {
42+
// browser()
43+
// }
4444

4545
sourceSets {
4646
commonMain.dependencies {
@@ -63,15 +63,15 @@ kotlin {
6363
androidMain.dependencies {
6464
implementation(libs.ktor.client.okhttp)
6565
}
66-
jvmMain.dependencies {
67-
implementation(libs.ktor.client.okhttp)
68-
}
69-
iosMain.dependencies {
70-
implementation(libs.ktor.client.darwin)
71-
}
72-
jsMain.dependencies {
73-
implementation(libs.ktor.client.js)
74-
}
66+
// jvmMain.dependencies {
67+
// implementation(libs.ktor.client.okhttp)
68+
// }
69+
// iosMain.dependencies {
70+
// implementation(libs.ktor.client.darwin)
71+
// }
72+
// jsMain.dependencies {
73+
// implementation(libs.ktor.client.js)
74+
// }
7575
}
7676
}
7777

0 commit comments

Comments
 (0)