ribesg
12/11/2019, 1:46 PMplatform
code in the iosMain
sourceSet that gets generated by adding the ios()
target? If you can’t, why does it generates it anyway?ribesg
12/11/2019, 1:48 PMios()
target doesn’t seem to be documented actuallyKris Wong
12/11/2019, 1:52 PMios
in KotlinTargetContainerWithPresetFunctions
Kris Wong
12/11/2019, 1:52 PMribesg
12/11/2019, 2:13 PMribesg
12/11/2019, 2:14 PMKotlinTargetContainerWithNativeShortcuts.kt
ribesg
12/11/2019, 2:14 PMiosArm64
and iosX64
targets and sourcesetsribesg
12/11/2019, 2:15 PMiosMain
sourceSet which seems useless as IDEA doesn’t see platform
ribesg
12/11/2019, 2:15 PMKris Wong
12/11/2019, 2:16 PMArtyom Degtyarev [JB]
12/11/2019, 2:17 PMKris Wong
12/11/2019, 2:19 PMiosMain
Kris Wong
12/11/2019, 2:20 PMKris Wong
12/11/2019, 2:21 PMiosMain
to my other iOS source setsribesg
12/11/2019, 2:38 PMribesg
12/11/2019, 2:39 PMios()
shortcut is supposed to do: prevent you from having to do stuff to have proper ios targets. Previously I used symlinksKris Wong
12/11/2019, 2:42 PMKris Wong
12/11/2019, 2:42 PMribesg
12/11/2019, 3:06 PMfun ios(
namePrefix: String = "ios",
configure: KotlinNativeTarget.() -> Unit = {}
) {
val targets = listOf(
iosArm64("${namePrefix}Arm64"),
iosX64("${namePrefix}X64")
)
createIntermediateSourceSets(namePrefix, targets.defaultSourceSets(), mostCommonSourceSets())
targets.forEach { it.configure() }
}
ribesg
12/11/2019, 3:06 PMKris Wong
12/11/2019, 3:12 PMlouiscad
12/11/2019, 9:48 PM