Reputation: 1
I was trying to migrate from Retrofit 2.0.0-beta4 to 2.0.1 but the proguard text shows a bug in it . The for the text that i have added is:
-dontwarn retrofit2.
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {@retrofit2.http.*;} (line number 31)
and the bug which i get when i try to make a release build is that the proguard text has something missing and the text is as follows :
Warning:Exception while processing task java.io.IOException: proguard.ParseException: Expecting java type before ';' in line 31 of file '/Users/abc/Downloads/xyz/app/proguard-rules.pro'
:app:transformClassesAndResourcesWithProguardForRelease FAILED
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'. java.io.IOException: proguard.ParseException: Expecting java type before ';' in line 31 of file '/Users/ABC/Downloads/XYZ/app/proguard-rules.pro'
Upvotes: 0
Views: 1160
Reputation: 3083
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-keepclasseswithmembers class * {
@retrofit2.http.* <methods>;
}
Upvotes: 0