美文网首页
Android Retrofit,Gson,Okhttp混淆

Android Retrofit,Gson,Okhttp混淆

作者: GameProgramer | 来源:发表于2018-04-09 16:57 被阅读0次

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

    相关文章

      网友评论

          本文标题:Android Retrofit,Gson,Okhttp混淆

          本文链接:https://www.haomeiwen.com/subject/ptiihftx.html