java - Remove unused resources from Android app on compile time -


i trying remove unused graphical resources app in compile time. know android studio can me manually remove unused ones, need able remove them in compile time; way, can run proguard remove unused classes, , remove images referenced classes.

right can this, gets me unused image shrunk 1x1 black dot:

android {     buildtypes {         release {             minifyenabled true             shrinkresources true         }     } } 

i can't have files there (even shrunk). there way make proguard remove images (instead of shrink them) or rename them? maybe use other tool?

edit: clarification, need resources rendered "unused" proguard removed or renamed.

proguard (or new jack compiler) shrink , obfuscate bytecode. resource shrinking tool subsequently removes or replaces unused resource files.

proguard's commercial extension dexguard shrinks, optimizes, , obfuscates bytecode, android manifest, resources, resource files, asset files, , native libraries. far i'm aware, it's tool analyzes , optimizes contents @ same time. instance, indeed removes unused classes , corresponding unused resources , resource files.

[we develop proguard , dexguard @ guardsquare]


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -