-
Notifications
You must be signed in to change notification settings - Fork 0
/
proguard-rules.pro
153 lines (124 loc) · 5.63 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
# 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
-verbose
# -libraryjars ../app/libs
# -dontpreverify
# -dontobfuscate
# -dontshrink
# -dontoptimize
-keepattributes LineNumberTable,SourceFile
# keep class BuildConfig
-keep public class **.BuildConfig { *; }
# keep class members of R
-keepclassmembers class **.R$* {public static <fields>;}
# keep all public and protected method names,
# which could be used by Java reflection.
-keepclassmembernames class * {
public protected <methods>;
}
#android X
-dontwarn com.google.android.material.**
-keep class com.google.android.material.** { *; }
-dontwarn androidx.**
-keep class androidx.** { *; }
-keep interface androidx.** { *; }
# Class names are needed in reflection
-keepnames class com.amazonaws.**
-keepnames class com.amazon.**
# Request handlers defined in request.handlers
-keep class com.amazonaws.services.**.*Handler
# The following are referenced but aren't required to run
-dontwarn com.fasterxml.jackson.**
-dontwarn org.apache.commons.logging.**
-dontwarn com.amazonaws.mobile.auth.**
-dontwarn com.amazonaws.mobileconnectors.**
# Android 6.0 release removes support for the Apache HTTP client
-dontwarn org.apache.http.**
# The SDK has several references of Apache HTTP client
-dontwarn com.amazonaws.http.**
-dontwarn com.amazonaws.metrics.**
# Class names needed for Veryfi Lens
-keep class org.opencv.android.**
-keep class org.apache.harmony.**
#room
-keep class * extends androidx.room.RoomDatabase
-keep @androidx.room.Entity class *
-dontwarn androidx.room.paging.**
-keep class com.veryfi.lens.VeryfiLens
-keep interface com.veryfi.lens.VeryfiLensDelegate
-keep class com.veryfi.lens.helpers.VeryfiLensSettings
-keep class com.veryfi.lens.helpers.DocumentType
-keep class com.veryfi.lens.helpers.VeryfiLensCredentials
-keep enum com.veryfi.lens.helpers.VeryfiLensSettings$ExtractionEngine
-keep class com.veryfi.lens.helpers.ExportLogsHelper
-keep class com.veryfi.lens.VeryfiLens {public *;}
-keep interface com.veryfi.lens.VeryfiLensDelegate {public *;}
-keep class com.veryfi.lens.helpers.VeryfiLensSettings {public *;}
-keepclassmembers class com.veryfi.lens.helpers.VeryfiLensSettings { *; }
-keep class com.veryfi.lens.helpers.DocumentType {public *;}
-keepclassmembers class com.veryfi.lens.helpers.DocumentType { *; }
-keep class com.veryfi.lens.helpers.VeryfiLensCredentials {public *;}
-keepclassmembers class com.veryfi.lens.helpers.VeryfiLensCredentials { *; }
-keep class com.veryfi.lens.helpers.ExportLogsHelper {public *;}
-keepclassmembers class com.veryfi.lens.helpers.ExportLogsHelper { *; }
-keep class com.veryfi.lens.helpers.VeryfiLensSettings {public *;}
-keepclassmembers class com.veryfi.lens.helpers.VeryfiLensSettings { *; }
-keep class com.veryfi.lens.helpers.VeryfiLensSettings {public *;}
-keepclassmembers class com.veryfi.lens.helpers.VeryfiLensSettings { *; }
-keep class com.veryfi.lens.helpers.models.Category {public *;}
-keepclassmembers class com.veryfi.lens.helpers.models.Category { *; }
-keep class com.veryfi.lens.helpers.models.CustomerProject {public *;}
-keepclassmembers class com.veryfi.lens.helpers.models.CustomerProject { *; }
-keep class com.veryfi.lens.helpers.models.Job {public *;}
-keepclassmembers class com.veryfi.lens.helpers.models.Job { *; }
-keep class com.veryfi.lens.helpers.models.Tag {public *;}
-keepclassmembers class com.veryfi.lens.helpers.models.Tag { *; }
-keep class com.veryfi.lens.helpers.models.DocumentInformation {public *;}
-keepclassmembers class com.veryfi.lens.helpers.models.DocumentInformation { *; }
-keep class com.veryfi.lens.helpers.UploadingProcessHelper {public *;}
-keepclassmembers class com.veryfi.lens.helpers.UploadingProcessHelper { *; }
-keep class com.veryfi.lens.service.UploadDocumentsService {public *;}
-keep class com.veryfi.lens.service.UploadDocumentsService$Companion { *; }
-keepclassmembers class com.veryfi.lens.service.UploadDocumentsService {
public static ** Companion;
}
-keep enum com.veryfi.lens.helpers.PackageUploadEvent$UploadEventType
-keep class com.veryfi.lens.helpers.PackageUploadEvent {public *;}
-keepclassmembers class com.veryfi.lens.helpers.PackageUploadEvent { *; }
-keepclassmembers class com.veryfi.lens.helpers.PackageUploadEvent {
public static ** Companion;
}
-keep class com.veryfi.lens.helpers.database.ProcessData {public *;}
-keepclassmembers class com.veryfi.lens.helpers.database.ProcessData { *; }
-keep class com.veryfi.lens.cpp.ExportLogsCpp
-keep class com.veryfi.lens.cpp.ExportLogsCpp {public *;}
-keepclassmembers class com.veryfi.lens.cpp.ExportLogsCpp { *; }
# eventbus
-keepattributes *Annotation*
-keepclassmembers class ** {
@org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }
#gson
-keep class com.google.** { *; }
-keepattributes *Annotation*
-keepattributes Signature
-keepclassmembers enum * { public static **[] values(); public static ** valueOf(java.lang.String); }
-keepclassmembers enum * { *; }
-keep class androidx.databinding.** { *; }