From 64fa3b1efe97197a217784e2645d96378bc9cbbd Mon Sep 17 00:00:00 2001 From: Zhou Weidong <502333560@qq.com> Date: Sat, 17 Oct 2026 03:03:52 +0800 Subject: [PATCH] =?UTF-8?q?build:=20release=20=E5=BC=80=E5=90=AF=20R8=20?= =?UTF-8?q?=E6=B7=B7=E6=B7=86=E4=B8=8E=E8=B5=84=E6=BA=90=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=EF=BC=88=E5=8F=8D=E7=BC=96=E8=AF=91=E4=BF=9D=E6=8A=A4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/build.gradle.kts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index f370e70..28ce24c 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -32,6 +32,9 @@ android { // TODO: Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig = signingConfigs.getByName("debug") + // 反编译保护(法律红线配套):开启 R8 混淆 + 资源压缩,发布前替换正式签名。 + isMinifyEnabled = true + isShrinkResources = true } } }