Anybody knows why I can't use a declared dependenc...
# android
m
Anybody knows why I can't use a declared dependency when creating a x-platform Kotlin library? Even though I add it to commonMain, it's visible only in androidMain :/
Copy code
sourceSets["commonMain"].dependencies {
        implementation("org.jetbrains.kotlin:kotlin-stdlib-common")
        implementation ("org.java-websocket:Java-WebSocket:1.4.0")
    }
Java-WebSocket seems to me just a java library, so shouldn't it be available in common library part?
Ok, I think I got that one wrong way round. It's a java library, so it works on JVM which makes it not compatible with ios nor Kotlin/Native Correct?
m
Kotlin native is able to use only Kotlin library. If you want to develop websocket , should use Ktor.