Vivek Mittal
05/05/2023, 10:13 AMEngine doesn't support WebsocketCapability.
Can I not use sockets in the multiplatform library? IMO it should support.Norbi
05/05/2023, 11:56 AMDo I really have to add indirect dependencies?What do you mean? In a library you should not add concrete engine dependencies but use the core ktor libraries instead (ktor-server-core, ktor-client-core, etc). The users of your library will choose a preferred engine (of course with some limitations like if your library uses websockets then the chosen engine should support it of course).
Vivek Mittal
05/05/2023, 2:06 PMNorbi
05/05/2023, 2:52 PMWhen A integrates B, it also needs to add C & D in the gradle dependencies. Correct?Only if B declares C & D as
imlementation()
dependencies.
If B declares C & D as api()
dependencies then C & D will be automatically available in A as well:
// build.gradle.kts of B
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api("C")
api("D")
}
}
}
}