// :transport-okhttp (A7) — the ONLY concrete WS + REST transport. Implements the
// frozen TermTransport / PingableTermTransport / HttpTransport interfaces over
// OkHttp (a plain JVM lib, so this module builds + tests here with NO Android SDK).
// One shared OkHttpClient → mTLS SSLSocketFactory applies to both WS and REST;
// custom Origin header stamped on the WS upgrade. Depends only on :wire-protocol
// (+ an injected ClientIdentityProvider so mTLS is wired without :session-core
// knowing about it). MockWebServer drives the JVM tests.

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

kotlin {
    jvmToolchain(17)
}

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

    testImplementation(project(":test-support"))
    testImplementation(libs.bundles.unit.test)
    testImplementation(libs.okhttp.mockwebserver)
    testRuntimeOnly(libs.junit.platform.launcher)
}

tasks.test {
    useJUnitPlatform()
}
