Setup ktor in kmm with android's network_security_config file

549 Views Asked by At

I’m integrating the certificate pinning to the ktor kmm Does ktor use network_security_config file in android or we have to setup with below code programmatically?

actual class Test actual constructor() {
    actual val httpClientEngine: HttpClientEngineFactory<HttpClientEngineConfig>
        get() = OkHttp
}
1

There are 1 best solutions below

0
Aleksei Tirman On BEST ANSWER

All Ktor engines for Android (CIO, OkHttp, Android) use network security configuration.