Enable Proguard for release build

This commit is contained in:
Shinokuni 2019-11-24 16:55:20 +01:00
parent 2f5a140988
commit aa3a3d3150
3 changed files with 14 additions and 5 deletions

View File

@ -27,9 +27,8 @@ android {
}
buildTypes {
release {
// proguard makes some functionalities fail so It's disabled until I find the problem source
minifyEnabled false
shrinkResources false
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

View File

@ -23,3 +23,10 @@
-dontwarn org.xmlpull.v1.XmlPullParser
-dontwarn org.xmlpull.v1.XmlSerializer
-keep class org.xmlpull.v1.* {*;}
-keep class org.simpleframework.xml.** { *; }
-keep class com.readrops.readropslibrary.services.freshrss.json.** { *; }
-keep class com.readrops.readropslibrary.services.nextcloudnews.json.** { *; }
-keep class com.readrops.readropslibrary.localfeed.** { *; }

View File

@ -8,14 +8,17 @@ android {
defaultConfig {
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}