support Android XML icons as repo icons
Every fdroid repo provides direct download links for the app icons at the various DPI densities that Android supports. Now there is a vector XML format for Android icons, and fdroid should support it. It can be extracted from the APK just like the PNGs, there just needs to be a standard fdroid/repo/icons-anydpi folder (or perhaps another name makes sense) to hold them.
Then there needs to be a way to communicate that an XML file is available. Perhaps the existing icon
field in the index can be reused, just use the existing naming scheme, but ending with .xml
instead of .png
. Then if fdroidclient is running on an older platform, it can just try replacing .xml
with .png
for the icon.
This is more necessary since apps with min SDK of 21 can work with only XML icons, i.e. omit the PNGs. For example:
- https://f-droid.org/repo/info.zwanenburg.caffeinetile_2.apk
- https://f-droid.org/repo/info.zwanenburg.caffeinetile_3.apk
- https://f-droid.org/repo/info.zwanenburg.caffeinetile_4.apk
This is related to fdroidclient#1091 #322 (closed) 527742df4f0daf07d4b4c2de3ec91b44759007b9