2022-01-04 16:55:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ -z "$APP_ANDROID_TYPE" ]; then
|
|
|
|
echo "Please set APP_ANDROID_TYPE"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-01-04 18:47:34 +00:00
|
|
|
sed -i "0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}" ./../../pubspec.yaml
|
2022-01-05 17:49:13 +00:00
|
|
|
sed -i "0,/version:/{s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/}" ./../../android/app/src/main/AndroidManifest.xml
|
2022-01-08 15:31:09 +00:00
|
|
|
./app_icon.sh
|
|
|
|
|
|
|
|
CONFIG_ARGS=""
|
|
|
|
|
|
|
|
case $APP_ANDROID_TYPE in
|
|
|
|
$MONERO_COM)
|
|
|
|
CONFIG_ARGS="--monero"
|
|
|
|
;;
|
|
|
|
$CAKEWALLET)
|
|
|
|
CONFIG_ARGS="--monero --bitcoin"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
cd ../..
|
|
|
|
flutter packages pub run tool/configure.dart $CONFIG_ARGS
|