Overview
Obfuscation of your code is the process of renaming all the classes and their members in a way that is difficult to crack but will function correctly. Proguard is the default Java code optimizer for Android that helps in making android applications 90% Faster and 20% smaller in size.
If you are using an Android Studio for development, mapping files will not be produced when you make instant runs. You need to choose the Build APK option to generate the mapping files. After the build is completed, the symbol file called mapping.txt can be found <module-name>/build/outputs/mapping/release/ or <module-name>/build/outputs/mapping/debug/, depending on how you initiate the build process.
Proguard rules:
You can add some rules to the Proguard file and modify how it is working. Add the below-mentioned rules to the proguard-rules.pro file.
-keep class com.zoho.zanalytics.**
-dontwarn com.zoho.zanalytics.**
Add Proguard file manually
-
Navigate to
Quality > Proguard > Manage proguard mapping files
.
-
Click on Upload Mapping File and a pop-up will appear on the screen.
-
Select the App Version from the drop-down menu.
-
Click on Choose File and select the mapping file that you want to upload.
-
Click Upload and the new mapping file will be uploaded.