Update android build scripts

This commit is contained in:
M 2022-02-23 15:31:59 +02:00
parent af6458a305
commit 1f02e8205f
3 changed files with 12 additions and 4 deletions

View file

@ -10,7 +10,7 @@ MONERO_COM="monero.com"
CAKEWALLET="cakewallet" CAKEWALLET="cakewallet"
HAVEN="haven" HAVEN="haven"
TYPES=($MONERO_COM $CAKEWALLET) TYPES=($MONERO_COM $CAKEWALLET $HAVEN)
APP_ANDROID_TYPE=$1 APP_ANDROID_TYPE=$1
MONERO_COM_NAME="Monero.com" MONERO_COM_NAME="Monero.com"

View file

@ -14,15 +14,20 @@ ANDROID_ICON_SET_DEST_PATH=`pwd`/../../android/app/src/main/res
case $APP_ANDROID_TYPE in case $APP_ANDROID_TYPE in
"monero.com") "monero.com")
APP_LOGO=$ASSETS_DIR/images/monero.com_logo.png APP_LOGO=$ASSETS_DIR/images/monero.com_logo.png
ANDROID_ICON=$MONERO_COM_PATH ANDROID_ICON=$MONERO_COM_PATH
ANDROID_ICON_SET=$MONEROCOM_ICON_SET_PATH ANDROID_ICON_SET=$MONEROCOM_ICON_SET_PATH
;; ;;
"cakewallet") "cakewallet")
APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png
ANDROID_ICON=$CAKEWALLET_PATH ANDROID_ICON=$CAKEWALLET_PATH
ANDROID_ICON_SET=$CAKEWALLET_ICON_SET_PATH ANDROID_ICON_SET=$CAKEWALLET_ICON_SET_PATH
;; ;;
"haven")
APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png
ANDROID_ICON=$CAKEWALLET_PATH
ANDROID_ICON_SET=$CAKEWALLET_ICON_SET_PATH
;;
esac esac
rm $APP_LOGO_DEST_PATH rm $APP_LOGO_DEST_PATH

View file

@ -11,6 +11,9 @@ case $APP_ANDROID_TYPE in
$CAKEWALLET) $CAKEWALLET)
CONFIG_ARGS="--monero --bitcoin" CONFIG_ARGS="--monero --bitcoin"
;; ;;
$CAKEWALLET)
CONFIG_ARGS="--haven"
;;
esac esac
cd ../.. cd ../..