update build script

This commit is contained in:
poka 2023-12-06 19:43:31 +01:00
parent ff29ff8086
commit a6ed10c6b7
3 changed files with 8 additions and 5 deletions

View File

@ -1192,8 +1192,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: gecko-fixes-3
resolved-ref: ac7347e907ca30766eedb9e15583ebc20916d56c
ref: "8b254d9e98cb367b4a57d67f8c6f5bbe89a52552"
resolved-ref: "8b254d9e98cb367b4a57d67f8c6f5bbe89a52552"
url: "https://github.com/poka-IT/sdk.git"
source: git
version: "0.5.4+4"

View File

@ -43,8 +43,8 @@ dependencies:
# url: https://github.com/polkawallet-io/sdk.git
# ref: develop
url: https://github.com/poka-IT/sdk.git
ref: gecko-fixes-3
# ref: ff98a117e86060a91113107f31355a17ccfb346c
# ref: gecko-fixes-3
ref: 8b254d9e98cb367b4a57d67f8c6f5bbe89a52552
dots_indicator: ^3.0.0
connectivity_plus: ^3.0.2
image_cropper: ^4.0.1

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -e
fVersion=$(grep "version: " pubspec.yaml | awk '{ print $2 }')
withPush=$1
@ -19,7 +21,8 @@ echo "Nom du build final: ${APPNAME}-${VERSION}+${BUILD}.apk"
flutter clean
if [[ $1 == "bundle" ]]; then
flutter build appbundle --release --target-platform android-arm,android-arm64 --build-name $VERSION --build-number $BUILD
flutter build appbundle --release --build-name $VERSION --build-number $BUILD
exit 0
else
# flutter build apk --release --split-per-abi --target-platform android-arm,android-arm64 --build-name $VERSION --build-number $BUILD
flutter build apk --release --split-per-abi --build-name $VERSION --build-number $BUILD