// :client-tls (PURE half) — PKCS#12 structural parse (KeyStore("PKCS12"),
// import-parse only), X509KeyManager alias/getPrivateKey selection logic,
// CertificateSummary parsing, PairingError/HostClassifier warning-tier mapping.
// JVM-speed tested and IN the 80% Kover gate. The AndroidKeyStore/Tink framework
// half lives in the (SDK-gated) :client-tls-android module.

plugins {
    alias(libs.plugins.kotlin.jvm)
    alias(libs.plugins.kotlin.serialization)
    alias(libs.plugins.kover)
}

kotlin {
    jvmToolchain(17)
}

dependencies {
    api(project(":wire-protocol"))
    implementation(libs.kotlinx.coroutines.core)

    testImplementation(libs.bundles.unit.test)
    testRuntimeOnly(libs.junit.platform.launcher)
}

tasks.test {
    useJUnitPlatform()
}

// A36 acceptance gate: >=80% line coverage on this pure module (plan §7).
kover {
    reports {
        verify {
            rule {
                minBound(80)
            }
        }
    }
}
