Hien Nguyen
Hien Nguyen

Reputation: 764

Setup ktor in kmm with android's network_security_config file

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
}

Upvotes: 0

Views: 771

Answers (1)

Aleksei Tirman
Aleksei Tirman

Reputation: 7139

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

Upvotes: 2

Related Questions