irgaly / kfswatch

Kotlin Multiplatform File System Watcher
Other
96 stars 0 forks source link

wsamjs error #88

Closed DirosChen closed 1 month ago

DirosChen commented 1 month ago

on build.gradle.kts sourceSets { val desktopMain by getting

    androidMain.dependencies {
        implementation(compose.preview)
        implementation(libs.androidx.activity.compose)
    }
    commonMain.dependencies {
        implementation(compose.runtime)
        implementation(compose.foundation)
        implementation(compose.material)
        implementation(compose.ui)
        implementation(compose.components.resources)
        implementation(compose.components.uiToolingPreview)
        implementation("io.github.irgaly.kfswatch:kfswatch:1.2.0")
    }
    desktopMain.dependencies {
        implementation(compose.desktop.currentOs)
    }
}

not work in wasmjs :composeApp:wasmJsMain: Could not resolve io.github.irgaly.kfswatch:kfswatch:1.2.0. Required by: project :composeApp

irgaly commented 1 month ago

@DirosChen

I just published kfswatch v1.3.0, this version supports Kotlin/Wasm (wasmJs - nodeJs target). Please check this one 😄

https://github.com/irgaly/kfswatch/releases/tag/v1.3.0


DirosChen commented 1 month ago

ok thanks