Thomas
07/02/2019, 11:59 AMval commonMain by sourceSets.getting
val iosMain by sourceSets.creating {
dependsOn(commonMain)
dependencies {
// iOS dependencies
}
}
val iosDebug by sourceSets.creating {
dependsOn(iosMain)
}
val iosRelease by sourceSets.creating {
dependsOn(iosMain)
}
targetFromPreset(iosTarget, "ios") {
val debugCompilation = compilations.create("debug")
val releaseCompilation = compilations.create("release")
binaries {
framework("common", listOf(DEBUG)) {
compilation = debugCompilation
}
framework("common", listOf(RELEASE)) {
compilation = releaseCompilation
}
}
}
I think this should work, I can use expect
in iosMain and actual
in iosDebug/iosRelease. However, the iosTest task I have throws an error it cannot find the actual
implementation for the expect
property. This is probably because the test uses iosMain instead of iosDebug. Is there a way to change that?Thomas
07/02/2019, 12:11 PMrusshwolf
07/02/2019, 2:03 PMkpgalligan
07/02/2019, 8:28 PMThomas
07/04/2019, 2:40 PMThomas
07/07/2019, 2:31 PM