workaround for proguard errors

re: sk22#572
This commit is contained in:
sk 2023-06-15 18:12:29 +02:00
parent 3af7518cf4
commit b22a25e7af
2 changed files with 10 additions and 12 deletions

View File

@ -23,8 +23,8 @@ android {
buildTypes {
release {
// minifyEnabled true
// shrinkResources true
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug{
@ -32,16 +32,8 @@ android {
versionNameSuffix '-debug'
applicationIdSuffix '.debug'
}
githubRelease{
initWith release
}
playRelease{
initWith release
// TODO: fix proguard rules and re-enable these
// minifyEnabled true
// shrinkResources true
versionNameSuffix '-play'
}
githubRelease { initWith release }
playRelease { initWith release }
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17

View File

@ -30,6 +30,9 @@
*;
}
# i don't know how proguard works
-keep class org.joinmastodon.android.** { *; }
# Keep all enums for debugging purposes
-keepnames public enum * {
*;
@ -79,3 +82,6 @@
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
##---------------End: proguard configuration for Gson ----------
-dontobfuscate