You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.2 KiB
107 lines
3.2 KiB
8 years ago
|
# Add project specific ProGuard rules here.
|
||
|
# By default, the flags in this file are appended to flags specified
|
||
|
# in /Users/yanghonghe/Downloads/adt-bundle-mac-x86_64-20140702/sdk/tools/proguard/proguard-android.txt
|
||
|
# You can edit the include path and order by changing the proguardFiles
|
||
|
# directive in build.gradle.
|
||
|
#
|
||
|
# For more details, see
|
||
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
||
|
|
||
|
# Add any project specific keep options here:
|
||
|
|
||
|
# If your project uses WebView with JS, uncomment the following
|
||
|
# and specify the fully qualified class name to the JavaScript interface
|
||
|
# class:
|
||
|
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||
|
# public *;
|
||
|
#}
|
||
|
|
||
|
##---------------Begin: proguard configuration for Gson ----------
|
||
|
# Gson uses generic type information stored in a class file when working with fields. Proguard
|
||
|
# removes such information by default, so configure it to keep all of it.
|
||
|
-keepattributes Signature
|
||
|
|
||
|
# For using GSON @Expose annotation
|
||
|
-keepattributes *Annotation*
|
||
|
|
||
|
# Gson specific classes
|
||
|
-keep class sun.misc.Unsafe { *; }
|
||
|
#-keep class com.google.gson.stream.** { *; }
|
||
|
|
||
|
# Application classes that will be serialized/deserialized over Gson
|
||
|
-keep class net.oschina.app.improve.bean.** { *; }
|
||
|
|
||
|
-keepattributes EnclosingMethod
|
||
|
|
||
|
##---------------End: proguard configuration for Gson ----------
|
||
|
|
||
|
-keep class net.oschina.app.** { *; }
|
||
|
|
||
|
|
||
|
-keep class butterknife.** { *; }
|
||
|
-dontwarn butterknife.internal.**
|
||
|
-keep class **$$ViewBinder { *; }
|
||
|
|
||
|
-keepclasseswithmembernames class * {
|
||
|
@butterknife.* <fields>;
|
||
|
}
|
||
|
|
||
|
-keepclasseswithmembernames class * {
|
||
|
@butterknife.* <methods>;
|
||
|
}
|
||
|
|
||
|
-keep public class net.oschina.app.R$* {
|
||
|
public static final int *;
|
||
|
}
|
||
|
|
||
|
-dontwarn com.thoughtworks.xstream.**
|
||
|
-keep class com.thoughtworks.xstream.** { *; }
|
||
|
|
||
|
-dontwarn com.makeramen.roundedimageview.**
|
||
|
-keep class com.makeramen.roundedimageview.RoundedTransformationBuilder
|
||
|
|
||
|
-dontwarn com.tencent.weibo.sdk.android.**
|
||
|
-keep class com.tencent.weibo.sdk.android.** { *; }
|
||
|
|
||
|
-dontwarn com.squareup.leakcanary.DisplayLeakService
|
||
|
-keep class com.squareup.leakcanary.DisplayLeakService
|
||
|
|
||
|
-dontwarn android.widget.**
|
||
|
-keep class android.widget.** {*;}
|
||
|
|
||
|
-dontwarn android.support.v7.widget.**
|
||
|
-keep class android.support.v7.widget.**{*;}
|
||
|
|
||
|
-dontshrink
|
||
|
-dontoptimize
|
||
|
-dontwarn com.google.android.maps.**
|
||
|
-dontwarn android.webkit.WebView
|
||
|
-dontwarn com.umeng.**
|
||
|
-dontwarn com.tencent.weibo.sdk.**
|
||
|
|
||
|
-keepattributes Exceptions,InnerClasses,Signature
|
||
|
-keepattributes *Annotation*
|
||
|
-keepattributes SourceFile,LineNumberTable
|
||
|
|
||
|
-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 class com.umeng.socialize.* {*;}
|
||
|
-keep public class javax.**
|
||
|
-keep public class android.webkit.**
|
||
|
|
||
|
-keep class com.umeng.scrshot.**
|
||
|
-keep public class com.tencent.** {*;}
|
||
|
-keep class com.umeng.socialize.sensor.**
|
||
|
|
||
|
-keep class com.tencent.mm.sdk.modelmsg.WXMediaMessage {*;}
|
||
|
-keep class com.tencent.mm.sdk.modelmsg.** implements com.tencent.mm.sdk.modelmsg.WXMediaMessage$IMediaObject {*;}
|
||
|
|
||
|
-keep public class * implements com.bumptech.glide.module.GlideModule
|
||
|
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
|
||
|
**[] $VALUES;
|
||
|
public *;
|
||
|
}
|