Skip to content

Commit

Permalink
move launcher icons to mipmap folder
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-bl committed May 21, 2018
1 parent 47dc655 commit 66ead15
Show file tree
Hide file tree
Showing 48 changed files with 21 additions and 10 deletions.
Binary file added app/src/main/res/mipmap-hdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-mdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/src/main/res/mipmap-xxxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 21 additions & 10 deletions generate-pngs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,31 @@
# - optipng

gen() {
name=`basename "$1" .svgz`
png="app/src/main/res/drawable-$2/$name.png"
if [ "$1" -nt "$png" -o ! -e "$png" ]; then
inkscape --without-gui --export-area-page --export-dpi=$3 --export-png="$png" $1
type=$1
path=$2
res=$3
dpi=$4

name=`basename "$path" .svgz`
png="app/src/main/res/$type-$res/$name.png"
if [ "$path" -nt "$png" -o ! -e "$png" ]; then
inkscape --without-gui --export-area-page --export-dpi=$dpi --export-png="$png" $path
echo
fi
}

for i in orig/*.svgz; do
gen "$i" mdpi 96
gen "$i" hdpi 144
gen "$i" xhdpi 192
gen "$i" xxhdpi 288
for i in orig/drawable/*.svgz; do
gen drawable "$i" mdpi 96
gen drawable "$i" hdpi 144
gen drawable "$i" xhdpi 192
gen drawable "$i" xxhdpi 288
done

for i in orig/mipmap/*.svgz; do
gen mipmap "$i" mdpi 96
gen mipmap "$i" hdpi 144
gen mipmap "$i" xhdpi 192
gen mipmap "$i" xxhdpi 288
done
# GOOG tells us to use xxx-hdpi only for launcher icons
gen "orig/icon.svgz" xxxhdpi 384
gen mipmap "orig/mipmap/icon.svgz" xxxhdpi 384
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added orig/mipmap/icon.svgz
Binary file not shown.

0 comments on commit 66ead15

Please sign in to comment.