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` `maven-publish`
} }
kscience{ kscience {
jvm() jvm()
js()
useCoroutines()
} }
kotlin { kotlin {
@ -20,7 +22,7 @@ kotlin {
api("io.ktor:ktor-client-core") api("io.ktor:ktor-client-core")
} }
} }
val jvmTest by getting { getByName("jvmTest") {
dependencies { dependencies {
implementation("io.ktor:ktor-client-cio") implementation("io.ktor:ktor-client-cio")
implementation(compose.desktop.currentOs) implementation(compose.desktop.currentOs)

View File

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

View File

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