|
|
@ -16,10 +16,23 @@ kotlin { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (withNative) { |
|
|
|
if (withNative) { |
|
|
|
|
|
|
|
macosX64 { |
|
|
|
|
|
|
|
binaries { |
|
|
|
|
|
|
|
executable { |
|
|
|
|
|
|
|
entryPoint = "org.jetbrains.compose.kapp.demo.main" |
|
|
|
|
|
|
|
freeCompilerArgs += listOf( |
|
|
|
|
|
|
|
"-linker-option", "-framework", "-linker-option", "Metal", |
|
|
|
|
|
|
|
"-linker-option", "-framework", "-linker-option", "CoreText", |
|
|
|
|
|
|
|
"-linker-option", "-framework", "-linker-option", "CoreGraphics" |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
iosX64("uikitX64") { |
|
|
|
iosX64("uikitX64") { |
|
|
|
binaries { |
|
|
|
binaries { |
|
|
|
executable { |
|
|
|
executable { |
|
|
|
entryPoint = "main" |
|
|
|
entryPoint = "org.jetbrains.compose.kapp.demo.main" |
|
|
|
freeCompilerArgs += listOf( |
|
|
|
freeCompilerArgs += listOf( |
|
|
|
"-linker-option", "-framework", "-linker-option", "Metal", |
|
|
|
"-linker-option", "-framework", "-linker-option", "Metal", |
|
|
|
"-linker-option", "-framework", "-linker-option", "CoreText", |
|
|
|
"-linker-option", "-framework", "-linker-option", "CoreText", |
|
|
@ -28,6 +41,7 @@ kotlin { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* |
|
|
|
iosArm64("uikitArm64") { |
|
|
|
iosArm64("uikitArm64") { |
|
|
|
binaries { |
|
|
|
binaries { |
|
|
|
executable { |
|
|
|
executable { |
|
|
@ -39,7 +53,7 @@ kotlin { |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}*/ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
sourceSets { |
|
|
|
sourceSets { |
|
|
@ -59,15 +73,28 @@ kotlin { |
|
|
|
val jsMain by getting |
|
|
|
val jsMain by getting |
|
|
|
|
|
|
|
|
|
|
|
if (withNative) { |
|
|
|
if (withNative) { |
|
|
|
val uikitMain by creating { |
|
|
|
val darwinMain by creating { |
|
|
|
dependsOn(commonMain) |
|
|
|
dependsOn(commonMain) |
|
|
|
} |
|
|
|
} |
|
|
|
val uikitX64Main by getting { |
|
|
|
|
|
|
|
dependsOn(uikitMain) |
|
|
|
val macosMain by creating { |
|
|
|
|
|
|
|
dependsOn(darwinMain) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val macosX64Main by getting { |
|
|
|
|
|
|
|
dependsOn(macosMain) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val uikitMain by creating { |
|
|
|
|
|
|
|
dependsOn(darwinMain) |
|
|
|
} |
|
|
|
} |
|
|
|
val uikitArm64Main by getting { |
|
|
|
|
|
|
|
|
|
|
|
val uikitX64Main by getting { |
|
|
|
dependsOn(uikitMain) |
|
|
|
dependsOn(uikitMain) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//val uikitArm64Main by getting { |
|
|
|
|
|
|
|
// dependsOn(uikitMain) |
|
|
|
|
|
|
|
//} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|