Skip to content

Commit 3d28fab

Browse files
committed
DEP-459: Updates
1 parent ba5a743 commit 3d28fab

File tree

9 files changed

+22
-21
lines changed

9 files changed

+22
-21
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ To integrate with Yoti IDV, a working infrastructure is needed (see [developers.
1111

1212
## Requirements
1313
- [Android SDK 3+](https://github.com/getyoti/yoti-doc-scan-android/releases)
14-
- [iOS SDK 4+](https://github.com/getyoti/yoti-doc-scan-ios/releases)
14+
- [iOS SDK 5+](https://github.com/getyoti/yoti-doc-scan-ios/releases)
1515

1616
## Integration
1717
Start your integration by adding the following dependency to your `package.json` file:
1818
```json
1919
"dependencies": {
20-
"@getyoti/yoti-doc-scan-react-native": "^2.0.2"
20+
"@getyoti/yoti-doc-scan-react-native": "^3.0.0"
2121
}
2222
```
2323

@@ -26,7 +26,7 @@ Continuing with your integration for Android, add the following property and rep
2626
```groovy
2727
buildscript {
2828
ext {
29-
yotiSdkVersion = "3.2.2"
29+
yotiSdkVersion = "3.3.0"
3030
}
3131
}
3232
allprojects {
@@ -70,6 +70,8 @@ target 'TargetName' do
7070
use_react_native!(:path => config[:reactNativePath])
7171
use_frameworks!
7272
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
7375
pod 'YotiSDKIdentityDocument' // Optional
7476
pod 'YotiSDKSupplementaryDocument' // Optional
7577
pod 'YotiSDKFaceTec' // Optional
@@ -78,7 +80,7 @@ end
7880
```
7981
In addition, you should add [`NSCameraUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nscamerausagedescription) to your `Info.plist`.
8082
81-
And if you have included `YotiSDKIdentityDocument` in your target, make sure to also:
83+
And if you have included `YotiNFC` in your target, make sure to also:
8284
- Add [`NFCReaderUsageDescription`](https://developer.apple.com/documentation/bundleresources/information_property_list/nfcreaderusagedescription) to your `Info.plist`
8385
- 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
8486
- 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
134136
2000 | Unauthorised request (wrong or expired session token)
135137
2001 | Session not found
136138
2002 | Session expired
137-
2003 | SDK launched without session Token
138-
2004 | SDK launched without session ID
139+
2003 | SDK launched without a session token
140+
2004 | SDK launched without a session id
139141
3000 | Yoti's services are down or unable to process the request
140142
3001 | An error occurred during a network request
141143
3002 | The user did not have a network connection
144+
3003 | A network request timed out
142145
4000 | The user did not grant permission to the camera
143146
4001 | The user submitted a wrong document
144147
5000 | The user's camera was not found and file upload is not allowed

android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ android {
1111
defaultConfig {
1212
minSdkVersion safeExtGet('minSdkVersion', 21)
1313
targetSdkVersion safeExtGet('targetSdkVersion', 29)
14-
versionCode 206
15-
versionName "2.0.2"
14+
versionCode 300
15+
versionName "3.0.0"
1616
ndk {
1717
abiFilters "armeabi-v7a", "x86"
1818
}

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
minSdkVersion = 21
55
compileSdkVersion = 29
66
targetSdkVersion = 29
7-
yotiSdkVersion = "3.2.2"
7+
yotiSdkVersion = "3.3.0"
88
}
99
repositories {
1010
google()

example/ios/Demo.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
206206
HEADER_SEARCH_PATHS = "$(inherited)";
207207
INFOPLIST_FILE = Demo/Info.plist;
208-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
208+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
209209
LD_RUNPATH_SEARCH_PATHS = (
210210
"$(inherited)",
211211
"@executable_path/Frameworks",
@@ -241,7 +241,7 @@
241241
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
242242
HEADER_SEARCH_PATHS = "$(inherited)";
243243
INFOPLIST_FILE = Demo/Info.plist;
244-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
244+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
245245
LD_RUNPATH_SEARCH_PATHS = (
246246
"$(inherited)",
247247
"@executable_path/Frameworks",
@@ -312,7 +312,7 @@
312312
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
313313
GCC_WARN_UNUSED_FUNCTION = YES;
314314
GCC_WARN_UNUSED_VARIABLE = YES;
315-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
315+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
316316
MTL_ENABLE_DEBUG_INFO = YES;
317317
ONLY_ACTIVE_ARCH = YES;
318318
SDKROOT = iphoneos;
@@ -360,7 +360,7 @@
360360
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
361361
GCC_WARN_UNUSED_FUNCTION = YES;
362362
GCC_WARN_UNUSED_VARIABLE = YES;
363-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
363+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
364364
MTL_ENABLE_DEBUG_INFO = NO;
365365
SDKROOT = iphoneos;
366366
VALIDATE_PRODUCT = YES;

example/ios/Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ target 'Demo' do
88
use_react_native!(:path => config[:reactNativePath])
99
use_frameworks!
1010
use_native_modules!
11+
pod 'YotiDocumentScan'
12+
pod 'YotiNFC'
1113
pod 'YotiSDKIdentityDocument'
1214
pod 'YotiSDKFaceTec'
1315
end

ios/RNYotiDocScan.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#import "RNYotiDocScan.h"
22
#import <React/RCTUtils.h>
3-
#import <YotiSDKNetwork/YotiSDKNetwork-Swift.h>
4-
#import <YotiSDKCommon/YotiSDKCommon-Swift.h>
53
#import <YotiSDKCore/YotiSDKCore-Swift.h>
64
#if __has_include(<YotiSDKIdentityDocument/YotiSDKIdentityDocument-Swift.h>)
75
#import <YotiSDKIdentityDocument/YotiSDKIdentityDocument-Swift.h>

ios/RNYotiDocScan.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 53;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -148,7 +148,7 @@
148148
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
149149
GCC_WARN_UNUSED_FUNCTION = YES;
150150
GCC_WARN_UNUSED_VARIABLE = YES;
151-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
151+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
152152
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
153153
MTL_FAST_MATH = YES;
154154
ONLY_ACTIVE_ARCH = YES;
@@ -201,7 +201,7 @@
201201
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
202202
GCC_WARN_UNUSED_FUNCTION = YES;
203203
GCC_WARN_UNUSED_VARIABLE = YES;
204-
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
204+
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
205205
MTL_ENABLE_DEBUG_INFO = NO;
206206
MTL_FAST_MATH = YES;
207207
SDKROOT = iphoneos;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "https://www.yoti.com/terms/identity-verification",
66
"author": "Yoti Ltd",
77
"main": "RNYotiDocScan.js",
8-
"version": "2.0.2",
8+
"version": "3.0.0",
99
"devDependencies": {
1010
"react": "^17.0.2",
1111
"react-dom": "^17.0.2",

yoti-doc-scan-react-native.podspec

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,5 @@ Pod::Spec.new do |spec|
2323
spec.source_files = "ios/**/*.{h,m}"
2424
spec.platform = :ios, "11.0"
2525
spec.dependency "React"
26-
spec.dependency "YotiSDKNetwork"
27-
spec.dependency "YotiSDKCommon"
2826
spec.dependency "YotiSDKCore"
2927
end

0 commit comments

Comments
 (0)