mirror of
https://github.com/tuskyapp/Tusky
synced 2025-01-31 21:24:48 +01:00
add proguard rules to make Jsondadapter annotation work (#2299)
This commit is contained in:
parent
2fd01f7e2d
commit
0b70f52ad2
8
app/proguard-rules.pro
vendored
8
app/proguard-rules.pro
vendored
@ -52,6 +52,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
# https://github.com/google/gson/blob/master/examples/android-proguard-example/proguard.cfg
|
# https://github.com/google/gson/blob/master/examples/android-proguard-example/proguard.cfg
|
||||||
|
|
||||||
|
# Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory,
|
||||||
|
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
|
||||||
|
-keep class * extends com.google.gson.TypeAdapter
|
||||||
|
-keep class * implements com.google.gson.TypeAdapterFactory
|
||||||
|
-keep class * implements com.google.gson.JsonSerializer
|
||||||
|
-keep class * implements com.google.gson.JsonDeserializer
|
||||||
|
|
||||||
# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher.
|
# 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 com.google.gson.reflect.TypeToken
|
||||||
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
|
-keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken
|
||||||
|
Loading…
x
Reference in New Issue
Block a user