Stock, package size and prescription state move to inventory_item; medication is now a regimen (itemId FK RESTRICT — deleting a stock item can never silently take adherence history with it). Supply warnings aggregate consumption across all regimens sharing an item. New Lager screen with one-tap '+1 pakning' restock; med editor picks an existing item or creates one inline via the shared ItemFormState (one form, no drift). Backup format v2 mirrors the split and still restores v1 files by performing the same conversion the DB migration does. MIGRATION_1_2 statements are copied from the exported 2.json and proven by an instrumented MigrationTestHelper test on the emulator (validates against the schema AND asserts data survival) before it ever touches the phone's medical record. Heads-up: connectedAndroidTest must target the emulator (ANDROID_SERIAL) — the phone's release signature rejects debug test APKs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
49 lines
3.1 KiB
TOML
49 lines
3.1 KiB
TOML
# Versions verified current-stable 2026-06-10 (Maven Central / Google Maven / release notes).
|
|
# Kotlin pin matters: AGP 9.x bundles its own KGP (built-in Kotlin); the compose and
|
|
# serialization compiler plugins must match that bundled compiler, NOT the newest Kotlin.
|
|
# Kotlin 2.4.0 is out but KSP has no 2.4-compatible release yet — stay on 2.3.x.
|
|
[versions]
|
|
agp = "9.2.1"
|
|
kotlin = "2.3.10"
|
|
ksp = "2.3.9" # KSP versioning decoupled from Kotlin since 2.3.0 (no more <kotlin>-<ksp> pairs)
|
|
composeBom = "2026.05.00"
|
|
activityCompose = "1.13.0"
|
|
coreKtx = "1.19.0"
|
|
lifecycle = "2.10.0"
|
|
room = "2.8.4" # Room 3 (androidx.room3) is still alpha — not for a medication app
|
|
work = "2.11.2"
|
|
okhttp = "5.4.0"
|
|
coroutines = "1.11.0"
|
|
serializationJson = "1.11.0"
|
|
kage = "0.4.0"
|
|
junit = "4.13.2"
|
|
androidxTestJunit = "1.3.0"
|
|
androidxTestRunner = "1.7.0"
|
|
|
|
[libraries]
|
|
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
|
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
|
|
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycle" }
|
|
androidx-lifecycle-viewmodel-compose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "lifecycle" }
|
|
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
|
|
compose-material3 = { group = "androidx.compose.material3", name = "material3" }
|
|
compose-ui = { group = "androidx.compose.ui", name = "ui" }
|
|
compose-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
|
|
compose-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
|
|
room-runtime = { group = "androidx.room", name = "room-runtime", version.ref = "room" } # ktx merged into runtime in 2.7+
|
|
room-compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
|
|
work-runtime = { group = "androidx.work", name = "work-runtime", version.ref = "work" }
|
|
okhttp = { group = "com.squareup.okhttp3", name = "okhttp", version.ref = "okhttp" }
|
|
kotlinx-coroutines-android = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-android", version.ref = "coroutines" }
|
|
kotlinx-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "serializationJson" }
|
|
kage = { group = "com.github.android-password-store", name = "kage", version.ref = "kage" }
|
|
junit = { group = "junit", name = "junit", version.ref = "junit" }
|
|
androidx-test-junit = { group = "androidx.test.ext", name = "junit", version.ref = "androidxTestJunit" }
|
|
androidx-test-runner = { group = "androidx.test", name = "runner", version.ref = "androidxTestRunner" }
|
|
room-testing = { group = "androidx.room", name = "room-testing", version.ref = "room" }
|
|
|
|
[plugins]
|
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
|
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
|
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
|