// core/backup — Phase 1 (M2 task 1): the backup bridge, extracted from // :composeApp so the desktop build can speak the phone's file format. // // Everything here is pure JVM/kotlinx (verified by reading the code in the // Phase-0 spike: zero android.* imports in the codecs). The package name // stays org.incido.compose.data.backup so the Android diff is file moves // only — no import churn in composeApp. // // Shape follows :core:domain (plain kotlin("jvm"), consumed by both the // Android app and the desktop app). No ObjectBox here: the codec talks to // the app only through the NoteRepository interface from :core:domain. plugins { alias(libs.plugins.kotlinJvm) // @Serializable DTOs (BackupFile / BackupNote / BackupAttachment) live in // BackupCodec.kt — the plugin generates their serializers here. alias(libs.plugins.kotlinSerialization) } java { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlin { jvmToolchain(17) } dependencies { // Public API speaks domain types (Note, NoteRepository) — api, not impl. api(project(":core:domain")) implementation(libs.kotlinx.coroutines.core) implementation(libs.kotlinx.serialization.json) }