Hi,
I want know how to add dependencies to targert only wasm platform in the build.gradle.kts gradle config file; in composeApp module in Kotlin Multplatfom project.
I use Coil in my project to load images from URL; it works on all other platforms execept wasmJs
a
Artem Kobzar
11/08/2024, 11:57 AM
Copy code
kotlin {
sourceSets {
wasmJsMain.dependencies {
implementation("YOUR_DEPENDENCY") // it will add the dependency only for Wasm main (for tests you need to use wasmJsTest sourceSet)
}
}
}
Artem Kobzar
11/08/2024, 11:58 AM
Btw I used Kamel for the same purposes, because it has Wasm as a target