jkbbwr
10/30/2018, 10:18 PMplugins {
id 'kotlin-multiplatform' version '1.3.0-rc-190'
}
repositories {
maven { url '<http://dl.bintray.com/kotlin/kotlin-eap>' }
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.0.0'
}
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]) {
// Comment to generate Kotlin/Native library (KLIB) instead of executable file:
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.
linuxMain {
}
linuxTest {
}
}
}