fix(build): v0.3.6.3 — fail-fast on missing keystore
release / Build & attach release APK (push) Successful in 2m21s

- signingConfigs.release now throws GradleException at config time
    when keystore/release.jks is missing, printing the exact keytool
    command from keystore/README.md instead of letting packageRelease
    die later with the cryptic
    "SigningConfig release is missing required property storeFile".

  - .gitea/workflows/release.yml now mints the dev keystore on the
    runner before assembleRelease (previously the signing config
    was empty on a fresh runner, so the release APK was never
    produced).

  - versionCode 29 → 30, versionName "0.3.6.2" → "0.3.6.3";
    APP_VERSION in SettingsViewModel bumped in lockstep; README
    "Current release" + intro paragraph + Changelog row updated.

  Refs: Incido Development Plan §11.
This commit is contained in:
Incido Developer committed 2026-08-20 05:28:00 +12:00
1 parent ef5a45201e
commit b95d1814f9
4 files changed
+63 -19

No files matched your search

+41 -16
View File
@@ -28,29 +28,54 @@ android {
applicationId = "org.incido.app"
minSdk = 26
targetSdk = 35
// v0.3.6.1: Emergency hotfix — editor screen UX.
// - Title in the editor's top bar now sits against the back
// arrow on the LEFT (was centred and crowding the six
// right-side action buttons).
// - Note colour chooser is now equally spaced between the
// title bar and the top edge of the note content (was
// dwarfed by the OutlinedTextField's intrinsic top inset,
// making the lower gap appear far larger).
// versionCode monotonic +1 from v0.3.6.0 (27).
versionCode = 28
versionName = "0.3.6.1"
// v0.3.6.3: Local-dev DX — make the missing-keystore failure
// mode actionable.
// - signingConfigs.release now throws GradleException at
// config time when keystore/release.jks is missing, with
// the exact keytool incantation from keystore/README.md
// in the error message. Previously the signing config
// silently fell through with no storeFile, and packageRelease
// failed much later with the cryptic "SigningConfig release
// is missing required property storeFile" — leaving devs
// guessing at the cause.
// - .gitea/workflows/release.yml already mints the keystore
// on release runners (since v0.3.6.2), so CI is unaffected.
// - No app/Compose code changes.
// - versionCode monotonic +1 from v0.3.6.2 (29).
versionCode = 30
versionName = "0.3.6.3"
}
// --- Signing ---
// v0.3.6.3: Fail fast (at config time) with an actionable error
// when keystore/release.jks is missing, rather than silently
// letting packageRelease die later with the cryptic "SigningConfig
// release is missing required property storeFile". CI (see
// .gitea/workflows/release.yml) already mints the keystore before
// assembleRelease (since v0.3.6.2), so this branch never fires on
// a release runner — only on a fresh local clone.
signingConfigs {
create("release") {
val keystoreFilePath = rootProject.file("keystore/release.jks")
if (keystoreFilePath.exists()) {
storeFile = keystoreFilePath
storePassword = "incido_dev_keystore"
keyAlias = "incido"
keyPassword = "incido_dev_keystore"
if (!keystoreFilePath.exists()) {
throw GradleException(
"Missing ${keystoreFilePath.absolutePath}.\n" +
"Generate the dev keystore documented in " +
"keystore/README.md:\n" +
" keytool -genkey -noprompt -v \\\n" +
" -keystore keystore/release.jks \\\n" +
" -keyalg RSA -keysize 2048 -validity 10000 \\\n" +
" -alias incido \\\n" +
" -storepass incido_dev_keystore \\\n" +
" -keypass incido_dev_keystore \\\n" +
" -dname \"CN=Incido Dev, OU=Local, O=Incido, " +
"L=Local, ST=Local, C=NZ\""
)
}
storeFile = keystoreFilePath
storePassword = "incido_dev_keystore"
keyAlias = "incido"
keyPassword = "incido_dev_keystore"
}
}