jkbbwr
11/07/2018, 3:55 AMGlobalScope.launch
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 {
}
}
}
gildor
11/07/2018, 5:28 AMapi('org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.0.0')
gildor
11/07/2018, 5:28 AMsvyatoslav.scherbina
11/07/2018, 10:39 AMenableFeaturePreview('GRADLE_METADATA')
in settings.gradle
.yusuf3000
11/07/2018, 10:42 AMsettings.gradle
yusuf3000
11/07/2018, 10:44 AMcommonMain {
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-common'
api('org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.0.0')
}
}
yusuf3000
11/07/2018, 10:45 AMiosMain
using coroutines-core-native:1.0.0