2020-07-19 20:37:44 +03:00
|
|
|
plugins {
|
|
|
|
id("scientifik.mpp")
|
|
|
|
id("scientifik.publish")
|
|
|
|
}
|
|
|
|
|
|
|
|
val ktorVersion: String by extra("1.3.2")
|
|
|
|
|
|
|
|
|
|
|
|
kotlin {
|
2020-07-29 22:35:21 +03:00
|
|
|
js {
|
|
|
|
browser {
|
|
|
|
dceTask {
|
|
|
|
keep("ktor-ktor-io.\$\$importsForInline\$\$.ktor-ktor-io.io.ktor.utils.io")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-19 20:37:44 +03:00
|
|
|
sourceSets {
|
2020-07-29 22:35:21 +03:00
|
|
|
commonMain {
|
2020-07-19 20:37:44 +03:00
|
|
|
dependencies {
|
|
|
|
implementation(project(":dataforge-device-core"))
|
2020-07-26 22:01:33 +03:00
|
|
|
implementation("io.ktor:ktor-client-core:$ktorVersion")
|
|
|
|
}
|
|
|
|
}
|
2020-07-29 22:35:21 +03:00
|
|
|
jvmMain {
|
2020-07-26 22:01:33 +03:00
|
|
|
dependencies {
|
2020-07-19 20:37:44 +03:00
|
|
|
implementation("io.ktor:ktor-client-cio:$ktorVersion")
|
|
|
|
}
|
|
|
|
}
|
2020-07-29 22:35:21 +03:00
|
|
|
jsMain {
|
|
|
|
dependencies {
|
|
|
|
implementation("io.ktor:ktor-client-js:$ktorVersion")
|
|
|
|
implementation(npm("text-encoding", "0.7.0"))
|
|
|
|
implementation(npm("abort-controller", "3.0.0"))
|
|
|
|
}
|
|
|
|
}
|
2020-07-19 20:37:44 +03:00
|
|
|
}
|
|
|
|
}
|