proguard-rules.pro
3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# 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