feat: v0.3.6.0 — AES-GCM field encryption, PIN/passphrase security, encryption verifier, backup codec
build / Assemble debug APK (push) Failing after 2s
build / Assemble debug APK (push) Failing after 2s
This commit is contained in:
1 parent
089926377c
commit
14d61c78d3
55 files changed
+2474
-715
No files matched your search
+65
-9
@@ -28,15 +28,17 @@ android {
|
||||
applicationId = "org.incido.app"
|
||||
minSdk = 26
|
||||
targetSdk = 35
|
||||
// v0.3.3.4: emergency hotfix — the favorite star on the note
|
||||
// cards was drawn in the title row and overlapped the
|
||||
// three-dot overflow button in the card's top-right corner.
|
||||
// The star is now an overlay in the card's bottom-right corner
|
||||
// with the same 4.dp end offset as the overflow button, so
|
||||
// both controls sit in the same vertical column and no longer
|
||||
// collide. versionCode monotonic +1 from v0.3.3.3 (18).
|
||||
versionCode = 19
|
||||
versionName = "0.3.3.4"
|
||||
// v0.3.6.0: link-share titles + encryption-key recovery.
|
||||
// - Shared URLs now seed the note with the page title (from
|
||||
// the browser's EXTRA_SUBJECT) on the first line and the
|
||||
// URL below — fully offline, no INTERNET permission.
|
||||
// - New "Export / Import encryption key" rows in Settings →
|
||||
// Security: back up the AES-256 key that protects your
|
||||
// notes to a passphrase-protected .inckey file, and
|
||||
// restore it on a fresh install.
|
||||
// versionCode monotonic +1 from v0.3.5.1 (26).
|
||||
versionCode = 27
|
||||
versionName = "0.3.6.0"
|
||||
}
|
||||
|
||||
// --- Signing ---
|
||||
@@ -82,6 +84,60 @@ android {
|
||||
}
|
||||
}
|
||||
|
||||
// v0.3.6.0: ship version-stamped APKs at the repo root for every
|
||||
// release (e.g. `incido-0.3.6.0-debug.apk`, `incido-0.3.6.0.apk`).
|
||||
// See Incido Development Plan §11 for the full release build
|
||||
// procedure.
|
||||
//
|
||||
// Rather than mutating each variant's `outputFileName` (which trips over
|
||||
// Kotlin/Gradle DSL overload ambiguities in AGP 8.x — the legacy
|
||||
// `applicationVariants.outputs.all { ... }` lambda resolution clashes
|
||||
// with `Iterable<T>.all(predicate: (T) -> Boolean)` and the modern
|
||||
// `androidComponents.onVariants` API doesn't expose `outputFileName` as
|
||||
// a settable property on its outputs), we just register a copy task
|
||||
// that runs after both `assembleDebug` and `assembleRelease` and drops
|
||||
// the built APKs at the project root with the right names.
|
||||
//
|
||||
// `copyReleaseApks` is registered as a `dependsOn` of `assembleRelease`
|
||||
// so `./gradlew assembleRelease` is enough to get both files at the
|
||||
// repo root in one command.
|
||||
val copyReleaseApks = tasks.register("copyReleaseApks") {
|
||||
group = "build"
|
||||
description = "Copies debug + release APKs to the repo root, " +
|
||||
"stamped with the current versionName " +
|
||||
"(e.g. incido-0.3.6.0-debug.apk, incido-0.3.6.0.apk). " +
|
||||
"See Incido Development Plan §11."
|
||||
dependsOn("assembleDebug", "assembleRelease")
|
||||
doLast {
|
||||
val versionName = android.defaultConfig.versionName
|
||||
val rootDir = rootProject.projectDir
|
||||
val debugSrc = file("$buildDir/outputs/apk/debug/app-debug.apk")
|
||||
val releaseSrc = file("$buildDir/outputs/apk/release/app-release.apk")
|
||||
val debugDest = file("$rootDir/incido-${versionName}-debug.apk")
|
||||
val releaseDest = file("$rootDir/incido-${versionName}.apk")
|
||||
if (debugSrc.exists()) {
|
||||
debugSrc.copyTo(debugDest, overwrite = true)
|
||||
logger.lifecycle("Copied: ${debugDest.absolutePath}")
|
||||
} else {
|
||||
logger.warn("Debug APK not found at ${debugSrc.absolutePath}")
|
||||
}
|
||||
if (releaseSrc.exists()) {
|
||||
releaseSrc.copyTo(releaseDest, overwrite = true)
|
||||
logger.lifecycle("Copied: ${releaseDest.absolutePath}")
|
||||
} else {
|
||||
logger.warn("Release APK not found at ${releaseSrc.absolutePath}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Make `assembleRelease` finalize with `copyReleaseApks` so a single
|
||||
// `./gradlew assembleRelease` produces both root-level APKs. Using
|
||||
// `finalizedBy` (not `dependsOn`) avoids a circular dependency:
|
||||
// `copyReleaseApks` already `dependsOn` `assembleRelease`.
|
||||
afterEvaluate {
|
||||
tasks.findByName("assembleRelease")?.finalizedBy(copyReleaseApks)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":composeApp"))
|
||||
// v0.3.1.0: MainActivity needs the NoteRepository type to hand it
|
||||
|
||||
Reference in new issue
Block a user