From 300b7557c02166d5f5a57399d2d4802f5d993502 Mon Sep 17 00:00:00 2001 From: CoderStory Date: Thu, 4 Mar 2021 19:04:26 +0800 Subject: [PATCH] [app] Add rule for gson (#266) Co-authored-by: vvb2060 --- app/proguard-rules.pro | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index ceae3db4..6688fac0 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -18,3 +18,7 @@ -repackageclasses -allowaccessmodification + +# Gson uses generic type information stored in a class file when working with fields. Proguard +# removes such information by default, so configure it to keep all of it. +-keepattributes Signature,InnerClasses