From 168d559764790f78af707b3b2f8f3dfea9bdeebc Mon Sep 17 00:00:00 2001 From: Adolfo Santiago Date: Fri, 22 Apr 2022 17:57:10 +0200 Subject: [PATCH] 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 --- husky/app/proguard-rules.pro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/husky/app/proguard-rules.pro b/husky/app/proguard-rules.pro index 712fb0f..317911f 100644 --- a/husky/app/proguard-rules.pro +++ b/husky/app/proguard-rules.pro @@ -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