Skip to content

Commit 1e0de49

Browse files
committed
chore: shrink resources and use optimized proguard file on Android to reduce the APK size
It removes ~300KB from the final APK.
1 parent f50a722 commit 1e0de49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ android {
4646
}
4747
buildTypes {
4848
release {
49-
// Signing with the debug keys for now, so `flutter run --release` works.
5049
minifyEnabled true
51-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
50+
shrinkResources true
51+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
5252
// Only used when building a released work.
5353
signingConfig signingConfigs.release
5454
}

0 commit comments

Comments
 (0)