Add Gson proguard rules (stupid Gson...)

This fixes the problem with the Drafts section, and it should keep the
TypeToken and superclasses types intact (who really knows).

Fixes: https://todo.sr.ht/~captainepoch/husky/24
This commit is contained in:
Adolfo Santiago 2022-04-22 17:57:10 +02:00
parent 385831ed94
commit 168d559764
No known key found for this signature in database
GPG Key ID: 244D6F9A317B4A65
1 changed files with 5 additions and 0 deletions

View File

@ -85,3 +85,8 @@ public void printStackTrace();
static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String);
static void throwUninitializedPropertyAccessException(java.lang.String);
}
# Gson
# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher.
-keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken