Skip to content

Commit 3970033

Browse files
[FSSDK-11888] fix: disable code minify to support R8 compatibility (#87)
* build: update minifyEnabled setting in release build - Change minifyEnabled from true to false in the release buildType - Update the ProGuard configuration to exclude javax.mail and javax.activation. classes * 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 * build: enable resource shrinking in release build - Add configuration to shrink resources for reducing APK size * 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 5913f27 commit 3970033

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

android/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ android {
5656
packagingOptions {
5757
exclude 'androidsupportmultidexversion.txt'
5858
}
59-
60-
buildTypes {
61-
release {
62-
minifyEnabled true
63-
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
64-
}
65-
}
66-
6759
}
6860

6961
dependencies {

android/proguard-rules.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@
1212
-keep class com.fasterxml.jackson.** {*;}
1313
# Logback
1414
-keep class ch.qos.** { *; }
15+
16+
# Mail classes (Logback SMTP appender)
17+
-dontwarn javax.mail.**
18+
-dontwarn javax.mail.internet.**
19+
-dontwarn javax.activation.**
20+
1521
##---------------End: proguard configuration ----------

0 commit comments

Comments
 (0)