Skip to content

Commit

Permalink
关闭混淆,否则闪退
Browse files Browse the repository at this point in the history
  • Loading branch information
niyangup committed Dec 30, 2020
1 parent b76a58d commit 6823af4
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
8 changes: 8 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,18 @@ android {
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false
useProguard false
shrinkResources false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

debug {
signingConfig signingConfigs.release
minifyEnabled false
useProguard false
shrinkResources false
// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Expand Down
36 changes: 36 additions & 0 deletions android/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
### Flutter wrapper
#-keep class io.flutter.app.** { *; }
#-keep class io.flutter.plugin.** { *; }
#-keep class io.flutter.util.** { *; }
#-keep class io.flutter.view.** { *; }
#-keep class io.flutter.** { *; }
#-keep class io.flutter.plugins.** { *; }
#-dontwarn io.flutter.embedding.**
#
### 3D 地图 V5.0.0之前:
#-keep class com.amap.api.maps.**{*;}
#-keep class com.autonavi.amap.mapcore.*{*;}
#-keep class com.amap.api.trace.**{*;}
#
### 3D 地图 V5.0.0之后:
#-keep class com.amap.api.maps.**{*;}
#-keep class com.autonavi.**{*;}
#-keep class com.amap.api.trace.**{*;}
#
### 定位
#-keep class com.amap.api.location.**{*;}
#-keep class com.amap.api.fence.**{*;}
#-keep class com.autonavi.aps.amapapi.model.**{*;}
#
### 搜索
#-keep class com.amap.api.services.**{*;}
#
### 2D地图
#-keep class com.amap.api.maps2d.**{*;}
#-keep class com.amap.api.mapcore2d.**{*;}
#
### 导航
#-keep class com.amap.api.navi.**{*;}
#-keep class com.autonavi.**{*;}
#
#-keep class com.loc.**{*;}

0 comments on commit 6823af4

Please sign in to comment.