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
Post a Comment