Global Feed Post Login
Replying to Avatar Terry Yiu

I’m not involved with OkHttp but looks like support for Kotlin Multiplatform was intentionally dropped in 5.0.0-alpha13.

> We planned to support multiplatform in OkHttp 5.0, but after building it, we weren’t happy with the implementation trade-offs. We can’t use our HTTP client engine on Kotlin/JS, and we weren’t prepared to build a TLS API for Kotlin/Native.

>

> We’d prefer a multiplatform HTTP client API that’s backed by OkHttp on Android and JVM, and other engines on other platforms. Ktor does this pretty well today!

https://square.github.io/okhttp/changelogs/changelog/#version-500-alpha13

However, there is an open issue for at least shipping some KMP components.

https://github.com/square/okhttp/issues/8578

Avatar
Vitor Pamplona 11mo ago

Yeah, the issue with Ktor is that it is quite focus on the server-side and becomes quite complex for simple clients. We will see.

Reply to this note

Please Login to reply.

Discussion

No replies yet.