From 1bc4cf982fcfce199c833f0b8dfb972272981c37 Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Fri, 7 May 2021 16:23:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20=E5=AE=89=E5=8D=93?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E9=97=AA=E9=80=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle | 6 ++++++ android/app/proguard-rules.pro | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 android/app/proguard-rules.pro diff --git a/android/app/build.gradle b/android/app/build.gradle index 1209ecb..25c2e93 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -78,9 +78,15 @@ android { signingConfig signingConfigs.release } debug { + minifyEnabled true + useProguard true + multiDexEnabled true signingConfig signingConfigs.release } profile{ + minifyEnabled true + useProguard true + multiDexEnabled true signingConfig signingConfigs.release } } diff --git a/android/app/proguard-rules.pro b/android/app/proguard-rules.pro new file mode 100644 index 0000000..dde36c1 --- /dev/null +++ b/android/app/proguard-rules.pro @@ -0,0 +1,18 @@ +## 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.** + +## AMap 3D Map +-keep class com.amap.api.maps.**{*;} +-keep class com.autonavi.**{*;} +-keep class com.amap.api.trace.**{*;} + +## AMap Location +-keep class com.amap.api.location.**{*;} +-keep class com.amap.api.fence.**{*;} +-keep class com.autonavi.aps.amapapi.model.**{*;} \ No newline at end of file