Android Retrofit,Gson,Okhttp混淆

# Retrofit

-dontwarn retrofit2.**

-dontwarn org.codehaus.mojo.**

-keep class retrofit2.** { *; }

-keepattributes Signature

-keepattributes Exceptions

-keepattributes *Annotation*

-keepattributes RuntimeVisibleAnnotations

-keepattributes RuntimeInvisibleAnnotations

-keepattributes RuntimeVisibleParameterAnnotations

-keepattributes RuntimeInvisibleParameterAnnotations

-keepattributes EnclosingMethod

-keepclasseswithmembers class * {

@retrofit2.* ;

}

-keepclasseswithmembers interface * {

@retrofit2.* ;

}

# 这里需要改成解析到哪个javabean

-keep class nowebview.model.** { *; }

你可能感兴趣的:(Android Retrofit,Gson,Okhttp混淆)