Enable minification for release builds

This commit is contained in:
Grishka
2022-03-29 10:38:38 +03:00
parent cd4fc107e1
commit fa9112e117
3 changed files with 28 additions and 4 deletions

View File

@@ -18,4 +18,24 @@
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
# Keep all model classes as they're used with gson and their names are shown in errors
-keep public class org.joinmastodon.android.model.**{
<fields>;
}
# Inner classes in api requests are used with gson
-keepclassmembers class org.joinmastodon.android.api.**$*{
*;
}
# Keep all enums for debugging purposes
-keepnames public enum * {
*;
}
-keepclassmembers,allowobfuscation class * {
@com.google.gson.annotations.SerializedName <fields>;
@com.squareup.otto.Subscribe <methods>;
}