kpgalligan
02/22/2019, 6:09 PMrusshwolf
02/22/2019, 6:20 PMexpect
declarations, but it will build fine and you'll get IDE inference and autocomplete.kpgalligan
02/22/2019, 6:21 PMrusshwolf
02/22/2019, 6:27 PMhmole
02/22/2019, 7:32 PMdef emulator = "iosX64"
def iphone = "iosArm64"
kotlin {
targetFromPreset(presets[emulator], "ios") {
}
targetFromPreset(presets[iphone], "iosDevice") {
}
}
def compilations = kotlin.targets["iosDevice"].compilations
afterEvaluate {
compilations.named("main").configure { compilation ->
compilation.source kotlin.sourceSets.findByName("iosMain")
}
compilations.named("test").configure { compilation ->
compilation.source kotlin.sourceSets.findByName("iosTest")
}
}
josephivie
02/22/2019, 7:43 PMisNative.sources {
main {}
test {}
}
~https://github.com/lightningkite/konvenience~if (System.getProperty("idea.resolveSourceSetDependencies") != null) {
sourceSets {
maybeCreate("targetSpecificMain").apply {
kotlin.srcDir("src/somePlatformsMain/kotlin")
}
}
}
This feature will be added to Konvenience by default.bdeg
02/23/2019, 8:41 PMkpgalligan
02/23/2019, 8:46 PMbdeg
02/23/2019, 8:47 PM