Android Retrofit,Gson,Okhttp混淆

2018-04-09  本文已影响0人  GameProgramer

# 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.* <methods>;

}

-keepclasseswithmembers interface * {

@retrofit2.* <methods>;

}

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

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

上一篇下一篇

猜你喜欢

热点阅读