@getyoti/yoti-doc-scan-react-native 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/android/build.gradle +2 -2
- package/ios/RNYotiDocScan.m +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Continuing with your integration for Android, add the following property and rep
|
|
|
26
26
|
```groovy
|
|
27
27
|
buildscript {
|
|
28
28
|
ext {
|
|
29
|
-
yotiSdkVersion = "3.
|
|
29
|
+
yotiSdkVersion = "3.4.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
allprojects {
|
|
@@ -40,11 +40,16 @@ allprojects {
|
|
|
40
40
|
Now add any of these optional dependencies to your app's [`build.gradle`](https://developer.android.com/build#build-files) file:
|
|
41
41
|
```groovy
|
|
42
42
|
dependencies {
|
|
43
|
+
// With automatic capture via OCR and NFC capture
|
|
43
44
|
implementation "com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:${rootProject.ext.yotiSdkVersion}"
|
|
45
|
+
// With manual capture only, no OCR, no NFC - around 14Mb smaller in size
|
|
46
|
+
implementation "com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-slim:${rootProject.ext.yotiSdkVersion}"
|
|
44
47
|
implementation "com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:${rootProject.ext.yotiSdkVersion}"
|
|
45
48
|
implementation "com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:${rootProject.ext.yotiSdkVersion}"
|
|
46
|
-
|
|
47
|
-
implementation "com.yoti.mobile.android.sdk:yoti-sdk-facecapture
|
|
49
|
+
// With embedded AI model
|
|
50
|
+
implementation "com.yoti.mobile.android.sdk:yoti-sdk-facecapture:${rootProject.ext.yotiSdkVersion}"
|
|
51
|
+
// Without embedded AI model - around 20 MB smaller in size
|
|
52
|
+
implementation "com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:${rootProject.ext.yotiSdkVersion}"
|
|
48
53
|
}
|
|
49
54
|
```
|
|
50
55
|
If you're using Proguard or another obfuscation tool, you should also add the following configuration rules to your `proguard-rules.pro` file:
|
|
@@ -105,7 +110,7 @@ RNYotiDocScan.startSession(id, token, successCallback, errorCallback);
|
|
|
105
110
|
### 3. Customizations
|
|
106
111
|
On iOS, you can set the primary color using the following API:
|
|
107
112
|
```javascript
|
|
108
|
-
RNYotiDocScan.setPrimaryColorRGB(0, 0, 0); // default: (
|
|
113
|
+
RNYotiDocScan.setPrimaryColorRGB(0, 0, 0); // default: (40, 117, 188)
|
|
109
114
|
```
|
|
110
115
|
To customize the colors on Android, please refer to its separate [documentation](https://github.com/getyoti/yoti-doc-scan-android#colours).
|
|
111
116
|
|
package/android/build.gradle
CHANGED
|
@@ -10,8 +10,8 @@ android {
|
|
|
10
10
|
defaultConfig {
|
|
11
11
|
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
12
12
|
targetSdkVersion safeExtGet('targetSdkVersion', 33)
|
|
13
|
-
versionCode
|
|
14
|
-
versionName "3.0.
|
|
13
|
+
versionCode 301
|
|
14
|
+
versionName "3.0.1"
|
|
15
15
|
ndk {
|
|
16
16
|
abiFilters "armeabi-v7a", "x86"
|
|
17
17
|
}
|
package/ios/RNYotiDocScan.m
CHANGED
|
@@ -102,7 +102,7 @@ RCT_EXPORT_METHOD(startSession:(NSString *)sessionId clientSessionToken:(NSStrin
|
|
|
102
102
|
if (_primaryColor != nil) {
|
|
103
103
|
return _primaryColor;
|
|
104
104
|
} else {
|
|
105
|
-
return [UIColor colorWithRed:
|
|
105
|
+
return [UIColor colorWithRed:40.0/255.0 green:117.0/255.0 blue:188.0/255.0 alpha:1.0];
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|