ComposeGears / Valkyrie

SVG/XML to Compose ImageVector: IntelliJ IDEA / Android Studio plugin + build-in previewer without compilation, CLI tool
Apache License 2.0
459 stars 7 forks source link

Consider extending to support Gradle plugin #28

Open Goooler opened 4 months ago

Goooler commented 4 months ago

Based on #25, we can split this project into 4 main parts:

This structure is similar to the layout of https://github.com/detekt/detekt.

Related feature request in https://github.com/DevSrSouza/svg-to-compose/issues/27.

dptsolutions commented 3 months ago

I would love to have a gradle plugin that I could configure to re-generate the IconPack from a drawable folder within a Android library/app module when the library/app module is built. I would just need the ability to specify a specific format for the drawable name (ie. ic_icon_name_filled.xml) and then along with some other configuration for the icon pack it could generate me the ImageVector that's accessible at something like Icons.Filled.IconName.

egorikftp commented 2 weeks ago

@dptsolutions Why do you need to regenerate icons during build?

dptsolutions commented 2 weeks ago

@egorikftp mainly because of automation. The IDE plugin is great for local development, but I'd like it to be fully automated in CI so that if another dev doesn't have the plugin, forgets to run it, whatever, the gradle plugin can scan my XML drawables and generate the ImageVectors in CI.

egorikftp commented 6 days ago

Will take this feature next, target version 0.12.0