Arcgis For Android project code proguard obfuscation problem summary
I. obfuscation of common Android project code (the project does not contain third-party class libraries)
Step 1: In the project. properties file, remove the following comments:
Proguard. config =$ {sdk. dir}/tools/proguard/proguard-android.txt: proguard-project.txt
2. When confusing Arcgis For Android projects, third-party class libraries of arcgis must be excluded from project obfuscation.
Step 1: In the project. properties file, remove the following comments:
Proguard. config =$ {sdk. dir}/tools/proguard/proguard-android.txt: proguard-project.txt
Step 2: Add the following content to the proguard-project.txt file:
-Libraryjars libs/arcgis-android-api.jar // import a third-party class library to prevent errors in Reading package content during Obfuscation
-Dontwarn com. esri. ** // remove the warning.
-Keep class com. esri. ** {*;} // do not confuse the specified content in a third-party package
-Libraryjars libs/jackson-core-lgpl-1.9.5.jar
-Dontwarn org. codehaus. jackson .**
-Keep class org. codehaus. jackson .**{*;}
-Libraryjars libs/jackson-mapper-lgpl-1.9.5.jar
-Dontwarn org. codehaus. jackson .**
-Keep class org. codehaus. jackson .**{*;}
-Libraryjars libs/jcifs-1.3.17.jar
-Dontwarn jcifs .**
-Keep class jcifs .**{*;}