From 4caeba3e1eb6b7ab25fb73c57bc00b966f1bf9b6 Mon Sep 17 00:00:00 2001 From: Tlaster Date: Thu, 2 Nov 2023 10:20:23 +0900 Subject: [PATCH] fix build --- precompose-koin/build.gradle.kts | 3 ++- precompose-molecule/build.gradle.kts | 20 +++----------------- precompose-viewmodel/build.gradle.kts | 2 +- precompose/build.gradle.kts | 2 +- sample/molecule/build.gradle.kts | 26 +++++++++++++------------- sample/todo/ios/build.gradle.kts | 24 ++++++++++++------------ 6 files changed, 32 insertions(+), 45 deletions(-) diff --git a/precompose-koin/build.gradle.kts b/precompose-koin/build.gradle.kts index 076e60be..6d3e7b18 100644 --- a/precompose-koin/build.gradle.kts +++ b/precompose-koin/build.gradle.kts @@ -12,7 +12,8 @@ group = "moe.tlaster" version = rootProject.extra.get("precomposeVersion") as String kotlin { - targetHierarchy.default { + + applyDefaultHierarchyTemplate { common { group("jvmAndroid") { withAndroidTarget() diff --git a/precompose-molecule/build.gradle.kts b/precompose-molecule/build.gradle.kts index fd3c1d20..3d27d9df 100644 --- a/precompose-molecule/build.gradle.kts +++ b/precompose-molecule/build.gradle.kts @@ -12,6 +12,7 @@ group = "moe.tlaster" version = rootProject.extra.get("precomposeVersion") as String kotlin { + applyDefaultHierarchyTemplate() androidTarget { publishLibraryVariants("release", "debug") } @@ -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) - } } } diff --git a/precompose-viewmodel/build.gradle.kts b/precompose-viewmodel/build.gradle.kts index 306a4e96..c334d7cf 100644 --- a/precompose-viewmodel/build.gradle.kts +++ b/precompose-viewmodel/build.gradle.kts @@ -12,7 +12,7 @@ group = "moe.tlaster" version = rootProject.extra.get("precomposeVersion") as String kotlin { - targetHierarchy.default { + applyDefaultHierarchyTemplate { common { group("jvmAndroid") { withAndroidTarget() diff --git a/precompose/build.gradle.kts b/precompose/build.gradle.kts index 8c34e3ee..e5f706db 100644 --- a/precompose/build.gradle.kts +++ b/precompose/build.gradle.kts @@ -12,7 +12,7 @@ group = "moe.tlaster" version = rootProject.extra.get("precomposeVersion") as String kotlin { - targetHierarchy.default() + applyDefaultHierarchyTemplate() macosArm64() macosX64() iosX64() diff --git a/sample/molecule/build.gradle.kts b/sample/molecule/build.gradle.kts index f44a1dd6..dc75a264 100644 --- a/sample/molecule/build.gradle.kts +++ b/sample/molecule/build.gradle.kts @@ -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 { diff --git a/sample/todo/ios/build.gradle.kts b/sample/todo/ios/build.gradle.kts index ebf268a4..671be7b1 100644 --- a/sample/todo/ios/build.gradle.kts +++ b/sample/todo/ios/build.gradle.kts @@ -1,4 +1,4 @@ -import org.jetbrains.compose.compose + import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -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 { kotlinOptions.jvmTarget = rootProject.extra.get("jvmTarget") as String