Browse Source

REALLY copying to resources

with_mpp_example
Shagen Ogandzhanian 3 years ago
parent
commit
f2b1cb5a0c
  1. 5
      examples/web-skia/build.gradle.kts

5
examples/web-skia/build.gradle.kts

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

Loading…
Cancel
Save