build: release 开启 R8 混淆与资源压缩(反编译保护)

This commit is contained in:
Zhou Weidong committed 2026-10-17 03:03:52 +08:00
1 parent faaf2f7283
commit 64fa3b1efe
1 file changed
+3
+3
View File
@@ -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
}
}
}