BASH script to generate and update Android drawable/mipmap resources from SVG sources.
Requires either Inkscape or Image Magick for conversion.
Sample:
$ ./update.sh res/drawable < list-of-svg-files
The first argument is the relative output path without resolution qualifier.
Input is read from stdin in the following format:
FILE [SIZE] [NEGATE]
Where SIZE is the size in pixels on mdpi displays. Default is 24px. And NEGATE is a binary value, either 0 or 1, to post invert images for dark themes.