Skip to content

Commit

Permalink
开启压缩和去除不必要资源
Browse files Browse the repository at this point in the history
  • Loading branch information
SunnyQjm committed Jul 9, 2019
1 parent 21e667e commit 900386a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ android {
}
buildTypes {
release {
minifyEnabled false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down
4 changes: 3 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@
-keep interface androidx.** {*;}
-dontwarn com.google.android.material.**
-dontnote com.google.android.material.**
-dontwarn androidx.**
-dontwarn androidx.**

-keep class cn.qjm253.quick_android.mvp_demo.**{*;}

0 comments on commit 900386a

Please sign in to comment.