android-best-practices icon indicating copy to clipboard operation
android-best-practices copied to clipboard

(Always) Using Proguard

Open kypeli opened this issue 9 years ago • 2 comments
trafficstars

I would not say using Proguard for your Android application is always a good thing. Main reason why people use Proguard is to strip unused code from your .class files. Why would you do this. Mainly because either 1) You have a bloated library or 2) you have unused code in your own application. Both are scenarios that should be avoided in general, which does not yield into a good reason to use Proguard.

Another reason to use Proguard is obfuscation. But why would use that? For good security you should rely on encryption anyway.

So what's the reasoning for avoiding Proguard? Well, you can spend excess amounts of time tweaking its configuration file when maybe you wouldn't actually need to.

kypeli avatar Dec 29 '15 12:12 kypeli

Helps a lot.

DanteAndroid avatar Feb 24 '16 08:02 DanteAndroid

@kypeli You make some good counterpoints. Do you want to write a PR for this?

peter-tackage avatar Jun 18 '16 11:06 peter-tackage