3 ms·
There is for instance a KMP module which relies on OkHTTP on Android and wraps NSURLSession on iOS - while exposing a common interface in Kotlin. The name escap
by arcticbull 3y ago
There is for instance a KMP module which relies on OkHTTP on Android and wraps NSURLSession on iOS - while exposing a common interface in Kotlin. The name escapes me at the moment. No reason you can't do that with Rust, but there's no reason to do that either, in my opinion. I agree that this probably isn't the right boundary at which to do your code sharing.
On the other hand your shared code can parse or generate data and pass it to/obtain it from a platform specific networking layer.
- tadfisher 3y agoKtor client, maybe?
- arcticbull 3y agoPretty sure that was the one!