Skip to content

Commit 3e9d91c

Browse files
chore: update build configuration
- Remove 'minifyEnabled' setting from release build type in android/build.gradle - Exclude javax.mail and javax.activation classes in proguard configuration - Delete deprecated mail classes warning in proguard-rules.txt
1 parent 16c83ed commit 3e9d91c

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

android/build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ android {
5656
packagingOptions {
5757
exclude 'androidsupportmultidexversion.txt'
5858
}
59-
60-
buildTypes {
61-
release {
62-
minifyEnabled false
63-
}
64-
}
65-
6659
}
6760

6861
dependencies {

android/proguard-rules.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
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+
1621
##---------------End: proguard configuration ----------

example/android/app/build.gradle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ 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-
shrinkResources true
54-
proguardFiles 'proguard-rules.txt'
5552
signingConfig signingConfigs.debug
5653
}
5754
}

example/android/app/proguard-rules.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)