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
As you can see above, there are two options to add the `facecapture` module to your app:
75
+
As you can see above, there are two options to add the `doc-scan` module to your app:
76
+
-`yoti-sdk-doc-scan` standard ID doc capture flow which uses automatic document capture via OCR and NFC capture for NFC-chip supported documents such as passports
77
+
-`yoti-sdk-doc-scan-slim` ID doc capture flow with a reduced feature set, using manual capture without OCR and NFC support. This results in a significantly smaller APK and install size.
78
+
79
+
There are also two options to add the `facecapture` module to your app:
74
80
-`yoti-sdk-facecapture` embeds an AI model for face detection.
75
81
-`yoti-sdk-facecapture-unbundled` will manage the download of the AI model via Google Play Services the first time you start using the AI model and thus is ~20 MB smaller in size. Additionally, you can add the following metadata to your `AndroidManifest.xml` to get the model downloaded as soon as the app is installed:
76
82
```
@@ -113,6 +119,25 @@ And if you're using [Firebase performance gradle Plugin](https://firebase.google
113
119
}
114
120
```
115
121
122
+
To further decrease the size footprint of the SDK, you can also opt to manually exclude some of the educational videos shown in the verification flows:
123
+
-`yds_aadhaar_educational` (~750Kb) - only exclude if you do not support the Indian Aadhaar as a valid ID document type.
124
+
-`yds_nfc_educational` (~440Kb) - only exclude if you do not support NFC-chipped document types such as certain passports. This is already excluded if you are using the
125
+
slim variant of the ID document module (`yoti-sdk-doc-scan-slim`) so no extra action is needed then.
126
+
-`yds_liveness_educational` (~560Kb) - only exclude if you're using the `yoti-sdk-liveness-zoom` dependency.
127
+
128
+
**Note:** It's important to mention that excluding these resources is not recommended and should be only done in case the conditions described above apply to
129
+
your use case. Otherwise, the user experience would be impacted on the related screens which will not be showing anything in place of the missing video resources.
130
+
131
+
To exclude these video resources during build time you have to:
132
+
1. Set `shrinkResources true` for your build type in your app `build.gradle` file. This should already be the case if you're concerned about app size.
133
+
2. Create a `keep.xml` file in your app module's `res/raw` resource directory, where you specify which resources you want to exclude:
For more information on resource shrinking and excluding resources, check out the [official documentation](https://developer.android.com/build/shrink-code#keep-resources).
140
+
116
141
### R8 and Proguard
117
142
118
143
If you are using R8 the shrinking and obfuscation rules are included automatically.
0 commit comments