Skip to content

Commit e8b580d

Browse files
use minify for release with proper proguard rules (#175)
1 parent 29d7e21 commit e8b580d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test-app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ android {
1616
}
1717
buildTypes {
1818
release {
19-
minifyEnabled false
19+
minifyEnabled true
2020
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2121
}
2222
}

test-app/proguard-rules.pro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727

2828
# Safely ignore warnings about other libraries since we are using Gson
2929
#-dontwarn com.fasterxml.jackson.**
30+
-keep class com.fasterxml.jackson.** {*;}
31+
-dontwarn com.google.gson.**
32+
-dontwarn com.optimizely.ab.config.parser.**
3033
#-dontwarn org.json.**
3134

3235
# Annotations
@@ -37,6 +40,7 @@
3740

3841
# slf4j
3942
#-dontwarn org.slf4j.**
43+
-keep class org.slf4j.** {*;}
4044

4145
# Android Logger
4246
#-keep class com.noveogroup.android.log.** { *; }

0 commit comments

Comments
 (0)