med-det-samme/app/build.gradle.kts
Ole-Morten Duesund c66bee5cf0 age crypto via kage, verified against the CCTV scrypt vectors
Milestone 6. kage 0.4.0 over Jagged: Android-first (explicitly supports
API 26, matching minSdk), Kotlin, ships its own primitives through
BouncyCastle instead of relying on JCA ChaCha20-Poly1305 which Android
only provides from API 28. AgeBackupCrypto sits behind the same
BackupCrypto interface as the JCE baseline; age is now first in all()
so new encrypted backups are written as binary age v1 files,
decryptable anywhere with 'age -d' (decision #7). Old MDS1/JCE backups
keep decrypting via format auto-detection. The C2SP/CCTV scrypt vector
subset (19 files) is vendored into test resources: both success
vectors decrypt with matching payload SHA-256, all 17 failure vectors
are rejected.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 14:00:34 +02:00

68 lines
2 KiB
Kotlin

plugins {
alias(libs.plugins.android.application)
// AGP 9 has built-in Kotlin (org.jetbrains.kotlin.android is gone); only the
// compiler sub-plugins are applied separately, pinned to AGP's bundled KGP version.
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.ksp)
}
ksp {
// Commit exported schemas: migration baseline for a DB that is a medical record.
arg("room.schemaLocation", "$projectDir/schemas")
}
android {
namespace = "no.naiv.meddetsamme"
// compileSdk 37: required by current AndroidX (core 1.19 / compose BOM 2026.05).
// targetSdk stays 35 (brief) — compile-against vs runtime-behavior are separate knobs.
compileSdk = 37
defaultConfig {
applicationId = "no.naiv.meddetsamme"
minSdk = 26
targetSdk = 35
versionCode = 1
versionName = "0.1.0"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
}
}
compileOptions {
// Built-in Kotlin derives jvmTarget from targetCompatibility — one knob, not two.
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
buildFeatures {
compose = true
}
}
dependencies {
implementation(libs.kotlinx.coroutines.android)
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.activity.compose)
implementation(libs.androidx.lifecycle.runtime.ktx)
implementation(platform(libs.compose.bom))
implementation(libs.compose.ui)
implementation(libs.compose.material3)
implementation(libs.compose.ui.tooling.preview)
debugImplementation(libs.compose.ui.tooling)
implementation(libs.room.runtime)
ksp(libs.room.compiler)
implementation(libs.work.runtime)
implementation(libs.okhttp)
implementation(libs.kotlinx.serialization.json)
implementation(libs.kage)
testImplementation(libs.junit)
}