2 Star 0 Fork 0

1mf2 / AntMall

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
proguard.cfg 4.10 KB
一键复制 编辑 原始数据 按行查看 历史
1mf2 提交于 2015-07-23 20:01 . 修改消息推送和用户关联
# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#manual/usage.html
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontskipnonpubliclibraryclassmembers
-verbose
#如果启用优化, 则打开下面三项, 同时注释掉第四项
# Optimization is turned off by default. Dex does not like code run
# through the ProGuard optimize and preverify steps (and performs some
# of these optimizations on its own).
#-optimizations !code/simplification/arithmetic,!code/simplification/cast,!field/*,!class/merging/*
#-optimizationpasses 5
#-allowaccessmodification
-dontoptimize
-dontpreverify
-ignorewarnings
#***********************************************************************************************************#
-keepattributes *Annotation*
-keepattributes JavascriptInterface
-keep class com.hisense.hitv.logging.**
# For native methods, see http://proguard.sourceforge.net/manual/examples.html#native
-keepclasseswithmembernames class * {
native <methods>;
}
# keep setters in Views so that animations can still work.
# see http://proguard.sourceforge.net/manual/examples.html#beans
-keepclassmembers public class * extends android.view.View {
void set*(***);
*** get*();
}
# We want to keep methods in Activity that could be used in the XML attribute onClick
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
# For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class **.R$* {
public static <fields>;
}
# The support library contains references to newer platform versions.
# Don't warn about those in case this app is linking against an older
# platform version. We know about them, and they are safe.
-dontwarn android.support.**
#下面语句是将layoutlib.jar和android.jar中重复的类产生的note警告关闭
-dontnote dalvik.**
-dontnote android.**
-dontnote javax.microedition.**
-dontnote javax.swing.**
-dontnote java.awt.**
-dontnote org.json.*
-dontnote org.xmlpull.v1.*
-dontnote com.android.internal.**
-dontnote org.apache.commons.fileupload.**
-dontnote demo.Pinyin4jAppletDemo.**
#如果没有引用自升级模块则将下面注释掉
#第三方包引用的一些类本环境没有,而这些类本工程又用不到,所以屏蔽此错误
-dontwarn org.apache.commons.fileupload.**
-dontwarn demo.Pinyin4jAppletDemo.**
-dontwarn javax.swing.**
-dontwarn java.awt.**
-keep class demo.Pinyin4jAppletDemo.** {
*;
}
-keep class android.support.** {*;}
-keep class * extends java.lang.annotation.Annotation { *; }
-keep class java.lang.annotation.Annotation { *; }
-keep class java.awt.** {
*;
}
-keep class it.sephiroth.android.library.widget.** {
*;
}
-keepattributes SourceFile , LineNumberTable
# proguard.cfg
-keepattributes Signature
-dontwarn com.jcraft.jzlib.**
-keep class com.jcraft.jzlib.** { *;}
-dontwarn sun.misc.**
-keep class sun.misc.** { *;}
-dontwarn com.alibaba.fastjson.**
-keep class com.alibaba.fastjson.** { *;}
-dontwarn sun.security.**
-keep class sun.security.** { *; }
-dontwarn com.google.**
-keep class com.google.** { *;}
-dontwarn com.avos.**
-keep class com.avos.** { *;}
-keep public class android.net.http.SslError
-keep public class android.webkit.WebViewClient
-dontwarn android.webkit.WebView
-dontwarn android.net.http.SslError
-dontwarn android.webkit.WebViewClient
-dontwarn android.support.**
-dontwarn org.apache.**
-keep class org.apache.** { *;}
-dontwarn org.jivesoftware.smack.**
-keep class org.jivesoftware.smack.** { *;}
-dontwarn com.loopj.**
-keep class com.loopj.** { *;}
-dontwarn org.xbill.**
-keep class org.xbill.** { *;}
1
https://gitee.com/1mf2/AntMall.git
git@gitee.com:1mf2/AntMall.git
1mf2
AntMall
AntMall
master

搜索帮助