-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathproguard-rules.pro
More file actions
93 lines (79 loc) · 3.07 KB
/
Copy pathproguard-rules.pro
File metadata and controls
93 lines (79 loc) · 3.07 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 D:\Develop\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
##--------------------------------------data 配置---------------------------------------------------
# model
-keep class com.jeanboy.data.cache.database.model.** { *; }
-keep class com.jeanboy.data.net.entity.** { *; }
-keep class com.jeanboy.data.net.mapper.** { *; }
##--------------------------------------data 配置---------------------------------------------------
##greenDAO
-keepclassmembers class * extends org.greenrobot.greendao.AbstractDao {
public static java.lang.String TABLENAME;
}
-keep class **$Properties
-dontwarn rx.**
-keep class rx.** { *; }
-dontwarn net.sqlcipher.database.SQLiteOpenHelper
-keep class net.sqlcipher.database.SQLiteOpenHelper
-dontwarn net.sqlcipher.database.SQLiteDatabase
-keep class net.sqlcipher.database.SQLiteDatabase
-dontwarn net.sqlcipher.database.SQLiteStatement
-keep class net.sqlcipher.database.SQLiteStatement
-dontwarn org.greenrobot.greendao.database.DatabaseOpenHelper$EncryptedHelper
-keep class org.greenrobot.greendao.database.DatabaseOpenHelper$EncryptedHelper
-dontwarn net.sqlcipher.database.SQLiteDatabase$CursorFactory
##FastJson
-dontwarn com.alibaba.fastjson.**
-keep class com.alibaba.fastjson.** { *; }
##gson
-keep class com.google.gson.** {*;}
-keep class com.google.**{*;}
-keep class sun.misc.Unsafe { *; }
-keep class com.google.gson.stream.** { *; }
-keep class com.google.gson.examples.android.model.** { *; }
-keep class com.google.** {
<fields>;
<methods>;
}
-dontwarn com.google.gson.**
##OkHttp
-dontwarn okhttp3.**
##retrofit2
-dontwarn okio.**
-dontwarn javax.annotation.**
-dontwarn com.fasterxml.**
-dontwarn retrofit2.**
#simplexml
-dontwarn sun.misc.**
-libraryjars <java.home>/lib/rt.jar(java/**,javax/**)
-keepattributes *Annotation*,EnclosingMethod
-keep public class org.simpleframework.**{ *; }
-keep public class org.simpleframework.xml.**{ *; }
-keep public class org.simpleframework.xml.core.**{ *; }
-keep public class org.simpleframework.xml.util.**{ *; }
-keep public class org.simpleframework.xml.stream.**{ *; }
-keep public class javax.** { *; }
-keep public class javax.xml.stream.**{ *; }
-keep public class org.simpleframework.** {
public void set*(***);
public *** get*();
}