kotlin {
targets {
// For ARM, preset should be changed to presets.iosArm32 or presets.iosArm64
// For Linux, preset should be changed to e.g. presets.linuxX64
// For MacOS, preset should be changed to e.g. presets.macosX64
fromPreset(presets.linuxX64, 'linux')
configure([linux]) {
compilations.main.outputKinds('DYNAMIC')
}
}
sourceSets {
// Note: To enable common source sets please comment out 'kotlin.import.noCommonSourceSets' property
// in gradle.properties file and re-import your project in IDE.
commonMain {
dependencies {
api('org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.0.0')
}
}
linuxMain {
}
linuxTest {
}
}
}
g
gildor
11/07/2018, 5:28 AM
Isn’t commonMain should have only common dependencies? So maybe you need this instead?