使用 android 的 network_security_config 文件在 kmm 中设置 ktor

Setup ktor in kmm with android's network_security_config file

我正在将证书固定集成到 ktor kmm ktor 在 android 中使用 network_security_config 文件还是我们必须以编程方式使用以下代码进行设置?

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

Android 的所有 Ktor 引擎(CIO, OkHttp, Android) use network security configuration