proguard-rules.pro 3.36 KB
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in C:\Users\XXW\AppData\Local\Android\Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-keepattributes *Annotation*
 -keep public class * implements com.bumptech.glide.module.GlideModule
    -keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {
      **[] $VALUES;
      public *;
    }

    -keep class org.greenrobot.greendao.**{*;}
    -keep public interface org.greenrobot.greendao.**
    -keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
    public static java.lang.String TABLENAME;
    }
    -keep class **$Properties
    -keep class net.sqlcipher.database.**{*;}
    -keep public interface net.sqlcipher.database.**
    -keep class cn.sunars.sdk.*.{*;}
    -dontwarn net.sqlcipher.database.**
    -dontwarn org.greenrobot.greendao.**

    -optimizationpasses 5
    -dontusemixedcaseclassnames
    -dontskipnonpubliclibraryclasses
    -dontpreverify
    -verbose
    -dontwarn
    -dontskipnonpubliclibraryclassmembers
    -ignorewarnings
    -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*


     -keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod

    # 保持 native 方法不被混淆
    -keepclasseswithmembernames class * {
        native <methods>;
    }
    -keepclasseswithmembers class * {
        public <init>(android.content.Context, android.util.AttributeSet);
    }
    -keepclasseswithmembers class * {
        public <init>(android.content.Context, android.util.AttributeSet, int);
    }


    # 泛型与反射
    -keepattributes Signature
    -keepattributes EnclosingMethod
    -keepattributes *Annotation*

-keepnames class * implements java.io.Serializable
-keep class com.sunvote.txpad.bean.*.{*;}
-keep class com.sunvote.txpad.view.*.{*;}

-libraryjars com.android.support.constraint:constraint-layout:1.0.2
-libraryjars com.android.support:design:26
-libraryjars com.android.support:cardview-v7:26.0.0-alpha1
-libraryjars com.android.support:recyclerview-v7:26.0.0-alpha1
-libraryjars com.github.bumptech.glide:glide:3.7.0
-libraryjars org.greenrobot:greendao:3.1.0
-libraryjars org.greenrobot:greendao-generator:3.1.0
-libraryjars net.zetetic:android-database-sqlcipher:3.5.3
-libraryjars com.jakewharton.rxbinding:rxbinding:0.4.0
-libraryjars io.reactivex:rxandroid:1.2.1
-libraryjars com.squareup.retrofit2:converter-gson:2.1.0
-libraryjars com.squareup.retrofit2:adapter-rxjava:2.1.0
-libraryjars com.umeng.analytics:analytics:latest.integration
-libraryjars com.squareup.retrofit2:converter-simplexml:2.1.0