Android Project: Proguard confusing common open source project obfuscation configuration

Source: Internet
Author: User

1.Gson confusion

# # #----------------------------------# # ########## Gson confuse ############----------------------------------- Keepattributes Signature-keep class Sun.misc.Unsafe {*;}-keep class com.google.gson.examples.android.model.** {*;}


2.greenDao confusion

-----------Keep class com.manjay.housebox.greendao.** {*;} -keepclassmembers class * Extends De.greenrobot.dao.AbstractDao {public static java.lang.String TABLENAME;} -keep class * * $Properties


3.volley confusion

---------------------Keep class com.android.volley.** {*;} -keep class com.android.volley.toolbox.** {*;} -keep class com.android.volley.response$* {*;} -keep class com.android.volley.request$* {*;} -keep class com.android.volley.requestqueue$* {*;} -keep class com.android.volley.toolbox.hurlstack$* {*;} -keep class com.android.volley.toolbox.imageloader$* {*;}



4.SHARESDK confusion

# #----------------------------------# # sharesdk##-----------------------------------keep class cn.sharesdk.**{*;} -keep class com.sina.**{*;} -keep class * *. r$* {*;} -keep class * *. r{*;} -dontwarn Cn.sharesdk.**-dontwarn * *. r$*


5.UIL confusion

# #----------------------------------# UIL Related # #-----------------------------------keep class com.nostra13.universalimageloader.** {*;} -keepclassmembers class com.nostra13.universalimageloader.** {*;}


6. The German Map SDK confusion

## ----------------------------------##       ## -------------of the German map SDK ----------------------libraryjars   libs/android-support-v4.jar-dontwarn  android.support.v4.**    -keep class android.support.v4.** { *; }   -keep interface android.support.v4.app.** { *; }  -keep  public class * extends android.support.v4.**  -keep public class  * extends android.app.fragment-libraryjars   libs/mapapilocation.jar-libraryjars    libs/mapapisearch.jar-libraryjars   libs/android_map_v2.0.4.jar-dontwarn  com.amap.api.**   -dontwarn com.a.a.**   -dontwarn com.autonavi. **   -keep class com.amap.api.**  {*;}       -keep class com.autonavi.**  {*;} -keep class com.a.a.**  {*;}


7.unity obfuscation (Cannot use-libraryjars,jar package has been confused, this method is confusing and is not successful)

# #---------------------------------------------------------------# # Unity Confusion (cannot use-libraryjars,jar package has been confused, confusion is not successful) # #---------------------------------------------------------------# #-libraryjars Libs/untiy-classes.jar-dontwarn  com.unity3d.player.**-dontwarn org.fmod.**-keep class com.unity3d.player.**{*;}  -keep class org.fmod.**{*;} -keep public class * extends Com.unity3d.player.**-keep public class * extends org.fmod.**










Resources:

1.Android Project: Proguard confusing common open source project obfuscation configuration

2.Android Project: Proguard Confusion FAQs and Solutions Summary

3.Android Project: Confusion of the self-framing framework, SDK package, or jar file repository and solutions to common problems





This article from the "Sky no traces but I flew" blog, please be sure to keep this source http://glblong.blog.51cto.com/3058613/1435959

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.