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

Always use Proguard (in debug too!)

Open dral3x opened this issue 6 years ago • 2 comments

From my experience, is not good having too different configurations between debug and release, and this is especially true when Proguard is enabled only in one.

We found safer have minifyEnabled true also for the debug build, and turn off just the obfuscation (with a specific proguard-rules-debug.pro file).

You don't want to have your app running fine on your device while crashing on the user phone because you miss something in ProGuard configuration.

dral3x avatar Mar 08 '18 09:03 dral3x

Makes sense. Only contention is the increased build time depending on the size of the project and dependencies.

rpattabi avatar Mar 12 '18 14:03 rpattabi

@rpattabi that's true, I agree. But since we're not in the javascript world, I prefer the "better safe than sorry" route

dral3x avatar Mar 12 '18 14:03 dral3x