Skip to content

Commit ff49c41

Browse files
chore: update ProGuard rules
- Keep necessary classes for Optimizely and Jackson libraries - Keep Logback classes - Remove unnecessary warnings for javax.mail classes - Add ProGuard configuration to build.gradle for minification - Update proguard-rules.txt in app folder
1 parent f6b956c commit ff49c41

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

android/proguard-rules.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,4 @@
1313
# Logback
1414
-keep class ch.qos.** { *; }
1515

16-
# Mail classes (Logback SMTP appender)
17-
-dontwarn javax.mail.**
18-
-dontwarn javax.mail.internet.**
19-
-dontwarn javax.activation.**
20-
2116
##---------------End: proguard configuration ----------

example/android/app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ android {
4949
release {
5050
// TODO: Add your own signing config for the release build.
5151
// Signing with the debug keys for now, so `flutter run --release` works.
52+
minifyEnabled true
53+
proguardFiles 'proguard-rules.txt'
5254
signingConfig signingConfigs.debug
5355
}
5456
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Mail classes (Logback SMTP appender)
2+
-dontwarn javax.mail.**
3+
-dontwarn javax.mail.internet.**
4+
-dontwarn javax.activation.**

0 commit comments

Comments
 (0)