Merge pull request #926 from ChaitanyaPramod/patch-1

Prevent Proguard from stripping interface info from @JsonAdapter classes
This commit is contained in:
inder123 2016-09-14 16:54:11 -07:00 committed by GitHub
commit d08e077cfb

View File

@ -13,4 +13,10 @@
# Application classes that will be serialized/deserialized over Gson
-keep class com.google.gson.examples.android.model.** { *; }
# Prevent proguard from stripping interface information from TypeAdapterFactory,
# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter)
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer
##---------------End: proguard configuration for Gson ----------