Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Android Vector Drawables #802

Open
edent opened this issue Sep 10, 2024 · 2 comments
Open

Update Android Vector Drawables #802

edent opened this issue Sep 10, 2024 · 2 comments

Comments

@edent
Copy link
Owner

edent commented Sep 10, 2024

Currently the list of Android icons is outdated.

Is there an automated way to create them?

@jmb
Copy link
Contributor

jmb commented Sep 10, 2024

I'm just putting some comments here that might help (and also for my reference if I get time to dig deeper and remember how to program in Java!)

The main code to translate from svg to android vector is here: https://android.googlesource.com/platform/tools/base/+/master/sdk-common/src/main/java/com/android/ide/common/vectordrawable/Svg2Vector.java

This github project has done something similar but is very old... https://github.com/ravibhojwani86/Svg2VectorAndroid

There must be a way to import the android libraries and do a conversion using Java directly...

@jmb
Copy link
Contributor

jmb commented Sep 11, 2024

I've actually got something working... Svg2VectorAndroid

It could do with another test, but it should work by cloning that repo alongside SuperTinyIcons, then running:

cd Svg2VectorAndroid
gradle fatJar
java -jar build/libs/Svg2VectorAndroid-31.6.0.jar -s ../SuperTinyIcons/images/svg -o ../SuperTinyIcons/images/android-vector-drawable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants