From 2f376ef33c51ec5f9a8984cf58e9c2442730ae92 Mon Sep 17 00:00:00 2001 From: Thomas SharedInbox Date: Wed, 13 May 2026 19:23:24 +0200 Subject: [PATCH] fix: use git commit count as Android versionCode Play Store rejects versionCode 1 since it was already used. Deriving the build number from `git rev-list --count HEAD` gives a monotonically increasing versionCode on every push with no manual bumping required. Co-Authored-By: Claude Sonnet 4.6 --- Taskfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 578dd78..bb3e8df 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -288,7 +288,7 @@ tasks: generates: - build/app/outputs/bundle/release/app-release.aab cmds: - - ANDROID_HOME=${ANDROID_HOME:-$HOME/Android/Sdk} fvm flutter build appbundle --release --no-pub | grep -Ev "was tree-shaken|Tree-shaking can be disabled" + - ANDROID_HOME=${ANDROID_HOME:-$HOME/Android/Sdk} fvm flutter build appbundle --release --no-pub --build-number $(git rev-list --count HEAD) | grep -Ev "was tree-shaken|Tree-shaking can be disabled" deploy-android: desc: Build release APK and upload via scp to $ANDROID_APK_SCP_USER@$ANDROID_APK_SCP_HOST:$ANDROID_APK_SCP_PATH