Add Js targets

This commit is contained in:
Alexander Nozik 2023-10-01 11:22:02 +03:00
parent 7d3b219d70
commit f05f6e137c
3 changed files with 8 additions and 3 deletions

View File

@ -5,8 +5,10 @@ plugins {
`maven-publish`
}
kscience{
kscience {
jvm()
js()
useCoroutines()
}
kotlin {
@ -20,7 +22,7 @@ kotlin {
api("io.ktor:ktor-client-core")
}
}
val jvmTest by getting {
getByName("jvmTest") {
dependencies {
implementation("io.ktor:ktor-client-cio")
implementation(compose.desktop.currentOs)

View File

@ -1,3 +1,5 @@
@file:Suppress("DEPRECATION")
package center.sciprog.maps.compose
import kotlin.jvm.Synchronized

View File

@ -6,6 +6,7 @@ plugins {
kscience{
jvm()
js()
}
kotlin {
@ -17,7 +18,7 @@ kotlin {
api(compose.foundation)
}
}
val jvmMain by getting {
getByName("jvmMain"){
dependencies {
implementation("org.jfree:org.jfree.svg:5.0.4")
api(compose.desktop.currentOs)