Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlaster committed Nov 2, 2023
1 parent a650b69 commit 4caeba3
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 45 deletions.
3 changes: 2 additions & 1 deletion precompose-koin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ group = "moe.tlaster"
version = rootProject.extra.get("precomposeVersion") as String

kotlin {
targetHierarchy.default {

applyDefaultHierarchyTemplate {
common {
group("jvmAndroid") {
withAndroidTarget()
Expand Down
20 changes: 3 additions & 17 deletions precompose-molecule/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ group = "moe.tlaster"
version = rootProject.extra.get("precomposeVersion") as String

kotlin {
applyDefaultHierarchyTemplate()
androidTarget {
publishLibraryVariants("release", "debug")
}
Expand Down Expand Up @@ -82,33 +83,18 @@ kotlin {
implementation(kotlin("test-js"))
}
}
val macosMain by creating {
val macosMain by getting {
dependsOn(commonMain)
dependencies {
implementation(compose.foundation)
}
}
val macosX64Main by getting {
dependsOn(macosMain)
}
val macosArm64Main by getting {
dependsOn(macosMain)
}
val iosMain by creating {
val iosMain by getting {
dependsOn(commonMain)
dependencies {
implementation(compose.foundation)
}
}
val iosX64Main by getting {
dependsOn(iosMain)
}
val iosArm64Main by getting {
dependsOn(iosMain)
}
val iosSimulatorArm64Main by getting {
dependsOn(iosMain)
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion precompose-viewmodel/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ group = "moe.tlaster"
version = rootProject.extra.get("precomposeVersion") as String

kotlin {
targetHierarchy.default {
applyDefaultHierarchyTemplate {
common {
group("jvmAndroid") {
withAndroidTarget()
Expand Down
2 changes: 1 addition & 1 deletion precompose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ group = "moe.tlaster"
version = rootProject.extra.get("precomposeVersion") as String

kotlin {
targetHierarchy.default()
applyDefaultHierarchyTemplate()
macosArm64()
macosX64()
iosX64()
Expand Down
26 changes: 13 additions & 13 deletions sample/molecule/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,19 @@ compose {
}
}
}
experimental {
uikit {
application {
bundleIdPrefix = "moe.tlaster.precompose.sample.molecule"
projectName = "PreComposeMoleculeSample"
deployConfigurations {
simulator("Simulator") {
device = org.jetbrains.compose.experimental.dsl.IOSDevices.IPHONE_13_MINI
}
}
}
}
}
// experimental {
// uikit {
// application {
// bundleIdPrefix = "moe.tlaster.precompose.sample.molecule"
// projectName = "PreComposeMoleculeSample"
// deployConfigurations {
// simulator("Simulator") {
// device = org.jetbrains.compose.experimental.dsl.IOSDevices.IPHONE_13_MINI
// }
// }
// }
// }
// }
}

android {
Expand Down
24 changes: 12 additions & 12 deletions sample/todo/ios/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.jetbrains.compose.compose

import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

Expand Down Expand Up @@ -38,17 +38,17 @@ kotlin {
}
}

compose.experimental {
uikit.application {
bundleIdPrefix = "moe.tlaster"
projectName = "PreComposeSample"
deployConfigurations {
simulator("Simulator") {
device = org.jetbrains.compose.experimental.dsl.IOSDevices.IPHONE_13_MINI
}
}
}
}
// compose.experimental {
// uikit.application {
// bundleIdPrefix = "moe.tlaster"
// projectName = "PreComposeSample"
// deployConfigurations {
// simulator("Simulator") {
// device = org.jetbrains.compose.experimental.dsl.IOSDevices.IPHONE_13_MINI
// }
// }
// }
// }

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = rootProject.extra.get("jvmTarget") as String
Expand Down

0 comments on commit 4caeba3

Please sign in to comment.