-keepclassmembers class* { public <init>(org.json.JSONObject);}-keep public classcom.aijifu.mmbj.R$*{ public static final int *;}-keep public classcom.umeng.fb.ui.ThreadView {}#-libraryjars libs/umeng-sdk.jar-keep public class*extendscom.umeng.**
-keep classcom.umeng.** { *; }
umeng_feedback 友盟意见反馈
123456
-keepclassmembers class * {public <init>(org.json.JSONObject);}-keep publicclasscom.aijifu.mmbj.R$*{publicstaticfinalint *;}
-dontshrink
-dontoptimize
-dontwarn com.google.android.maps.**
-dontwarn android.webkit.WebView
-dontwarn com.umeng.**
-dontwarn com.tencent.weibo.sdk.**
-dontwarn com.facebook.**
#-libraryjars libs/SocialSDK_QQZone_2.jar-keep enum com.facebook.**
-keepattributes Exceptions,InnerClasses,Signature
-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
-keep public interface com.facebook.**
-keep public interface com.tencent.**
-keep public interface com.umeng.socialize.**
-keep public interface com.umeng.socialize.sensor.**
-keep public interface com.umeng.scrshot.**
-keep public classcom.umeng.socialize.* {*;}
-keep public classjavax.**
-keep public classandroid.webkit.**
-keep classcom.facebook.**
-keep classcom.umeng.scrshot.**
-keep public classcom.tencent.** {*;}
-keep classcom.umeng.socialize.sensor.**
-keep classcom.tencent.mm.sdk.modelmsg.WXMediaMessage {*;}
-keep classcom.tencent.mm.sdk.modelmsg.** implementscom.tencent.mm.sdk.modelmsg.WXMediaMessage$IMediaObject {*;}
-keep classim.yixin.sdk.api.YXMessage {*;}
-keep classim.yixin.sdk.api.** implementsim.yixin.sdk.api.YXMessage$YXMessageData{*;}
-keep public classcom.aijifu.mmbj.R$*{
public static final int *;}
xgpush 信鸽推送
1234
-keep public class*extendsandroid.app.Service
-keep public class*extendsandroid.content.BroadcastReceiver
-keep classcom.tencent.android.tpush.** {*;}-keep classcom.tencent.mid.** {*;}
附1.这是屏蔽项目自定义bean、entitiy和R,防止被混淆:
12345
-keep classcom.package.name.bean.** { *; }
-keep classcom.package.name.bean.entity.** { *; }
-keep public classcom.package.name.R$*{
public static final int *;}
##---------------Begin: proguard configuration common for all Android apps -----------optimizationpasses 5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dontskipnonpubliclibraryclassmembers-dontpreverify-verbose#-dump class_files.txt#-printseeds seeds.txt#-printusage unused.txt#-printmapping mapping.txt-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*-allowaccessmodification-keepattributes *Annotation*-renamesourcefileattribute SourceFile-keepattributes SourceFile,LineNumberTable-repackageclasses ''-keep public class * extendsandroid.app.Activity-keep public class * extendsandroid.app.Application-keep public class * extendsandroid.app.Service-keep public class * extendsandroid.content.BroadcastReceiver-keep public class * extendsandroid.content.ContentProvider-keep public class * extendsandroid.app.backup.BackupAgentHelper-keep public class * extendsandroid.preference.Preference-keep public classcom.android.vending.licensing.ILicensingService-dontnote com.android.vending.licensing.ILicensingService# Explicitly preserve all serialization members. The Serializable interface# is only a marker interface, so it wouldn't save them.-keepclassmembers class * implementsjava.io.Serializable { static final long serialVersionUID; private static final java.io.ObjectStreamField[] serialPersistentFields; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve();}# Preserve all native method names and the names of their classes.-keepclasseswithmembernames class * { native <methods>;}-keepclasseswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet);}-keepclasseswithmembernames class * { public <init>(android.content.Context, android.util.AttributeSet, int);}# Preserve static fields of inner classes of R classes that might be accessed# through introspection.-keepclassmembers class **.R$* { public static <fields>;}# Preserve the special static methods that are required in all enumeration classes.-keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String);}-keep public class * { public protected *;}-keep class * implementsandroid.os.Parcelable { public static final android.os.Parcelable$Creator *;}##---------------End: proguard configuration common for all Android apps ----------