improve build & sync times
This commit is contained in:
@@ -21,6 +21,9 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jvm()
|
||||||
|
|
||||||
|
if (providers.gradleProperty("include_ios").get().toBoolean()) {
|
||||||
listOf(
|
listOf(
|
||||||
iosX64(),
|
iosX64(),
|
||||||
iosArm64(),
|
iosArm64(),
|
||||||
@@ -31,9 +34,9 @@ kotlin {
|
|||||||
isStatic = true
|
isStatic = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
jvm()
|
if (providers.gradleProperty("include_wasm").get().toBoolean()) {
|
||||||
|
|
||||||
@OptIn(ExperimentalWasmDsl::class)
|
@OptIn(ExperimentalWasmDsl::class)
|
||||||
wasmJs {
|
wasmJs {
|
||||||
outputModuleName = "composeApp"
|
outputModuleName = "composeApp"
|
||||||
@@ -53,6 +56,7 @@ kotlin {
|
|||||||
}
|
}
|
||||||
binaries.executable()
|
binaries.executable()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
commonMain.dependencies {
|
commonMain.dependencies {
|
||||||
@@ -104,16 +108,20 @@ kotlin {
|
|||||||
implementation(libs.kstore.file)
|
implementation(libs.kstore.file)
|
||||||
}
|
}
|
||||||
|
|
||||||
iosMain.dependencies {
|
findByName("iosMain")?.run {
|
||||||
|
dependencies {
|
||||||
implementation(libs.ktor.client.darwin)
|
implementation(libs.ktor.client.darwin)
|
||||||
implementation(libs.kstore.file)
|
implementation(libs.kstore.file)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
wasmJsMain.dependencies {
|
findByName("wasmJsMain")?.run {
|
||||||
|
dependencies {
|
||||||
implementation(libs.kstore.storage)
|
implementation(libs.kstore.storage)
|
||||||
implementation(libs.ktor.client.js)
|
implementation(libs.ktor.client.js)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|||||||
@@ -16,3 +16,8 @@ android.nonTransitiveRClass=true
|
|||||||
|
|
||||||
#Compose
|
#Compose
|
||||||
org.jetbrains.compose.experimental.jscanvas.enabled=true
|
org.jetbrains.compose.experimental.jscanvas.enabled=true
|
||||||
|
|
||||||
|
include_wasm=true
|
||||||
|
include_ios=false
|
||||||
|
#Flip this to false when including the ios targets
|
||||||
|
org.gradle.unsafe.configuration-cache=true
|
||||||
|
|||||||
Reference in New Issue
Block a user