Skip to content

Commit 65d710a

Browse files
committed
Enabled proguard for Android production build.
1 parent feed75b commit 65d710a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

frontend_app/android/app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ android {
5858
buildTypes {
5959
release {
6060
signingConfig signingConfigs.release
61+
62+
minifyEnabled true
63+
useProguard true
64+
65+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
6166
}
6267
}
6368
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Flutter wrapper
2+
-keep class io.flutter.app.** { *; }
3+
-keep class io.flutter.plugin.** { *; }
4+
-keep class io.flutter.util.** { *; }
5+
-keep class io.flutter.view.** { *; }
6+
-keep class io.flutter.** { *; }
7+
-keep class io.flutter.plugins.** { *; }
8+
-dontwarn io.flutter.embedding.**

0 commit comments

Comments
 (0)