chenquincy / app-info-parser

A javascript parser for parsing .ipa or .apk files. IPA/APK文件 js 解析器
MIT License
501 stars 118 forks source link

Support for Android adaptive icons? #91

Open Klowner opened 1 year ago

Klowner commented 1 year ago

Greetings! Thank you for all the very excellent work on this library!

Just curious if there are plans to add support for Android adaptive icons. If not, I would be happy to open a PR.

When parsing an APK with app-info-parser v1.1.2, the icon returned in the results is an ic_launcher.xml file. It is simple enough to parse that binary XML file to obtain the relevant foreground, background, or monochrome drawables (typically PNGs).

If support is desirable, would it make sense to extract the individual maximally sized icons (similar to findApkIconPath()) for each category (background, foreground, monochrome) so the user could potentially take further action? This would likely necessitate a change in the structure for the parsed result object, unless only the foreground image were returned?

Any input is appreciated!

-Mark

chenquincy commented 1 year ago

@Klowner That's a good feature, but I'm busy in my main job recently. Welcome to contribute your code. You can create PR whenever you want, I will review and merge it as soon as I can.