From f2b1cb5a0cedc017169c505cdf5825ebfff1beab Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Tue, 4 Jan 2022 15:17:57 +0100 Subject: [PATCH] REALLY copying to resources --- examples/web-skia/build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/web-skia/build.gradle.kts b/examples/web-skia/build.gradle.kts index 4ee57ac45e..0938fcdfe2 100644 --- a/examples/web-skia/build.gradle.kts +++ b/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)