@@ -3,7 +3,6 @@ import org.jetbrains.compose.desktop.application.dsl.TargetFormat.Deb
33import org.jetbrains.compose.desktop.application.dsl.TargetFormat.Dmg
44import org.jetbrains.compose.desktop.application.dsl.TargetFormat.Msi
55import org.jetbrains.compose.desktop.application.tasks.AbstractNativeMacApplicationPackageTask
6- // import org.jetbrains.compose.experimental.dsl.IOSDevices
76import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
87import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
98
@@ -16,8 +15,6 @@ plugins {
1615
1716kotlinMultiplatform(
1817 withKotlinExplicitMode = false ,
19- // this is required for the Compose iOS Application DSL expect a `uikit` target name.
20- iosPrefixName = " uikit" ,
2118)
2219
2320android {
@@ -40,21 +37,16 @@ kotlin {
4037 }
4138 macosX64(macOsConfiguation)
4239 macosArm64(macOsConfiguation)
43- val uikitConfiguration: KotlinNativeTarget .() -> Unit = {
44- binaries {
45- executable() {
46- entryPoint = " main"
47- freeCompilerArgs + = listOf (
48- " -linker-option" , " -framework" , " -linker-option" , " Metal" ,
49- " -linker-option" , " -framework" , " -linker-option" , " CoreText" ,
50- " -linker-option" , " -framework" , " -linker-option" , " CoreGraphics"
51- )
52- }
40+ listOf (
41+ iosX64(),
42+ iosArm64(),
43+ iosSimulatorArm64()
44+ ).forEach { iosTarget ->
45+ iosTarget.binaries.framework {
46+ baseName = " ComposeShared"
47+ isStatic = true
5348 }
5449 }
55- iosX64(" uikitX64" , uikitConfiguration)
56- iosArm64(" uikitArm64" , uikitConfiguration)
57- iosSimulatorArm64(" uikitSimulatorArm64" , uikitConfiguration)
5850
5951 js(IR ) {
6052 browser()
@@ -161,17 +153,5 @@ afterEvaluate {
161153}
162154
163155compose.experimental {
164- // uikit.application {
165- // bundleIdPrefix = "cafe.adriel.lyricist"
166- // projectName = "MultiplatformSample"
167- // /*deployConfigurations {
168- // simulator("IPhone8") {
169- // device = IOSDevices.IPHONE_8
170- // }
171- // simulator("IPad") {
172- // device = IOSDevices.IPAD_MINI_6th_Gen
173- // }
174- // }*/
175- // }
176156 web.application {}
177157}
0 commit comments