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).
92 lines
2.6 KiB
Kotlin
92 lines
2.6 KiB
Kotlin
// :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)
|
|
alias(libs.plugins.kotlinCompose)
|
|
}
|
|
|
|
android {
|
|
namespace = "org.incido.app"
|
|
compileSdk = 35
|
|
|
|
defaultConfig {
|
|
applicationId = "org.incido.app"
|
|
minSdk = 26
|
|
targetSdk = 35
|
|
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 {
|
|
debug {
|
|
isMinifyEnabled = false
|
|
}
|
|
release {
|
|
isMinifyEnabled = false // TODO(v0.3): enable R8
|
|
signingConfig = signingConfigs.getByName("release")
|
|
}
|
|
}
|
|
|
|
buildFeatures {
|
|
compose = true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(17)
|
|
}
|
|
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":composeApp"))
|
|
implementation(libs.androidx.core.ktx)
|
|
implementation(libs.kotlinx.coroutines.android)
|
|
|
|
// Compose BOM keeps all Compose artefact versions aligned
|
|
val composeBom = platform(libs.composeBom)
|
|
implementation(composeBom)
|
|
|
|
implementation(libs.androidx.activity.compose)
|
|
implementation(libs.compose.ui)
|
|
implementation(libs.compose.material3)
|
|
}
|