You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-15Lines changed: 14 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ Further information can be found [here](https://developers.yoti.com/yoti-doc-sca
11
11
## Table of Contents
12
12
-[Requirements](#requirements)
13
13
-[Set up the SDK](#setup-the-sdk)
14
-
-[Proguard](#proguard)
14
+
-[R8 / Proguard](#r8-and-proguard)
15
15
-[Start the SDK](#start-the-sdk)
16
16
-[Retrieve status of the session](#retrieve-status-of-the-session)
17
17
-[Possible status for the session](#possible-status-for-the-session)
@@ -26,7 +26,7 @@ You have setup the Yoti Doc Scan SDK on your backend, you can find the documenta
26
26
27
27
Minimum Android version supported: 21
28
28
29
-
Currently targeting Android version: 29
29
+
Currently targeting Android version: 30
30
30
31
31
Note: we are using libraries from Android Jetpack. If you are still using the original Android Support Libraries you may encounter some issues when trying to use our SDK.
32
32
We strongly recommend you to migrate your app to the new Androidx libraries: https://developer.android.com/jetpack/androidx/migrate
@@ -55,13 +55,16 @@ Add modules you require to your build.gradle:
@@ -109,17 +112,12 @@ And if you're using [Firebase performance gradle Plugin](https://firebase.google
109
112
}
110
113
```
111
114
112
-
### Proguard
113
-
If you are using Proguard, you will need to add the following lines in its configuration file:
115
+
### R8 and Proguard
114
116
115
-
```
116
-
-keep class com.yoti.** { *; }
117
-
-keep class com.microblink.** { *; }
118
-
-keep class com.microblink.**$* { *; }
119
-
-dontwarn com.microblink.**
120
-
-keep class com.facetec.zoom.** { *; }
121
-
-dontwarn javax.annotation.Nullable
122
-
```
117
+
If you are using R8 the shrinking and obfuscation rules are included automatically.
118
+
119
+
ProGuard users must manually add the options from [proguard-rules.pro](https://github.com/getyoti/yoti-doc-scan-android/blob/master/app/proguard-rules.pro).
120
+
You might also need rules for [retrofit](https://github.com/square/retrofit/blob/5c6620/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro), [OkHttp](https://github.com/square/okhttp/blob/a16ec15/okhttp/src/main/resources/META-INF/proguard/okhttp3.pro), [Okio](https://github.com/square/okio/blob/f906821e6/okio/src/jvmMain/resources/META-INF/proguard/okio.pro) and [Gson](https://github.com/google/gson/blob/master/examples/android-proguard-example/proguard.cfg) which are dependencies of this library.
123
121
124
122
## Start the SDK
125
123
@@ -203,6 +201,7 @@ class MainActivity : AppCompatActivity() {
203
201
| 6000 | Document Capture dependency not found error | No |
204
202
| 6001 | Liveness Zoom dependency not found error | No |
205
203
| 6002 | Supplementary document dependency not found error | No |
204
+
| 6003 | Face Capture dependency not found error | No |
0 commit comments