add js target

This commit is contained in:
InsanusMokrassar 2019-11-27 19:06:27 +06:00
parent 4f4600b599
commit 6de9156270
2 changed files with 7 additions and 2 deletions

View File

@ -31,6 +31,7 @@ repositories {
kotlin {
jvm()
js()
sourceSets {
commonMain {
@ -51,7 +52,6 @@ kotlin {
jvmMain {
dependencies {
api "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
}
}
jvmTest {
@ -60,5 +60,10 @@ kotlin {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
}
}
jsMain {
dependencies {
api "org.jetbrains.kotlinx:kotlinx-coroutines-core-js:$kotlin_coroutines_version"
}
}
}
}

View File

@ -1,5 +1,5 @@
kotlin.code.style=official
kotlin_version=1.3.60
kotlin_version=1.3.61
kotlin_coroutines_version=1.3.2
gradle_bintray_plugin_version=1.8.4