mirror of
https://github.com/GrakovNe/lissen-android.git
synced 2025-12-23 22:18:09 -05:00
15 lines
763 B
Prolog
15 lines
763 B
Prolog
# Gson uses generic type information stored in a class file when working with
|
|
# fields. Proguard removes such information by default, keep it.
|
|
-keepattributes Signature
|
|
|
|
# This is also needed for R8 in compat mode since multiple
|
|
# optimizations will remove the generic signature such as class
|
|
# merging and argument removal. See:
|
|
# https://r8.googlesource.com/r8/+/refs/heads/main/compatibility-faq.md#troubleshooting-gson-gson
|
|
-keep class com.google.gson.reflect.TypeToken { *; }
|
|
-keep class * extends com.google.gson.reflect.TypeToken
|
|
|
|
# Optional. For using GSON @Expose annotation
|
|
-keepattributes AnnotationDefault,RuntimeVisibleAnnotations
|
|
-keep class com.google.gson.reflect.TypeToken { <fields>; }
|
|
-keepclassmembers class **$TypeAdapterFactory { <fields>; } |