// core/domain — pure-Kotlin domain module (no Android dependencies). // Contains business types and repository interfaces only. // Implementation lives in :core:data. // // Phase 1 (M4.2): converted kotlin("jvm") → kotlin("multiplatform") with // androidTarget() + jvm(), per the Phase-0 recommendation ("core:domain is // already JVM-clean — convert it first. Zero code changes"). This is what // lets a KMP module's commonMain (composeApp) depend on it — plain // kotlin("jvm") modules are invisible to commonMain. Existing plain-JVM // (:core:data-jvm, :desktopApp) and AGP (:core:data, :app, :composeApp) // consumers keep working through the variant metadata — zero import // changes anywhere. plugins { alias(libs.plugins.androidLibrary) alias(libs.plugins.kotlinMultiplatform) } kotlin { jvmToolchain(17) androidTarget() jvm() sourceSets { commonMain.dependencies { // Flow/StateFlow appear in the public repository interfaces. api(libs.kotlinx.coroutines.core) } } } android { namespace = "org.incido.domain" compileSdk = 35 defaultConfig { minSdk = 26 } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } }