Migrate mobile (shared) / native / shared library MPP wizards to new DSL
#KT-28458 Fixed
This commit is contained in:
+8
-9
@@ -70,17 +70,16 @@ class KotlinGradleNativeMultiplatformModuleBuilder : KotlinGradleAbstractMultipl
|
||||
override fun buildMultiPlatformPart(): String {
|
||||
return """
|
||||
kotlin {
|
||||
targets {
|
||||
// For ARM, preset should be changed to presets.iosArm32 or presets.iosArm64
|
||||
// For Linux, preset should be changed to e.g. presets.linuxX64
|
||||
// For MacOS, preset should be changed to e.g. presets.macosX64
|
||||
fromPreset(presets.$nativePresetName, '$nativeTargetName')
|
||||
|
||||
configure([$nativeTargetName]) {
|
||||
// For ARM, should be changed to iosArm32 or iosArm64
|
||||
// For Linux, should be changed to e.g. linuxX64
|
||||
// For MacOS, should be changed to e.g. macosX64
|
||||
// For Windows, should be changed to e.g. mingwX64
|
||||
$nativePresetName("$nativeTargetName") {
|
||||
compilations.main {
|
||||
// Comment to generate Kotlin/Native library (KLIB) instead of executable file:
|
||||
compilations.main.outputKinds 'EXECUTABLE'
|
||||
outputKinds("executable")
|
||||
// Change to specify fully qualified name of your application's entry point:
|
||||
compilations.main.entryPoint 'sample.main'
|
||||
entryPoint 'sample.main'
|
||||
}
|
||||
}
|
||||
sourceSets {
|
||||
|
||||
Reference in New Issue
Block a user