irgaly / android-remove-unused-resources-plugin

A gradle plugin to remove unused android resources by Android Lint results xml file.
https://plugins.gradle.org/plugin/io.github.irgaly.remove-unused-resources
Other
29 stars 1 forks source link

TODO: set mustRunAfter to removeUnusedResources task #13

Closed irgaly closed 2 years ago

irgaly commented 2 years ago

one liner is executes :lintDebug task and :removeUnusedResources task in parallel. so result xml file is not found while removeUnusedResources task running.

removeUnusedResources task should have mustRunAfter to lint{variant} task.

% ./gradlew :app:lintDebug :app:removeUnusedResources -Prur.lintOptionsOnlyUnusedResources -Prur.lintVariant="debug"