@getyoti/yoti-doc-scan-react-native 2.0.1 → 3.0.0
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
CHANGED
|
@@ -11,13 +11,13 @@ To integrate with Yoti IDV, a working infrastructure is needed (see [developers.
|
|
|
11
11
|
|
|
12
12
|
## Requirements
|
|
13
13
|
- [Android SDK 3+](https://github.com/getyoti/yoti-doc-scan-android/releases)
|
|
14
|
-
- [iOS SDK
|
|
14
|
+
- [iOS SDK 5+](https://github.com/getyoti/yoti-doc-scan-ios/releases)
|
|
15
15
|
|
|
16
16
|
## Integration
|
|
17
17
|
Start your integration by adding the following dependency to your `package.json` file:
|
|
18
18
|
```json
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@getyoti/yoti-doc-scan-react-native": "^
|
|
20
|
+
"@getyoti/yoti-doc-scan-react-native": "^3.0.0"
|
|
21
21
|
}
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -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.3.0"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
allprojects {
|
|
@@ -70,6 +70,8 @@ target 'TargetName' do
|
|
|
70
70
|
use_react_native!(:path => config[:reactNativePath])
|
|
71
71
|
use_frameworks!
|
|
72
72
|
use_native_modules!
|
|
73
|
+
pod 'YotiDocumentScan' // Include if `YotiSDKIdentityDocument` is included and to support identity document OCR
|
|
74
|
+
pod 'YotiNFC' // Include if `YotiSDKIdentityDocument` is included and to support identity document NFC
|
|
73
75
|
pod 'YotiSDKIdentityDocument' // Optional
|
|
74
76
|
pod 'YotiSDKSupplementaryDocument' // Optional
|
|
75
77
|
pod 'YotiSDKFaceTec' // Optional
|
|
@@ -78,7 +80,7 @@ end
|
|
|
78
80
|
```
|
|
79
81
|
In addition, you should add [`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription) to your `Info.plist`.
|
|
80
82
|
|
|
81
|
-
And if you have included `
|
|
83
|
+
And if you have included `YotiNFC` in your target, make sure to also:
|
|
82
84
|
- Add [`NFCReaderUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nfcreaderusagedescription) to your `Info.plist`
|
|
83
85
|
- Add [`com.apple.developer.nfc.readersession.iso7816.select-identifiers`](https://developer.apple.com/documentation/bundleresources/information_property_list/select-identifiers) to your `Info.plist` and include [`A0000002471001`](https://www.icao.int/publications/Documents/9303_p10_cons_en.pdf) as an application identifier for your app to support
|
|
84
86
|
- Turn on [`Near Field Communication Tag Reading`](https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app) under the Signing & Capabilities tab for your project’s target
|
|
@@ -134,11 +136,12 @@ Code | Description
|
|
|
134
136
|
2000 | Unauthorised request (wrong or expired session token)
|
|
135
137
|
2001 | Session not found
|
|
136
138
|
2002 | Session expired
|
|
137
|
-
2003 | SDK launched without session
|
|
138
|
-
2004 | SDK launched without session
|
|
139
|
+
2003 | SDK launched without a session token
|
|
140
|
+
2004 | SDK launched without a session id
|
|
139
141
|
3000 | Yoti's services are down or unable to process the request
|
|
140
142
|
3001 | An error occurred during a network request
|
|
141
143
|
3002 | The user did not have a network connection
|
|
144
|
+
3003 | A network request timed out
|
|
142
145
|
4000 | The user did not grant permission to the camera
|
|
143
146
|
4001 | The user submitted a wrong document
|
|
144
147
|
5000 | The user's camera was not found and file upload is not allowed
|
package/android/build.gradle
CHANGED
|
@@ -5,14 +5,13 @@ def safeExtGet(prop, fallback) {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
android {
|
|
8
|
-
|
|
9
|
-
buildToolsVersion safeExtGet('buildToolsVersion', '29.0.3')
|
|
8
|
+
compileSdk safeExtGet('compileSdkVersion', 33)
|
|
10
9
|
|
|
11
10
|
defaultConfig {
|
|
12
11
|
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
13
|
-
targetSdkVersion safeExtGet('targetSdkVersion',
|
|
14
|
-
versionCode
|
|
15
|
-
versionName "
|
|
12
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 33)
|
|
13
|
+
versionCode 300
|
|
14
|
+
versionName "3.0.0"
|
|
16
15
|
ndk {
|
|
17
16
|
abiFilters "armeabi-v7a", "x86"
|
|
18
17
|
}
|
|
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|
|
3
3
|
distributionPath=wrapper/dists
|
|
4
4
|
zipStoreBase=GRADLE_USER_HOME
|
|
5
5
|
zipStorePath=wrapper/dists
|
|
6
|
-
distributionUrl=https\://services.gradle.org/distributions/gradle-
|
|
6
|
+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
|
package/ios/RNYotiDocScan.m
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
#import "RNYotiDocScan.h"
|
|
2
2
|
#import <React/RCTUtils.h>
|
|
3
|
-
#import <YotiSDKNetwork/YotiSDKNetwork-Swift.h>
|
|
4
|
-
#import <YotiSDKCommon/YotiSDKCommon-Swift.h>
|
|
5
3
|
#import <YotiSDKCore/YotiSDKCore-Swift.h>
|
|
6
4
|
#if __has_include(<YotiSDKIdentityDocument/YotiSDKIdentityDocument-Swift.h>)
|
|
7
5
|
#import <YotiSDKIdentityDocument/YotiSDKIdentityDocument-Swift.h>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
archiveVersion = 1;
|
|
4
4
|
classes = {
|
|
5
5
|
};
|
|
6
|
-
objectVersion =
|
|
6
|
+
objectVersion = 54;
|
|
7
7
|
objects = {
|
|
8
8
|
|
|
9
9
|
/* Begin PBXBuildFile section */
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
149
149
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
150
150
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
151
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
151
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
152
152
|
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
153
153
|
MTL_FAST_MATH = YES;
|
|
154
154
|
ONLY_ACTIVE_ARCH = YES;
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
202
202
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
203
203
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
204
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
204
|
+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
|
|
205
205
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
206
206
|
MTL_FAST_MATH = YES;
|
|
207
207
|
SDKROOT = iphoneos;
|
package/package.json
CHANGED
|
@@ -3,18 +3,25 @@ require "json"
|
|
|
3
3
|
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
4
|
|
|
5
5
|
Pod::Spec.new do |spec|
|
|
6
|
-
spec.name
|
|
7
|
-
spec.summary
|
|
8
|
-
spec.homepage
|
|
9
|
-
spec.license
|
|
10
|
-
spec.author
|
|
11
|
-
spec.version
|
|
12
|
-
spec.pod_target_xcconfig
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
spec.name = "yoti-doc-scan-react-native"
|
|
7
|
+
spec.summary = package["description"]
|
|
8
|
+
spec.homepage = package["homepage"]
|
|
9
|
+
spec.license = package["license"]
|
|
10
|
+
spec.author = package["author"]
|
|
11
|
+
spec.version = package["version"]
|
|
12
|
+
spec.pod_target_xcconfig = {
|
|
13
|
+
"FRAMEWORK_SEARCH_PATHS" => [
|
|
14
|
+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/YotiSDKIdentityDocument",
|
|
15
|
+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/YotiSDKSupplementaryDocument",
|
|
16
|
+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/YotiSDKFaceTec",
|
|
17
|
+
"${PODS_XCFRAMEWORKS_BUILD_DIR}/YotiSDKFaceCapture"
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
spec.source = {
|
|
21
|
+
:git => "https://github.com/getyoti/yoti-doc-scan-react-native.git", :tag => "#{spec.version}"
|
|
22
|
+
}
|
|
23
|
+
spec.source_files = "ios/**/*.{h,m}"
|
|
24
|
+
spec.platform = :ios, "11.0"
|
|
25
|
+
spec.dependency "React"
|
|
26
|
+
spec.dependency "YotiSDKCore"
|
|
20
27
|
end
|