mirror of
https://github.com/readrops/Readrops.git
synced 2024-12-27 09:02:32 +01:00
Enable Proguard for release build
This commit is contained in:
parent
2f5a140988
commit
aa3a3d3150
@ -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'
|
||||
}
|
||||
|
7
app/proguard-rules.pro
vendored
7
app/proguard-rules.pro
vendored
@ -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.** { *; }
|
@ -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'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user