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 { buildTypes {
release { release {
// minifyEnabled true minifyEnabled true
// shrinkResources true shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} }
debug{ debug{
@ -32,16 +32,8 @@ android {
versionNameSuffix '-debug' versionNameSuffix '-debug'
applicationIdSuffix '.debug' applicationIdSuffix '.debug'
} }
githubRelease{ githubRelease { initWith release }
initWith release playRelease { initWith release }
}
playRelease{
initWith release
// TODO: fix proguard rules and re-enable these
// minifyEnabled true
// shrinkResources true
versionNameSuffix '-play'
}
} }
compileOptions { compileOptions {
sourceCompatibility JavaVersion.VERSION_17 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 # Keep all enums for debugging purposes
-keepnames public enum * { -keepnames public enum * {
*; *;
@ -79,3 +82,6 @@
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken -keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
##---------------End: proguard configuration for Gson ---------- ##---------------End: proguard configuration for Gson ----------
-dontobfuscate