plugins {
    alias(libs.plugins.kotlin.multiplatform)
    alias(libs.plugins.android.kotlin.multiplatform.library)
}

kotlin {
    // JVM target drives tests and the headless tuning simulator.
    jvm()

    // The modern KMP Android integration. `androidTarget()` is the older path.
    androidLibrary {
        namespace = "com.jsjdesigns.poker.engine"
        compileSdk = 37
        minSdk = 26
    }

    sourceSets {
        commonMain.dependencies {
            implementation(libs.kotlinx.coroutines.core)
        }
        commonTest.dependencies {
            implementation(kotlin("test"))
            implementation(libs.kotlinx.coroutines.test)
        }
    }
}
