I need to extract final proguard rules file, with all rules for a project. I've greped it in the project directory but no luck
Android Gradle Plugin provides us two different ProGuard rules config files which are located under build/intermediates/proguard-files .
R8 is another tool that will convert your java byte code into an optimized format of dex code. It will check the whole application and will remove the unused classes and methods. It helps us to reduce the size of our APK and to make our app more secure. R8 uses similar proguard rules to modify its default behavior.
So minifyEnabled removes dead code but does not obfuscate or optimize.
consumerProguardFiles 'consumer-rules.pro'} A consumer proguard rules file is like any other proguard rules files with the caveat that the rules inside it are automatically applied to the consuming application when the application is being built in a proguard enabled mode.
Add this line to your proguard-rules.pro to get a file with the merged proguard configuration of your project.
-printconfiguration "build/outputs/mapping/configuration.txt"
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