one of the features in android 2.3 is integrated proguard obfuscation when doing release builds. but how do i enable this obfuscation when creating my apk?
thanks!
R8 gives better output results than Proguard. R8 reduces the app size by 10 % whereas Proguard reduces app size by 8.5 %. The android app having a Gradle plugin above 3.4. 0 or above then the project uses R8 by default with Proguard rules only.
add the following into default.properties
proguard.config=proguard.cfg
For details visit here
I just used it with maven. If you are using maven as well, I would recommend you reading this blog post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With