-
Notifications
You must be signed in to change notification settings - Fork 11
/
proguard-rules.pro
304 lines (234 loc) · 12.1 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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
-keepattributes InnerClasses
-keep class com.idenfy.idenfySdk.uicomponents.** { *; }
-keep class com.idenfy.idenfySdk.api.** { *; }
-keep public class com.idenfy.idenfySdk.CoreSdkInitialization** {
public protected *;
public *;
}
-keep public class com.idenfy.idenfySdk.api.** {
public protected *;
public *;
}
-keep public class com.idenfy.idenfySdk.api** {
public protected *;
public *;
}
-keeppackagenames com.idenfy.idenfySdk.api**
-keep class com.idenfy.idenfySdk.api** { *; }
-keep class com.idenfy.idenfySdk.api.logging** { *; }
-keep public class com.idenfy.idenfySdk.SdkResponseModels** {
public protected *;
public *;
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keep public enum com.idenfy.idenfySdk.**{
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers enum com.idenfy.idenfySdk.** { *; }
-keepclassmembers enum com.idenfy.idenfySdk.** {
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers enum com.idenfy.idenfySdk.** {
<fields>;
public static **[] values();
public static ** valueOf(java.lang.String);
}
-dontwarn okhttp3.**
-dontwarn okio.**
-dontwarn java.lang.invoke**
-dontwarn javax.annotation.**
-dontwarn org.conscrypt.**
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-dontnote retrofit2.Platform
-dontwarn retrofit2.Platform$Java8
-verbose
-keep class * implements android.arch.lifecycle.GeneratedAdapter {<init>(...);}
-keep class android.arch.lifecycle.** {*;}
-keepattributes Signature, InnerClasses, EnclosingMethod
# Retrofit does reflection on method and parameter annotations.
-keepattributes RuntimeVisibleAnnotations, RuntimeVisibleParameterAnnotations
# Retain service method parameters when optimizing.
-keepclassmembers,allowshrinking,allowobfuscation interface * {
@retrofit2.http.* <methods>;
}
-keepclassmembers class * {
@com.google.gson.annotations.SerializedName <fields>;
}
# Ignore annotation used for build tooling.
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
# Ignore JSR 305 annotations for embedding nullability information.
-dontwarn javax.annotation.**
# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.
-dontwarn kotlin.Unit
-dontwarn kotlin.**
# Top-level functions that can only be used by Kotlin.
-dontwarn retrofit2.-KotlinExtensions
-keep public enum com.idenfy.idenfysdk.core.**{
public static **[] values();
public static ** valueOf(java.lang.String);
}
-keepclassmembers public class com.idenfy.idenfysdk.core.networking.models** { *; }
-keep class biz.smartengines.smartid** { *; }
# Coroutines
-keep class kotlinx.coroutines.android.AndroidDispatcherFactory {*;}
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
-keepclassmembernames class kotlinx.** {
volatile <fields>;
}
#Sentry
-keep class io.sentry.android.core.SentryAndroidOptions
-keep class io.sentry.android.ndk.SentryNdk
-keep class org.jmrtd.** { *; }
-keep class net.sf.scuba.** {*;}
-keep class org.bouncycastle.** {*;}
-keep class org.ejbca.** {*;}
#FaceTec
-dontwarn com.facetec.sdk.**
-keep class com.facetec.sdk.** { *; }
#Moshi
-keepclassmembers class ** {
@com.squareup.moshi.FromJson *;
@com.squareup.moshi.ToJson *;
}
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.nfcreading.models.**
-keep class com.idenfy.idenfySdk.nfcreading.models.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.nfcreading.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.liveness.idcheck.data.models.**
-keep class com.idenfy.idenfySdk.liveness.idcheck.data.models.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.liveness.idcheck.data.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.core.domain.models.**
-keep class com.idenfy.idenfySdk.core.domain.models.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.core.domain.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.liveness.data.models.**
-keep class com.idenfy.idenfySdk.liveness.data.models.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.liveness.data.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.SdkResponseModels.**
-keep class com.idenfy.idenfySdk.SdkResponseModels.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.SdkResponseModels.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.idenfycore.networking.**
-keep class com.idenfy.idenfySdk.idenfycore.networking.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.idenfycore.networking.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.idenfycore.ui.customviews.**
-keep class com.idenfy.idenfySdk.idenfycore.ui.customviews.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.idenfycore.ui.customviews.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.camerasession.domain.model.**
-keep class com.idenfy.idenfySdk.camerasession.domain.model.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.camerasession.domain.model.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.camerasession.facecamerasession.domain.utils.ConstsFaceDetection
-keep class com.idenfy.idenfySdk.camerasession.facecamerasession.domain.utils.ConstsFaceDetection { *; }
-keepclassmembers class com.idenfy.idenfySdk.camerasession.facecamerasession.domain.utils.ConstsFaceDetection { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.identificationresults.domain.models.**
-keep class com.idenfy.idenfySdk.identificationresults.domain.models.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.identificationresults.domain.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.identificationresults.data.models.**
-keep class com.idenfy.idenfySdk.identificationresults.data.models.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.identificationresults.data.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.identificationresults.presentation.state.**
-keep class com.idenfy.idenfySdk.identificationresults.presentation.state.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.identificationresults.presentation.state.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.features.confirmation.ui.uiviewmodel.**
-keep class com.idenfy.idenfySdk.features.confirmation.ui.uiviewmodel.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.features.confirmation.ui.uiviewmodel.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.providerselection.domain.models.**
-keep class com.idenfy.idenfySdk.providerselection.domain.models.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.providerselection.domain.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.networking.**
-keep class com.idenfy.idenfySdk.networking.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.networking.** { *; }
#Keep Annotation for models
-keep class androidx.annotation.Keep {*;}
# COREEEEEEE
-keepclassmembers enum com.idenfy.idenfysdk.idenfycore.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfysdk.idenfycore.models.**
-keep class com.idenfy.idenfysdk.idenfycore.models.** { *; }
-keepclassmembers class com.idenfy.idenfysdk.idenfycore.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfysdk.idenfycore.internal.sdkResponses.**
-keep class com.idenfy.idenfysdk.idenfycore.internal.sdkResponses.** { *; }
-keepclassmembers class com.idenfy.idenfysdk.idenfycore.internal.sdkResponses.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfysdk.idenfycore.networking.models.**
-keep class com.idenfy.idenfysdk.idenfycore.networking.models.** { *; }
-keepclassmembers class com.idenfy.idenfysdk.idenfycore.networking.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.features.confirmation.ui.state.**
-keep class com.idenfy.idenfySdk.features.confirmation.ui.state.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.features.confirmation.ui.state.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.faceauthentication.api.**
-keep class com.idenfy.idenfySdk.faceauthentication.api.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.faceauthentication.api.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.faceauthentication.domain.models.**
-keep class com.idenfy.idenfySdk.faceauthentication.api.domain.models.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.faceauthentication.api.domain.models.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.features.confirmation.consts.**
-keep class com.idenfy.idenfySdk.features.confirmation.consts.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.features.confirmation.consts.** { *; }
-keepnames @kotlin.Metadata class biz.smartengines.**
-keep class biz.smartengines.** { *; }
-keepclassmembers class biz.smartengines.** { *; }
-keepnames @kotlin.Metadata class com.smartengines.common.**
-keep class com.smartengines.common.** { *; }
-keepclassmembers class com.smartengines.common.** { *; }
-keepnames @kotlin.Metadata class com.smartengines.id.**
-keep class com.smartengines.id.** { *; }
-keepclassmembers class com.smartengines.id.** { *; }
-keepclasseswithmembernames class * {
native <methods>;
}
-keep class biz.smartengines.smartid.swig.* {
public <methods>;
}
-keep class com.smartengines.common.* {
public <methods>;
}
-keep class com.smartengines.id.* {
public <methods>;
}
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.nfcreading.domain.usecases.NFCReadingUseCase
-keep class com.idenfy.idenfySdk.nfcreading.domain.usecases.NFCReadingUseCase { *; }
-keepclassmembers class com.idenfy.idenfySdk.nfcreading.domain.usecases.NFCReadingUseCase { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.di.NFCDIProvider
-keep class com.idenfy.idenfySdk.di.NFCDIProvider { *; }
-keepclassmembers class com.idenfy.idenfySdk.di.NFCDIProvider { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.di.NFCDIProviderInjector
-keep class com.idenfy.idenfySdk.di.NFCDIProviderInjector { *; }
-keepclassmembers class com.idenfy.idenfySdk.di.NFCDIProviderInjector { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.logging.domain.IdenfyInternalLoggingHandlerUseCase
-keep class com.idenfy.idenfySdk.logging.domain.IdenfyInternalLoggingHandlerUseCase { *; }
-keepclassmembers class com.idenfy.idenfySdk.logging.domain.IdenfyInternalLoggingHandlerUseCase { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.nfcreading.domain.models.NFCReadingKeyValuesModel
-keep class com.idenfy.idenfySdk.nfcreading.domain.models.NFCReadingKeyValuesModel { *; }
-keepclassmembers class com.idenfy.idenfySdk.nfcreading.domain.models.NFCReadingKeyValuesModel { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.nfcreading.ui.uiviewmodel.**
-keep class com.idenfy.idenfySdk.nfcreading.ui.uiviewmodel.** { *; }
-keepclassmembers class com.idenfy.idenfySdk.nfcreading.ui.uiviewmodel.** { *; }
-keepnames @kotlin.Metadata class com.idenfy.idenfySdk.nfcreading.utils.ConstsNFCReading
-keep class com.idenfy.idenfySdk.nfcreading.utils.ConstsNFCReading { *; }
-keepclassmembers class com.idenfy.idenfySdk.nfcreading.utils.ConstsNFCReading { *; }
-keep public class androidx.compose.*.**{*;}
#IDLive
-keep class net.idrnd.** { *; }
#ML Kit
-ignorewarnings
-keepattributes *Annotation*
-keepattributes Exceptions
-keepattributes SourceFile,LineNumberTable
-keep class com.huawei.hianalytics.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}
#Tensorflow
-keep class org.tensorflow.lite.annotations.UsedByReflection
-keep @org.tensorflow.lite.annotations.UsedByReflection class *
-keepclassmembers class * {
@org.tensorflow.lite.annotations.UsedByReflection *;
}
# TensorFlow Lite rules
-keep class org.tensorflow.** { *; }
-dontwarn org.tensorflow.**
# TFLite Support Library
-keep class org.tensorflow.lite.support.** { *; }
-dontwarn org.tensorflow.lite.support.**
# Prevent stripping TensorFlow Lite delegate classes if using GPU or NNAPI delegates
-keep class org.tensorflow.lite.gpu.** { *; }
-keep class org.tensorflow.lite.nnapi.** { *; }