pluginManagement {
    repositories {
        gradlePluginPortal()
        mavenCentral()
        // google() is only needed by the Android-framework modules (see below).
        // It requires the Android Gradle Plugin / SDK, absent in this env.
    }
}

@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
    // Modules must not declare their own repositories.
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        mavenCentral()
    }
    // The version catalog at gradle/libs.versions.toml is auto-registered as `libs`.
}

rootProject.name = "webterm-android"

// ── Pure Kotlin/JVM modules (JVM-unit-testable; the 80% Kover targets) ──────────
// These build with the JVM toolchain only — NO Android SDK required.
include(":wire-protocol")
include(":session-core")
include(":api-client")
include(":client-tls")
include(":test-support")

// ── Android-framework modules ───────────────────────────────────────────────────
// Scaffolded (dirs + build.gradle.kts stubs exist) but NOT included, because this
// environment has NO Android SDK. Their build scripts apply `com.android.*`
// plugins that cannot resolve here.
// TODO(android-sdk): enable when an Android SDK is available.
// include(":app")
// include(":terminal-view")
// include(":host-registry")
// include(":client-tls-android")
