diff --git a/android/app/src/main/res/drawable/ic_launcher.png b/assets/images/cakewallet_android_icon.png similarity index 100% rename from android/app/src/main/res/drawable/ic_launcher.png rename to assets/images/cakewallet_android_icon.png diff --git a/assets/images/monero.com_android_icon.png b/assets/images/monero.com_android_icon.png new file mode 100644 index 000000000..af47453c1 Binary files /dev/null and b/assets/images/monero.com_android_icon.png differ diff --git a/scripts/android/app_config.sh b/scripts/android/app_config.sh index 9b01e3a29..6a28eebfe 100755 --- a/scripts/android/app_config.sh +++ b/scripts/android/app_config.sh @@ -6,4 +6,5 @@ if [ -z "$APP_ANDROID_TYPE" ]; then 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 \ No newline at end of file +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 diff --git a/scripts/android/app_icon.sh b/scripts/android/app_icon.sh index 966b75b9a..c362b335b 100755 --- a/scripts/android/app_icon.sh +++ b/scripts/android/app_icon.sh @@ -1,15 +1,26 @@ #!/bin/sh -ICON_PATH="" -DEST_PATH=`pwd`/../../assets/images/app_logo.png +APP_LOGO="" +APP_LOGO_DEST_PATH=`pwd`/../../assets/images/app_logo.png +ASSETS_DIR=`pwd`/../../assets +ANDROID_ICON_DIR=`pwd`/../../android/app/src/main/res/drawable +MONERO_COM_PATH=$ASSETS_DIR/images/monero.com_android_icon.png +CAKEWALLET_PATH=$ASSETS_DIR/images/cakewallet_android_icon.png +ANDROID_ICON="" +ANDROID_ICON_DEST_PATH=$ANDROID_ICON_DIR/ic_launcher.png + case $APP_ANDROID_TYPE in "monero.com") - ICON_PATH=`pwd`/../../assets/images/monero.com_logo.png;; + APP_LOGO=$ASSETS_DIR/images/monero.com_logo.png + ANDROID_ICON=$MONERO_COM_PATH + ;; "cakewallet") - ICON_PATH=`pwd`/../../assets/images/cakewallet_logo.png;; + APP_LOGO=$ASSETS_DIR/images/cakewallet_logo.png + ANDROID_ICON=$CAKEWALLET_PATH + ;; esac -rm $DEST_PATH -ln -s $ICON_PATH $DEST_PATH - - +rm $APP_LOGO_DEST_PATH +rm $ANDROID_ICON_DEST_PATH +ln -s $APP_LOGO $APP_LOGO_DEST_PATH +ln -s $ANDROID_ICON $ANDROID_ICON_DEST_PATH