asked earlier about ktor support for watchOS - loo...
# ktor
d
asked earlier about ktor support for watchOS - looks like it was not available then and is available now. Tried it, and getting this error - kotlin.IllegalStateException: Failed to find HttpClientEngineContainer. Consider adding [HttpClientEngine] implementation in dependencies. Here is my sourceset, what lib do I need to add?
Copy code
sourceSets["watchosMain"].dependencies{
    implementation("org.jetbrains.kotlin:kotlin-stdlib-common:1.3.61")
    implementation ("org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.3.3")
    implementation ("org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:0.14.0")
    implementation ("io.ktor:ktor-client-core-native:1.3.0-rc")
    implementation ("io.ktor:ktor-client-json-native:1.3.0-rc")
    implementation ("io.ktor:ktor-client-serialization-native:1.3.0-rc")
    implementation ("io.ktor:ktor-client-ios:1.3.0-rc")
    implementation ("io.ktor:ktor-client-cio:1.2.5")

}
d
I think you need
implementation ("io.ktor:ktor-client-ios-watchosarm64:1.3.0-rc")
.
d
only building for the simulator (x86) for now. and turns out I just had other build problems not related to this - once fixed, this thing worked