mirror of https://github.com/readrops/Readrops.git
Enable Proguard for release build
This commit is contained in:
parent
2f5a140988
commit
aa3a3d3150
|
@ -27,9 +27,8 @@ android {
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
// proguard makes some functionalities fail so It's disabled until I find the problem source
|
minifyEnabled true
|
||||||
minifyEnabled false
|
shrinkResources true
|
||||||
shrinkResources false
|
|
||||||
|
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,3 +23,10 @@
|
||||||
-dontwarn org.xmlpull.v1.XmlPullParser
|
-dontwarn org.xmlpull.v1.XmlPullParser
|
||||||
-dontwarn org.xmlpull.v1.XmlSerializer
|
-dontwarn org.xmlpull.v1.XmlSerializer
|
||||||
-keep class org.xmlpull.v1.* {*;}
|
-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 {
|
defaultConfig {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 29
|
targetSdkVersion 29
|
||||||
versionCode 1
|
|
||||||
versionName "1.0"
|
|
||||||
|
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
|
minifyEnabled true
|
||||||
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
|
}
|
||||||
|
|
||||||
|
debug {
|
||||||
minifyEnabled false
|
minifyEnabled false
|
||||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue