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 } } }