# Add project specific ProGuard rules here. # You can control the set of applied configuration files using the # proguardFiles setting in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} # Uncomment this to preserve the line number information for # debugging stack traces. #-keepattributes SourceFile,LineNumberTable # 保留com.assimilate.alltrans.keepmodel包及其子包的所有类 -keep class com.assimilate.alltrans.keepmodel.** { *; } # 保留com.assimilate.alltrans.http包及其子包的所有类 -keep class com.assimilate.alltrans.http.** { *; } # 保留Gson相关的混淆规则 -keep class com.google.gson.** { *; } -keepattributes Signature -keepattributes *Annotation* -keep class **$Gson$Types { *; } -keep class **$Gson$Preconditions { *; } # 保留使用的注解 -keepattributes *Annotation* # 保留Retrofit类和方法 -keep class retrofit2.** { *; } -dontwarn retrofit2.** -keep class okhttp3.** { *; } -dontwarn okhttp3.** # If you keep the line number information, uncomment this to # hide the original source file name. #-renamesourcefileattribute SourceFile