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
Aleksei Tirman [JB]
12/17/2021, 8:32 AM
With the iOS engine, you can configure each request (
NSMutableURLRequest
) and a session configuration (
NSURLSessionConfiguration
).
a
Anthony f
12/17/2021, 12:35 PM
@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
Aleksei Tirman [JB]
12/17/2021, 1:15 PM
Honestly, I have no idea. You can try to ask it in their issue tracker.