Nikolay Kasyanov
04/09/2020, 6:53 AMiosX64Main { ...dependencies... }
iosArm64Main {
dependsOn iosX64Main
}
with this:
ios {
iosArm64Main.dependsOn it
iosX64Main.dependsOn it
...dependencies...
}
moving iOS-only source files from iosX64Main
to ios
folder accordingly.
Now all imports starting with platform.
are highlighted red in the IDE all the time, builds fine though. Is this a known issue?1.3.71-release-IJ2019.3-1
Artyom Degtyarev [JB]
04/09/2020, 9:27 AMios{…}
shortcut should create an src/iosMain/kotlin
folders, not an /ios
one.Nikolay Kasyanov
04/09/2020, 9:30 AMiosMain
folder on another projectArtyom Degtyarev [JB]
04/09/2020, 9:32 AM.dependsOn
constructions, the purpose of the shortcut was to get rid of this.Nikolay Kasyanov
04/09/2020, 9:43 AMsourceSets.iosMain
example with the new ios
shortcut.Artyom Degtyarev [JB]
04/09/2020, 9:53 AMios{...}
, with saving all contents of the original ios<Arm | X>64
block. The only thing the shortcut does is adding both targets internally, making their source sets depending on the new iosMain
and that’s all. So, there is no need to specify them explicitly as you’ve done.Nikolay Kasyanov
04/09/2020, 9:56 AMkotlin.mpp.enableGranularSourceSetsMetadata=true
is a must for it to workOlenyov Kirill
04/09/2020, 11:26 AMArtyom Degtyarev [JB]
04/09/2020, 11:29 AMios
target shortcuts?Olenyov Kirill
04/09/2020, 11:30 AMNikolay Kasyanov
04/09/2020, 11:35 AMkotlin.mpp.enableGranularSourceSetsMetadata=true
I changed the structure like this:
kotlin {
ios()
sourceSets {
...
iosMain {
// no explicit dependsOn calls needed
}
...
}
}
kotlin.mpp.enableGranularSourceSetsMetadata=true
to gradle.properties
?Olenyov Kirill
04/09/2020, 11:41 AMArtyom Degtyarev [JB]
04/09/2020, 11:44 AMOlenyov Kirill
04/09/2020, 11:50 AMArtyom Degtyarev [JB]
04/09/2020, 11:51 AMTools > Kotlin > Configure Kotlin Plugin Updates
IIRC.Olenyov Kirill
04/09/2020, 11:53 AMNikolay Kasyanov
04/09/2020, 12:05 PMOlenyov Kirill
04/09/2020, 12:06 PMArtyom Degtyarev [JB]
04/10/2020, 10:48 AMOlenyov Kirill
04/10/2020, 10:51 AM