Skip to content
Snippets Groups Projects
Commit 981f3a1d authored by John's avatar John
Browse files

Update OkHttp proguard rules

parent dc1215c2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -43,6 +43,14 @@
-keep @org.parceler.Parcel class * { *; }
-keep class **$$Parcelable { *; }
 
# OkHttp
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn javax.annotation.**
-dontwarn org.conscrypt.**
# A resource is loaded with a relative path so the package of this class must be preserved.
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
# Retrofit
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-dontnote retrofit2.Platform
Loading
Loading
@@ -53,13 +61,6 @@
# Retain declared checked exceptions for use by a Proxy instance.
-keepattributes Exceptions
 
# EventBus
-keepattributes *Annotation*
-keepclassmembers class * {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
# Moshi
-dontwarn okio.**
-dontwarn javax.annotation.**
Loading
Loading
@@ -68,5 +69,12 @@
}
-keep @com.squareup.moshi.JsonQualifier interface *
 
# EventBus
-keepattributes *Annotation*
-keepclassmembers class * {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
# Custom rules
-keep class com.commit451.gitlab.ssl.CustomSSLSocketFactory
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment