Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
门心叼龙
MVPArms
提交
a5a93863
M
MVPArms
项目概览
门心叼龙
/
MVPArms
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MVPArms
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a5a93863
编写于
8月 31, 2016
作者:
J
jessyan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add proguard-rule
上级
308861b6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
268 addition
and
2 deletion
+268
-2
.idea/misc.xml
.idea/misc.xml
+1
-1
arms/proguard-rules.pro
arms/proguard-rules.pro
+267
-0
arms/src/main/java/com/jess/arms/base/BaseActivity.java
arms/src/main/java/com/jess/arms/base/BaseActivity.java
+0
-1
未找到文件。
.idea/misc.xml
浏览文件 @
a5a93863
...
...
@@ -37,7 +37,7 @@
<ConfirmationsSetting
value=
"0"
id=
"Add"
/>
<ConfirmationsSetting
value=
"0"
id=
"Remove"
/>
</component>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
7
"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<component
name=
"ProjectRootManager"
version=
"2"
languageLevel=
"JDK_1_
8
"
default=
"true"
assert-keyword=
"true"
jdk-15=
"true"
project-jdk-name=
"1.8"
project-jdk-type=
"JavaSDK"
>
<output
url=
"file://$PROJECT_DIR$/build/classes"
/>
</component>
<component
name=
"ProjectType"
>
...
...
arms/proguard-rules.pro
浏览文件 @
a5a93863
...
...
@@ -15,3 +15,270 @@
#-
keepclassmembers
class
fqcn
.
of
.
javascript
.
interface
.
for
.
webview
{
#
public
*
;
#
}
-
optimizationpasses
5
-
dontusemixedcaseclassnames
-
dontskipnonpubliclibraryclasses
-
dontskipnonpubliclibraryclassmembers
-
dontpreverify
-
verbose
-
printmapping
priguardMapping
.
txt
-
optimizations
!
code
/
simplification
/
artithmetic
,!
field
/*
,!class/merging
/*
################common###############
#实体类不参与混淆
-keep class com.jess.arms.widget.*
* { *; } #自定义控件不参与混淆
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepnames class * implements java.io.Serializable
-keepattributes Signature
-keep class
*
*.R$* {*;}
-ignorewarnings
-keepclassmembers class
*
*.R$* {
public static <fields>;
}
################support###############
-keep class android.support.
*
* { *; }
-keep interface android.support.
*
* { *; }
-dontwarn android.support.
*
*
################alipay###############
-keep class com.alipay.android.app.IAlixPay{*;}
-keep class com.alipay.android.app.IAlixPay$Stub{*;}
-keep class com.alipay.android.app.IRemoteServiceCallback{*;}
-keep class com.alipay.android.app.IRemoteServiceCallback$Stub{*;}
-keep class com.alipay.sdk.app.PayTask{ public *;}
-keep class com.alipay.sdk.app.AuthTask{ public *;}
################retrofit###############
-dontwarn retrofit2.
*
*
-keep class retrofit2.
*
* { *; }
-keepattributes Signature
-keepattributes Exceptions
################butterknife###############
-keep class butterknife.
*
* { *; }
-dontwarn butterknife.internal.
*
*
-keep class
*
*$$ViewBinder { *; }
-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}
-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}
################gson###############
-keepattributes Signature
-keepattributes *Annotation*
-keep class sun.misc.Unsafe { *; }
-keep class com.google.gson.stream.
*
* { *; }
# Application classes that will be serialized
/deserialized over Gson
-keep class com.sunloto.shandong.bean.*
* { *; }
################umeng###############
-keep class com.umeng.
*
* { *; }
-keep public class * extends com.umeng.
*
*
################glide###############
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep class com.bumptech.glide.
*
* { *; }
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$
*
* {
*
*[] $VALUES;
public *;
}
################okhttp###############
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.
*
* { *; }
-keep interface com.squareup.okhttp.
*
* { *; }
-keep class okhttp3.
*
* { *; }
-keep interface okhttp3.
*
* { *; }
-dontwarn com.squareup.okhttp.
*
*
################androidEventBus###############
-keep class org.simple.
*
* { *; }
-keep interface org.simple.
*
* { *; }
-keepclassmembers class * {
@org.simple.eventbus.Subscriber <methods>;
}
-keepattributes *Annotation*
################autolayout###############
-keep class com.zhy.autolayout.
*
* { *; }
-keep interface com.zhy.autolayout.
*
* { *; }
################Rxjava and RxAndroid###############
-dontwarn org.mockito.
*
*
-dontwarn org.junit.
*
*
-dontwarn org.robolectric.
*
*
-keep class rx.
*
* { *; }
-keep interface rx.
*
* { *; }
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.squareup.okhttp.
*
* { *; }
-dontwarn okio.
*
*
-keep interface com.squareup.okhttp.
*
* { *; }
-dontwarn com.squareup.okhttp.
*
*
-dontwarn rx.
*
*
-dontwarn retrofit.
*
*
-keep class retrofit.
*
* { *; }
-keepclasseswithmembers class * {
@retrofit.http.* <methods>;
}
-keep class sun.misc.Unsafe { *; }
-dontwarn java.lang.invoke.*
-keep class rx.schedulers.Schedulers {
public static <methods>;
}
-keep class rx.schedulers.ImmediateScheduler {
public <methods>;
}
-keep class rx.schedulers.TestScheduler {
public <methods>;
}
-keep class rx.schedulers.Schedulers {
public static
*
* test();
}
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
long producerIndex;
long consumerIndex;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
long producerNode;
long consumerNode;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
rx.internal.util.atomic.LinkedQueueNode producerNode;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
rx.internal.util.atomic.LinkedQueueNode consumerNode;
}
-dontwarn rx.internal.util.unsafe.
*
*
################nineoldandroids###############
-keep class com.nineoldandroids.animation.
*
* { *; }
-keep interface com.nineoldandroids.animation.
*
* { *; }
-keep class com.nineoldandroids.view.
*
* { *; }
-keep interface com.nineoldandroids.view.
*
* { *; }
################epresso###############
-keep class android.support.test.espresso.
*
* { *; }
-keep interface android.support.test.espresso.
*
* { *; }
################autobahn###############
-keep class de.tavendo.autobahn.
*
* { *; }
-keep interface de.tavendo.autobahn.
*
* { *; }
################shareSdk###############
-keep class cn.sharesdk.
*
* { *; }
-keep interface cn.sharesdk.
*
* { *; }
################crop###############
-keep class com.soundcloud.android.
*
* { *; }
-keep interface com.soundcloud.android.
*
* { *; }
################annotation###############
-keep class android.support.annotation.
*
* { *; }
-keep interface android.support.annotation.
*
* { *; }
################pickerview###############
-keep class com.bigkoo.pickerview.
*
* { *; }
-keep interface com.bigkoo.pickerview.
*
* { *; }
################carousellayoutmanager###############
-keep class com.azoft.carousellayoutmanager.
*
* { *; }
-keep interface com.azoft.carousellayoutmanager.
*
* { *; }
################messagepack###############
-keep class org.
*
* { *; }
-keep interface org.
*
* { *; }
################javassist###############
-keep class javassist.
*
* { *; }
-keep interface javassist.
*
* { *; }
################RxLifeCycle#################
-keep class com.trello.rxlifecycle.
*
* { *; }
-keep interface com.trello.rxlifecycle.
*
* { *; }
################RxCache#################
-dontwarn io.rx_cache.internal.
*
*
-keep class io.rx_cache.internal.Record { *; }
-keep class io.rx_cache.Source { *; }
-keep class io.victoralbertos.jolyglot.
*
* { *; }
-keep interface io.victoralbertos.jolyglot.
*
* { *; }
################Timber#################
-dontwarn org.jetbrains.annotations.
*
*
################Canary#################
-dontwarn com.squareup.haha.guava.
*
*
-dontwarn com.squareup.haha.perflib.
*
*
-dontwarn com.squareup.haha.trove.
*
*
-dontwarn com.squareup.leakcanary.
*
*
-keep class com.squareup.haha.
*
* { *; }
-keep class com.squareup.leakcanary.
*
* { *; }
# Marshmallow removed Notification.setLatestEventInfo()
-dontwarn android.app.Notification
arms/src/main/java/com/jess/arms/base/BaseActivity.java
浏览文件 @
a5a93863
...
...
@@ -24,7 +24,6 @@ import java.util.LinkedList;
import
javax.inject.Inject
;
import
butterknife.ButterKnife
;
public
abstract
class
BaseActivity
<
P
extends
BasePresenter
>
extends
RxAppCompatActivity
{
protected
final
String
TAG
=
this
.
getClass
().
getSimpleName
();
private
BroadcastReceiver
mBroadcastReceiver
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录