Skip to content

Instantly share code, notes, and snippets.

@EdgeJH
Created June 1, 2018 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdgeJH/98f90501620073fb1f5ec2824cf9944f to your computer and use it in GitHub Desktop.
Save EdgeJH/98f90501620073fb1f5ec2824cf9944f to your computer and use it in GitHub Desktop.
#-----------Begin retrofit2 proguard ---------------
-dontnote retrofit2.Platform
# Platform used when running on Java 8 VMs. Will not be used at runtime.
-dontwarn retrofit2.Platform$Java8
# Retain generic type information for use by reflection by converters and adapters.
-keepattributes Signature
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
##---------------Begin: proguard configuration for Gson ----------
# 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
# Gson specific classes
-keep class sun.misc.Unsafe { *; }
#-keep class com.google.gson.stream.** { *; }
# Application classes that will be serialized/deserialized over Gson
# -keep class mypersonalclass.data.model.** { *; }
#----------------Begin okhttp3 proguard---------
-keepattributes Signature
-keepattributes Annotation
-dontwarn okhttp3.**
-dontwarn okio.**
-dontnote okhttp3.**
-dontwarn javax.annotation.**
-dontwarn javax.annotation.GuardedBy
#------------------------------------------------
-keep public class org.jsoup.** {
public *;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment