fix play store versioning (GH-3)

This commit is contained in:
fiatcode 2025-10-23 06:59:38 +07:00
parent 3a5aaa780c
commit 0dcef84703

View file

@ -8,7 +8,7 @@ workflows:
events: events:
- push - push
branch_patterns: branch_patterns:
- pattern: 'dev' - pattern: "dev"
include: true include: true
source: false source: false
@ -20,7 +20,7 @@ workflows:
- google_play_credentials - google_play_credentials
vars: vars:
PACKAGE_NAME: "com.dhemasnurjaya.kuwot" PACKAGE_NAME: "com.dhemasnurjaya.kuwot"
GOOGLE_PLAY_TRACK: "alpha" GOOGLE_PLAY_TRACK: alpha
flutter: stable flutter: stable
cache: cache:
@ -44,7 +44,7 @@ workflows:
ignore_failure: false ignore_failure: false
- name: Build AAB with Flutter - name: Build AAB with Flutter
script: | script: |
BUILD_NUMBER=$(($(google-play get-latest-build-number --package-name "$PACKAGE_NAME") + 1)) BUILD_NUMBER=$(($(google-play get-latest-build-number --package-name "$PACKAGE_NAME" --tracks="$GOOGLE_PLAY_TRACK") + 1))
flutter build appbundle --release \ flutter build appbundle --release \
--dart-define=QUOTE_API_SCHEME=$QUOTE_API_SCHEME \ --dart-define=QUOTE_API_SCHEME=$QUOTE_API_SCHEME \
--dart-define=QUOTE_API_HOST=$QUOTE_API_HOST \ --dart-define=QUOTE_API_HOST=$QUOTE_API_HOST \