diet-guard/app/android
Krzysztof kuhy Rudnicki 5f34ba6139 Build and publish a signed APK on every push to main
diet-guard had no APK build at all; releases were not produced. Adds a
standalone release-apk.yml plus the release signing config the app was
missing.

Signing follows the pattern proven in home_inventory: gradle reads
android/key.properties when present and falls back to the debug key when
absent, so local `flutter run --release` is unaffected. CI writes that
file from repository secrets and shreds it afterwards, and apksigner
fails the build closed if a debug-signed APK ever appears.

Only the signingConfig line changes here: isMinifyEnabled, isShrinkResources
and proguardFiles are left exactly as they were.

This repo has no Flutter analyze/test job, so the release job is not
gated on tests — a broken commit still publishes, with the build failing
as the only backstop. Add `needs:` if a Flutter CI job is added later.

versionCode is github.run_number, which is per-workflow-file — this file
must never be renamed, or the counter resets and updates stop installing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014dzgcZxmpS3VtmLci2sbxj
2026-08-04 20:55:14 +02:00
..
app Build and publish a signed APK on every push to main 2026-08-04 20:55:14 +02:00
gradle/wrapper Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00
.gitignore Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00
build.gradle.kts Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00
gradle.properties Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00
settings.gradle.kts Add Flutter companion app skeleton with local meal logging 2026-06-22 18:22:42 +02:00