Skip to content

Commit c14c323

Browse files
committed
添加release配置
1 parent d60786f commit c14c323

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

android/app/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ android {
6565
// TODO: Add your own signing config for the release build.
6666
// Signing with the debug keys for now, so `flutter run --release` works.
6767
signingConfig signingConfigs.release
68+
//开启混淆
69+
minifyEnabled true
70+
//开启资源压缩
71+
shrinkResources true
72+
//开启zip对齐
73+
zipAlignEnabled true
74+
//如果开启混淆,记得在混淆文件中添加混淆规则
75+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
6876
}
6977
}
7078
}

android/settings_aar.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include ':app'

0 commit comments

Comments
 (0)