diff --git a/libraries/proguard-square-retrofit2.pro b/libraries/proguard-square-retrofit2.pro index 586c0f8..83a8263 100644 --- a/libraries/proguard-square-retrofit2.pro +++ b/libraries/proguard-square-retrofit2.pro @@ -1,11 +1,11 @@ # Retrofit 2.X -## https://square.github.io/retrofit/ ## +## https://github.com/square/retrofit#proguard --dontwarn retrofit2.** --keep class retrofit2.** { *; } +# Retain generic type information for use by reflection by converters and adapters. -keepattributes Signature --keepattributes Exceptions - --keepclasseswithmembers class * { +# Retain service method parameters. +-keepclassmembernames,allowobfuscation interface * { @retrofit2.http.* ; } +# Ignore annotation used for build tooling. +-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement