add proguard

This commit is contained in:
unknown
2020-07-17 18:52:02 +08:00
parent 511ef17bd6
commit 966207fd8b
48 changed files with 176 additions and 53 deletions

View File

@@ -15,7 +15,9 @@ android {
buildTypes {
release {
minifyEnabled false
minifyEnabled true
zipAlignEnabled true
consumerProguardFiles 'consumer-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

View File

@@ -0,0 +1,4 @@
#-----CommonModule-----
-keep class com.mogo.module.common.entity.*
-keep class com.mogo.module.common.entity.*{*;}
-keep class com.mogo.module.common.entity.MarkerResponse.*{*;}

View File

@@ -19,3 +19,8 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-----CommonModule-----
-keep class com.mogo.module.common.entity.*
-keep class com.mogo.module.common.entity.*{*;}
-keep class com.mogo.module.common.entity.MarkerResponse.*{*;}