shrinkResources and minifyEnabled to shrink apk. But unused resources bother you to inspect code and to search le on project tree in Android Studio. It's better to remove unused resources and keep clean your project to write code easy! 4
Customize extra/exclude les con guration. Support DataBinding & Multi module project. Integrate with CI to send PullRequest automatically. https://gist.github.com/konifar/2f793dd5c4f3064 aad8d757ebb7b093f 6
like font , text_appearance resourceName Name to check its existence like @ string /app_name, $. string /app_name tagName Name to extract value from xml like < string name="app_name"> searchType Search regex pattern type. style , drawable , layout , default are supported. 12
some le, you can add white list to excludeNames setting. resources.getIdentifier("img_welcome_${number}", "drawable", context.getPackageName()) unusedResourcesRemover { excludeNames = [ "img_welcome_", // img_welcome.*.xml is never checked. ] } 13