We used FB Flipper <https://fbflipper.com/> for re...
# multiplatform
a
We used FB Flipper https://fbflipper.com/ for request debugging in Android, iOS app. We have KMM project now and this doesn’t work for KMM. Also, Network Inspection within Android Studio don’t work unfortunately because we have Ktor for making requests and reading from internet this feature works only with OKHttp. Are there some alternatives to FB Flipper that could work with KMM project?
k
You can use
OkHttp
as `Ktor`’s engine. So you can configure your
OkHttp
client to have `Flipper`’s interceptor and then pass this instance to the `Ktor`’s
HttpClient
https://api.ktor.io/ktor-client/ktor-client-okhttp/io.ktor.client.engine.okhttp/-ok-http/index.html
Of course only on Android 🙂
j
@Adeel Malik were you able to successfully get this setup? I'm looking to move to a KMM project as well
176 Views