Maurice Wingbermuhle
11/02/2020, 10:10 AMSam
11/02/2020, 1:21 PMMaurice Wingbermuhle
11/02/2020, 1:36 PMplatform
imports as Darran Kelinske has posted last tuesdaylouiscad
11/03/2020, 8:54 AMMaurice Wingbermuhle
11/03/2020, 8:58 AMdazza5000
11/03/2020, 1:49 PMTijl
11/04/2020, 9:06 AMMaurice Wingbermuhle
11/05/2020, 1:08 PMconfigure([iosX64Main, iosArm64Main]) {
dependsOn iosMain
}
use this:
iosArm64Main {
dependencies {
}
kotlin.srcDir("${projectDir}/src/iosMain/kotlin")
}
iosX64Main {
dependencies {
}
kotlin.srcDir("${projectDir}/src/iosMain/kotlin")
}
If you have any dependencies in iosMain
you need to duplicate them to the 2 specific variant. iosMain
needs to still exist, but is allowed to be empty. This restores my compiler setup for native platform code, including code completion.
I am still using HMPP for JVM targets, and that still works without any issue.Artyom Degtyarev [JB]
11/05/2020, 1:20 PMMaurice Wingbermuhle
11/05/2020, 2:06 PMdazza5000
11/06/2020, 1:41 AMiosMain {
dependsOn commonMain
}
Artyom Degtyarev [JB]
11/06/2020, 9:12 AMdependsOn
relation provide several features, and some of them might not be useful for every new source set. For example, if you want to make a project with hierarchical structure and source sets tree depth more >= 4(e.g. commonMain
-> nativeMain
for all Native targets -> appleMain
for Apple subset of Native targets -> iosX64Main
), I’m not sure making all intermediate source sets depend on the common one is a good idea.