Hi, I’m adding a shared kmm module into a huge App...
# ktor
a
Hi, I’m adding a shared kmm module into a huge App with •  shared business logic • as well as http request There is a complex identification mecanism that is already setup with in the app (Client with a couple of interceptors) • In android, as we use OkHttp I succeed to bind ktor with the “preconfigured” OkHttp instance of the app, and HOP everything just work ! • Is there any way to do the same with the iOS Engine ?
a
With the iOS engine, you can configure each request (
NSMutableURLRequest
) and a session configuration (
NSURLSessionConfiguration
).
a
@Aleksei Tirman [JB] Thanks. I’m not iOS dev, but the code use alamofire with a couple of interceptor that handle the auth and id. Do you thinks we can reuse the client instance from Alamofire configuration ?
a
Honestly, I have no idea. You can try to ask it in their issue tracker.