Created
May 17, 2017 10:16
-
-
Save boss1088/18b1ea9f10fa19e23ba1d245761c8b96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Retrofit2 | |
-dontwarn retrofit2.** | |
-keep class retrofit2.** { *; } | |
-keepattributes Signature | |
-keepattributes Exceptions | |
-keepattributes *Annotation* | |
-keepclasseswithmembers class * { | |
@retrofit2.http.* <methods>; | |
} | |
-keepclassmembernames interface * { | |
@retrofit.http.* <methods>; | |
} | |
-dontwarn okio.** | |
#Retrolamba | |
-dontwarn java.lang.invoke.* | |
# 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 | |
# For using GSON @Expose annotation | |
-keepattributes *Annotation* | |
# Gson specific classes | |
-keep class sun.misc.Unsafe { *; } | |
#-keep class com.google.gson.stream.** { *; } | |
# 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 | |
# keep enum so gson can deserialize it | |
-keepclassmembers enum * { *; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment