2018-09-25 22:35:28 +03:00
|
|
|
plugins {
|
2018-10-26 14:10:41 +03:00
|
|
|
id 'kotlin-multiplatform'
|
2018-09-19 10:15:25 +03:00
|
|
|
}
|
2018-11-02 15:11:42 +03:00
|
|
|
|
2018-09-25 22:35:28 +03:00
|
|
|
repositories {
|
2018-11-02 15:11:42 +03:00
|
|
|
jcenter()
|
2018-09-25 22:35:28 +03:00
|
|
|
}
|
2018-11-02 15:11:42 +03:00
|
|
|
|
2018-09-25 22:35:28 +03:00
|
|
|
kotlin {
|
|
|
|
targets {
|
|
|
|
fromPreset(presets.jvm, 'jvm')
|
|
|
|
fromPreset(presets.js, 'js')
|
|
|
|
// 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.iosX64, 'ios')
|
|
|
|
}
|
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2018-10-26 14:10:41 +03:00
|
|
|
api "org.jetbrains.kotlin:kotlin-stdlib-common"
|
|
|
|
|
2018-09-25 22:35:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
commonTest {
|
|
|
|
dependencies {
|
2018-10-26 16:15:27 +03:00
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-common'
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-annotations-common'
|
2018-09-25 22:35:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmMain {
|
|
|
|
dependencies {
|
2018-10-26 14:10:41 +03:00
|
|
|
api "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
2018-09-25 22:35:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jvmTest {
|
|
|
|
dependencies {
|
2018-10-26 16:15:27 +03:00
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test'
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-junit'
|
2018-09-25 22:35:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jsMain {
|
|
|
|
dependencies {
|
2018-10-26 14:10:41 +03:00
|
|
|
api 'org.jetbrains.kotlin:kotlin-stdlib-js'
|
2018-09-25 22:35:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
jsTest {
|
|
|
|
dependencies {
|
2018-10-26 16:15:27 +03:00
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-test-js'
|
2018-09-25 22:35:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
// iosMain {
|
|
|
|
// }
|
|
|
|
// iosTest {
|
|
|
|
// }
|
|
|
|
}
|
2018-09-19 10:15:25 +03:00
|
|
|
}
|