forked from newlogic/smartscanner-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathproguard-rules.pro
225 lines (190 loc) · 5.76 KB
/
proguard-rules.pro
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# 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
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider
-keep public class * extends android.app.backup.BackupAgentHelper
-keep public class * extends android.preference.Preference
-keep public class * implements java.io.Serializable
-keep public class * extends androidx.fragment.*
-keepclasseswithmembernames,includedescriptorclasses class * {
native <methods>;
}
-keepattributes InnerClasses
-keep class org.idpass.smartscanner.lib.barcode.BarcodeResult
-keepclassmembers class org.idpass.smartscanner.lib.barcode.BarcodeResult** {
*;
}
-keep class org.idpass.smartscanner.lib.idpasslite.IDPassLiteResult
-keepclassmembers class org.idpass.smartscanner.lib.idpasslite.IDPassLiteResultt** {
*;
}
-keep class org.idpass.smartscanner.lib.mrz.MRZResult
-keepclassmembers class org.idpass.smartscanner.lib.mrz.MRZResult** {
*;
}
-keep class org.idpass.smartscanner.lib.nfc.NFCResult
-keepclassmembers class org.idpass.smartscanner.lib.nfc.NFCResult** {
*;
}
-keep public class org.idpass.lite.* {
<fields>;
<methods>;
}
-dontwarn org.idpass.lite.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class org.idpass.smartscanner.* {
<fields>;
<methods>;
}
-dontwarn org.idpass.smartscanner.*
-keepattributes Exceptions, Signature, InnerClasses
-keep class org.idpass.smartscanner.lib.scanner.config.ScannerOptions**
-keepclassmembers class org.idpass.smartscanner.lib.scanner.config.ScannerOptions** {
*;
}
-keep public class org.jmrtd.* {
<fields>;
<methods>;
}
-dontwarn org.jmrtd.*
-keepattributes Exceptions, Signature, InnerClasses
-keep class org.jmrtd.JMRTDSecurityProvider**
-keepclassmembers class org.jmrtd.JMRTDSecurityProvider** {
*;
}
-keep public class org.spongycastle.* {
<fields>;
<methods>;
}
-dontwarn org.spongycastle.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class net.sf.scuba.* {
<fields>;
<methods>;
*;
}
-dontwarn net.sf.scuba.*
-keepattributes Exceptions, Signature, InnerClasses
-keep class net.sf.scuba.smartcards.IsoDepCardService**
-keepclassmembers class net.sf.scuba.smartcards.IsoDepCardService** {
*;
}
-keep public class org.ejbca.* {
<fields>;
<methods>;
}
-dontwarn org.ejbca.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class org.slf4j.* {
<fields>;
<methods>;
}
-dontwarn org.slf4j.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class cz.adaptech.android.* {
<fields>;
<methods>;
}
-dontwarn cz.adaptech.android.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class com.google.protobuf.* {
<fields>;
<methods>;
}
-dontwarn com.google.protobuf.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class com.google.gson.* {
<fields>;
<methods>;
}
-dontwarn com.google.gson.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class com.bumptech.glide.* {
<fields>;
<methods>;
}
-dontwarn com.bumptech.glide.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class jp.wasabeef.glide.* {
<fields>;
<methods>;
}
-dontwarn jp.wasabeef.glide.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class com.jayway.jsonpath.* {
<fields>;
<methods>;
}
-dontwarn com.jayway.jsonpath.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class com.github.wnameless* {
<fields>;
<methods>;
}
-dontwarn com.github.wnameless*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class org.apache.* {
<fields>;
<methods>;
}
-dontwarn org.apache.*
-keepattributes Exceptions, Signature, InnerClasses
-keep public class com.google.common.* {
<fields>;
<methods>;
}
-dontwarn com.google.common.*
-keepattributes Exceptions, Signature, InnerClasses
-ignorewarnings
-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);
}
-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}