diff --git a/app/build.gradle b/app/build.gradle index 6623d726..148ab150 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -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' } diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index c4df3434..2d14dda3 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -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.** { *; } \ No newline at end of file diff --git a/readropslibrary/build.gradle b/readropslibrary/build.gradle index 96cae7e2..36043c7b 100644 --- a/readropslibrary/build.gradle +++ b/readropslibrary/build.gradle @@ -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' }