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,2 @@
#-----library-MapAMap-----
-keep class com.mogo.map.impl.amap.hook.BnHooker.*{*;}

View File

@@ -19,3 +19,6 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-----library-MapAMap-----
-keep class com.mogo.map.impl.amap.hook.BnHooker.*{*;}

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,2 @@
#-----library-MapApi----
-keep class com.mogo.map.search.geo.MogoRegeocodeResult.*{*;}

View File

@@ -19,3 +19,6 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-----library-MapApi----
-keep class com.mogo.map.search.geo.MogoRegeocodeResult.*{*;}