From c46de2abb843e3726e3ce70a9525032ca71cafe2 Mon Sep 17 00:00:00 2001 From: Thomas SharedInbox Date: Thu, 14 May 2026 17:19:50 +0200 Subject: [PATCH] fix(android): use epoch seconds for versionCode, not yymmddhhmm date +%y%m%d%H%M for 2026-05-14 17:17 = 2605141717 which exceeds Android's 2100000000 versionCode cap, aborting the build. Epoch seconds (~1.75B today) stay under the cap and remain unique. Human-readable build-name (yymmddhhmm) is unchanged for issue #63. 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 96c454b..2848f44 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 --build-number $(date +%y%m%d%H%M) --build-name $(date +%y%m%d-%H%M) | 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 $(date +%s) --build-name $(date +%y%m%d-%H%M) | 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