Open Goooler opened 4 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
.
@dptsolutions Why do you need to regenerate icons during build?
@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.
Will take this feature next, target version 0.12.0
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.