feat: v0.2 - polish, favourites, search, colours, checklists, signing

v0.2 bundles all four phases from the planning session into a single
shippable release. versionCode 2 -> 3, versionName 0.1.1 -> 0.2.

DOMAIN
  - Add NoteColor enum (NONE / BLUE / GREEN / AMBER / RED / PURPLE).
  - Note: isFavorite + color fields; checklistCounts / checklistSummary
    helpers parsing '- [ ]' / '- [x]' lines.
  - NoteRepository: new search(query) + setFavorite(id, value) methods.

DATA
  - NoteEntity: additive @Index isFavorite + colorKey (Short).
  - NoteRepositoryImpl: search uses ObjectBox 'contains' case-insensitive;
    observeAll + search sort favourites-first then updatedAt DESC.

UI
  - NoteListViewModel: debounced(150ms) query -> repository.search;
    openSearch / closeSearch helpers; toggleFavorite.
  - NoteListScreen: search bar in top app bar; star icon + 4dp colour
    stripe per card; checklist summary line ('N open - M done').
  - NoteEditorViewModel: toggleFavorite + setColor; initial-snapshot
    fields captured on first non-null observeById for dirty detection.
  - NoteEditorScreen: BackHandler + AlertDialog 'Discard changes?' on
    unsaved edits; star toggle in top bar; LazyRow of colour swatches.

POLISH
  - Discard-confirm dialog implements Development Plan §5.2.
  - Real release signing config (signingConfigs.release pointing at the
    dev keystore in keystore/); keystore/release.jks gitignored;
    keystore/README.md documents generation & rotation.
  - KMP migration deferred to v0.5 (tracked in plan §10).

COMMUNITY / GITEA
  - .gitea/workflows/build.yml: assembleDebug on push & PR, APK as
    artefact.
  - CONTRIBUTING.md, CODE_OF_CONDUCT.md (Contributor Covenant v2.1),
    .gitea/ISSUE_TEMPLATE/{bug_report,feature_request}.yml,
    .gitea/PULL_REQUEST_TEMPLATE.md.
  - README: v0.2 changelog + Gitea remote-setup instructions.

VERIFIED
  - ./gradlew assembleDebug assembleRelease both green.
  - Debug APK 25.6 MB, release 19.8 MB, both v0.2 / versionCode 3.
  - apksigner verify: 'Verifies' / v2 scheme true.
  - No INTERNET permission in either APK (privacy posture unchanged).
This commit is contained in:
Incido Developer committed 2026-08-14 23:27:27 +12:00
1 parent 2215c3447b
commit 5e1b77bedf
21 files changed
+1242 -118

No files matched your search

+32 -5
View File
@@ -1,5 +1,8 @@
// :app — Android application entry point. Hosts MainActivity and the
// application manifest, including the launcher icon and theme.
import java.io.FileInputStream
import java.util.Properties
plugins {
alias(libs.plugins.androidApplication)
alias(libs.plugins.kotlinAndroid)
@@ -14,8 +17,33 @@ android {
applicationId = "org.incido.app"
minSdk = 26
targetSdk = 35
versionCode = 2
versionName = "0.1.1"
versionCode = 3
versionName = "0.2"
}
// --- Signing ---
//
// v0.2 introduces a real release signing config so `./gradlew
// assembleRelease` produces an installable APK out of the box. The
// keystore file itself is gitignored — see keystore/README.md for
// generation instructions and for the (deliberately weak) dev
// passwords baked into this build script. **Replace with a real
// production keystore before publishing.**
signingConfigs {
create("release") {
// Resolve paths relative to the project root so the same
// config works from both Android Studio and CLI.
val keystoreFilePath = rootProject.file("keystore/release.jks")
if (keystoreFilePath.exists()) {
storeFile = keystoreFilePath
storePassword = "incido_dev_keystore"
keyAlias = "incido"
keyPassword = "incido_dev_keystore"
}
// If the keystore doesn't exist, the release build will fail
// with a clear "Keystore file not set for signing config
// release" message — by design.
}
}
buildTypes {
@@ -23,9 +51,8 @@ android {
isMinifyEnabled = false
}
release {
isMinifyEnabled = false
// Release signing config is intentionally absent for v0.1 —
// we'll set up a proper key in a follow-up.
isMinifyEnabled = false // TODO(v0.3): enable R8
signingConfig = signingConfigs.getByName("release")
}
}