albertgao
01/30/2018, 10:09 PMIf (android) {a=andA} else if (ios) {a=iosA}. I want to use interfaces to separate some platform-specific logic, then compile them according to different platformalbertgao
01/30/2018, 10:40 PMolonho
01/31/2018, 5:59 AMexpect/actual mechanism and compile different sources adhering to same contracts on different platformsalbertgao
01/31/2018, 7:42 AMolonho
01/31/2018, 7:49 AMalbertgao
01/31/2018, 7:58 AMmultiplatform project is experimental and should be enabled explicitly. I tried to add expect "enable" in kotlin{ experimental{} } by the side of coroutines "enable", seems not the right way. Any ideas?olonho
01/31/2018, 8:04 AM-Xmulti-platform compiler switchalbertgao
01/31/2018, 8:15 AMgradle build -Xmulti-platform will yield Unknown command-line option '-X'.. Or is it a kotlinc parameter, but don’t know how to build with that yet. Will try laterilya.matveev
01/31/2018, 9:09 AMkonanArtifacts {
program('foo') {
extraOpts '-Xmulti-platform'
}
}
But multiplatform support was added after the 0.5 KN release so you need to use either a compiler built from current master or set konan.version in your gradle.properties to some development version (e.g. konan.version=0.6-dev-822)albertgao
01/31/2018, 8:35 PM