From ab4844ecfaa13638802a948b57534c4750991f24 Mon Sep 17 00:00:00 2001 From: M Date: Sat, 8 Jan 2022 17:31:09 +0200 Subject: [PATCH] Fixes for app_config script for android --- scripts/android/app_config.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/android/app_config.sh b/scripts/android/app_config.sh index 6a28eebfe..1fcfa7fcf 100755 --- a/scripts/android/app_config.sh +++ b/scripts/android/app_config.sh @@ -7,4 +7,18 @@ fi sed -i "0,/version:/{s/version:.*/version: ${APP_ANDROID_VERSION}+${APP_ANDROID_BUILD_NUMBER}/}" ./../../pubspec.yaml sed -i "0,/version:/{s/__APP_PACKAGE__/${APP_ANDROID_PACKAGE}/}" ./../../android/app/src/main/AndroidManifest.xml -./app_icon.sh \ No newline at end of file +./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 \ No newline at end of file