Skip to content

Commit

Permalink
proguard: Add rules for retrofit2
Browse files Browse the repository at this point in the history
  • Loading branch information
murraycu committed Jul 27, 2017
1 parent f94ac10 commit eb1a4b9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion app/proguard-rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,19 @@
-dontwarn org.apache.http.**
-dontwarn android.net.http.AndroidHttpClient
-dontwarn com.google.android.gms.**
-dontwarn com.android.volley.toolbox.**
-dontwarn com.android.volley.toolbox.**


# See https://square.github.io/retrofit/
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-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


# See https://github.com/square/okio#proguard
-dontwarn okio.**

0 comments on commit eb1a4b9

Please sign in to comment.