Unused Resources Remover for Android
Gradle Plugin that removes unused resources in Android projects.
Features
- Easy to remove unused resources by simple gradle command
- Customize extra/exclude files configuration
- Support DataBinding & Multi module project
Simple usage
build.gradle
NOTE: If your gradle version is 2.1 and later, you can use new snippet for plugins DSL.
If you want to know more details, see plugin page.
app/build.gradle
Run
Advanced usage
This plugin checks some basic resource files below.
If you want to check other files, you can add custom remover settings in app/build.gradle
.
Here is two example.
fonts.xml
(actually same format with strings.xml)text_appearance.xml
(actually same format with styles.xml)
There are other optional configuration below
To know more, See UnusedResourcesRemoverExtension
Contributing
This project is under development.
I'm always welcome your contribution! Feel free to report Issue or send Pull Request!
Project structure
plugin/ - The main module of Gradle plugin
example/ - An example android project that uses this plugin
example-module/ - An example module that are used in example