feat: 优化代码

pull/133/head
kunfei 5 years ago
parent 93dd4483b0
commit e2d2f7c8ef
  1. 2
      app/build.gradle
  2. 5
      app/proguard-rules.pro

@ -55,7 +55,7 @@ android {
signingConfig signingConfigs.myConfig signingConfig signingConfigs.myConfig
} }
applicationIdSuffix '.release' applicationIdSuffix '.release'
minifyEnabled false minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
} }
debug { debug {

@ -154,6 +154,8 @@
-keep class **.analyzeRule.**{*;} -keep class **.analyzeRule.**{*;}
# 保持web类 # 保持web类
-keep class **.web.**{*;} -keep class **.web.**{*;}
#数据类
-keep class **.data.**{*;}
-dontwarn rx.** -dontwarn rx.**
@ -220,9 +222,6 @@
-keepclassmembers class * { -keepclassmembers class * {
public <init> (org.json.JSONObject); public <init> (org.json.JSONObject);
} }
-keep public class com.kunfei.bookshelf.R$*{
public static final int *;
}
-keepclassmembers enum * { -keepclassmembers enum * {
public static **[] values(); public static **[] values();
public static ** valueOf(java.lang.String); public static ** valueOf(java.lang.String);

Loading…
Cancel
Save