From: Damyan Ivanov Date: Fri, 15 May 2020 06:15:50 +0000 (+0000) Subject: move app_icon.png images from drawable-* to mipmap-* X-Git-Tag: v0.14.0~99 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=c3cb55e52093cdd65321152745698d2b2a0d2797;p=mobile-ledger.git move app_icon.png images from drawable-* to mipmap-* --- diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 33d9c8a8..8cb9a749 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -24,9 +24,9 @@ android:name=".App" android:allowBackup="true" android:fullBackupContent="@xml/backup_descriptor" - android:icon="@drawable/app_icon" + android:icon="@mipmap/app_icon" android:label="@string/app_name" - android:roundIcon="@drawable/app_icon" + android:roundIcon="@mipmap/app_icon" android:supportsRtl="true" android:networkSecurityConfig="@xml/network_security_config" android:theme="@style/AppTheme" diff --git a/app/src/main/res/drawable-hdpi/app_icon.png b/app/src/main/res/drawable-hdpi/app_icon.png deleted file mode 100644 index 7df4fa14..00000000 Binary files a/app/src/main/res/drawable-hdpi/app_icon.png and /dev/null differ diff --git a/app/src/main/res/drawable-ldpi/app_icon.png b/app/src/main/res/drawable-ldpi/app_icon.png deleted file mode 100644 index ed0d78c5..00000000 Binary files a/app/src/main/res/drawable-ldpi/app_icon.png and /dev/null differ diff --git a/app/src/main/res/drawable-mdpi/app_icon.png b/app/src/main/res/drawable-mdpi/app_icon.png deleted file mode 100644 index 4e88a678..00000000 Binary files a/app/src/main/res/drawable-mdpi/app_icon.png and /dev/null differ diff --git a/app/src/main/res/drawable-tvdpi/app_icon.png b/app/src/main/res/drawable-tvdpi/app_icon.png deleted file mode 100644 index 8e8ed136..00000000 Binary files a/app/src/main/res/drawable-tvdpi/app_icon.png and /dev/null differ diff --git a/app/src/main/res/drawable-xhdpi/app_icon.png b/app/src/main/res/drawable-xhdpi/app_icon.png deleted file mode 100644 index a62a8dfa..00000000 Binary files a/app/src/main/res/drawable-xhdpi/app_icon.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxhdpi/app_icon.png b/app/src/main/res/drawable-xxhdpi/app_icon.png deleted file mode 100644 index 41fe6c43..00000000 Binary files a/app/src/main/res/drawable-xxhdpi/app_icon.png and /dev/null differ diff --git a/app/src/main/res/drawable-xxxhdpi/app_icon.png b/app/src/main/res/drawable-xxxhdpi/app_icon.png deleted file mode 100644 index 1a12e024..00000000 Binary files a/app/src/main/res/drawable-xxxhdpi/app_icon.png and /dev/null differ diff --git a/app/src/main/res/mipmap-hdpi/app_icon.png b/app/src/main/res/mipmap-hdpi/app_icon.png new file mode 100644 index 00000000..7df4fa14 Binary files /dev/null and b/app/src/main/res/mipmap-hdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-ldpi/app_icon.png b/app/src/main/res/mipmap-ldpi/app_icon.png new file mode 100644 index 00000000..ed0d78c5 Binary files /dev/null and b/app/src/main/res/mipmap-ldpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-mdpi/app_icon.png b/app/src/main/res/mipmap-mdpi/app_icon.png new file mode 100644 index 00000000..4e88a678 Binary files /dev/null and b/app/src/main/res/mipmap-mdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-tvdpi/app_icon.png b/app/src/main/res/mipmap-tvdpi/app_icon.png new file mode 100644 index 00000000..8e8ed136 Binary files /dev/null and b/app/src/main/res/mipmap-tvdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-xhdpi/app_icon.png b/app/src/main/res/mipmap-xhdpi/app_icon.png new file mode 100644 index 00000000..a62a8dfa Binary files /dev/null and b/app/src/main/res/mipmap-xhdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-xxhdpi/app_icon.png b/app/src/main/res/mipmap-xxhdpi/app_icon.png new file mode 100644 index 00000000..41fe6c43 Binary files /dev/null and b/app/src/main/res/mipmap-xxhdpi/app_icon.png differ diff --git a/app/src/main/res/mipmap-xxxhdpi/app_icon.png b/app/src/main/res/mipmap-xxxhdpi/app_icon.png new file mode 100644 index 00000000..1a12e024 Binary files /dev/null and b/app/src/main/res/mipmap-xxxhdpi/app_icon.png differ diff --git a/tools/populate-app-icon b/tools/populate-app-icon index cd7ee6ef..d7840dd6 100755 --- a/tools/populate-app-icon +++ b/tools/populate-app-icon @@ -10,8 +10,9 @@ ICON_ART="$ART_DIR/app-icon.svg" gen_icons() { while read size name; do - mkdir -p "$RES_DIR/drawable-$name" - DST="$RES_DIR/drawable-$name/app_icon.png" + DST_DIR="$RES_DIR/mipmap-$name" + mkdir -p "$DST_DIR" + DST="$DST_DIR/app_icon.png" convert -background none "$ICON_ART" -scale ${size}x${size} \ -antialias -strip \ "$DST"