generated from dellevin/template
压缩安装包体积
This commit is contained in:
@@ -32,6 +32,13 @@ android {
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
// 启用代码压缩和资源缩减
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro"
|
||||
)
|
||||
// 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")
|
||||
|
||||
Reference in New Issue
Block a user