Skip to content

Commit

Permalink
混淆规则
Browse files Browse the repository at this point in the history
  • Loading branch information
liyujiang-gzu committed Jun 19, 2016
1 parent 7172f5f commit c9bdc7f
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -1,2 +1,53 @@
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class com.android.vending.licensing.ILicensingService

-keepclasseswithmembernames class * {
native <methods>;
}
-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keep class * extends java.lang.annotation.Annotation {
*;
}

-keepattributes Exceptions,InnerClasses,Signature
-keepattributes *Annotation*

-keep class **.R$* {
*;
}

-dontwarn android.support.**
-keep class android.support.v4.** { *; }

#不混淆地址选择器的实体类,一般fastjson能正常解析
-keep class cn.qqtheme.framework.entity.** { *;}
-keep class cn.qqtheme.framework.picker.AddressPickerr$* { *;}

0 comments on commit c9bdc7f

Please sign in to comment.