|
|
@ -20,12 +20,13 @@ dependencies { |
|
|
|
skikoWasm("org.jetbrains.skiko:skiko-js-wasm-runtime:${SKIKO_VERSION}") |
|
|
|
skikoWasm("org.jetbrains.skiko:skiko-js-wasm-runtime:${SKIKO_VERSION}") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
val skikoResourcesDir = "${rootProject.buildDir}/skiko" |
|
|
|
val copySkikoResources by tasks.registering(Copy::class) { |
|
|
|
val copySkikoResources by tasks.registering(Copy::class) { |
|
|
|
from(skikoWasm.map { zipTree(it) }) { |
|
|
|
from(skikoWasm.map { zipTree(it) }) { |
|
|
|
include("skiko.wasm") |
|
|
|
include("skiko.wasm") |
|
|
|
include("skiko.js") |
|
|
|
include("skiko.js") |
|
|
|
} |
|
|
|
} |
|
|
|
destinationDir = file("${rootProject.buildDir}/skiko") |
|
|
|
destinationDir = file(skikoResourcesDir) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -37,6 +38,8 @@ kotlin { |
|
|
|
|
|
|
|
|
|
|
|
sourceSets { |
|
|
|
sourceSets { |
|
|
|
val jsMain by getting { |
|
|
|
val jsMain by getting { |
|
|
|
|
|
|
|
resources.srcDirs(skikoResourcesDir) |
|
|
|
|
|
|
|
|
|
|
|
dependencies { |
|
|
|
dependencies { |
|
|
|
implementation(compose.web.core) |
|
|
|
implementation(compose.web.core) |
|
|
|
implementation(compose.runtime) |
|
|
|
implementation(compose.runtime) |
|
|
|