Fixes for android app icons

This commit is contained in:
M 2022-01-05 19:49:13 +02:00
parent 1afd00fa3e
commit 96d4b90ad3
4 changed files with 21 additions and 9 deletions

View file

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View file

@ -7,3 +7,4 @@ 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

View file

@ -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