Skip to content

Commit d2361d2

Browse files
Merge pull request #39 from getyoti/release/DEP-459-3.0.0
[Task] DEP-459: RN 3.0.0
2 parents ba5a743 + 295ee4e commit d2361d2

File tree

13 files changed

+33
-33
lines changed

13 files changed

+33
-33
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: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ def safeExtGet(prop, fallback) {
55
}
66

77
android {
8-
compileSdkVersion safeExtGet('compileSdkVersion', 29)
9-
buildToolsVersion safeExtGet('buildToolsVersion', '29.0.3')
8+
compileSdk safeExtGet('compileSdkVersion', 33)
109

1110
defaultConfig {
1211
minSdkVersion safeExtGet('minSdkVersion', 21)
13-
targetSdkVersion safeExtGet('targetSdkVersion', 29)
14-
versionCode 206
15-
versionName "2.0.2"
12+
targetSdkVersion safeExtGet('targetSdkVersion', 33)
13+
versionCode 300
14+
versionName "3.0.0"
1615
ndk {
1716
abiFilters "armeabi-v7a", "x86"
1817
}

android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip

example/android/app/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ dependencies {
9393
}
9494

9595
task copyDownloadableDepsToLibs(type: Copy) {
96-
from configurations.compile
96+
from configurations.implementation
9797
into 'libs'
9898
}
9999

100100
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
101101

102102
configurations.all {
103103
resolutionStrategy {
104-
force 'androidx.core:core:1.6.0'
105-
force 'androidx.core:core-ktx:1.6.0'
104+
force 'androidx.core:core:1.8.0'
105+
force 'androidx.core:core-ktx:1.8.0'
106106
}
107107
}

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<activity
1212
android:name=".MainActivity"
1313
android:label="@string/app_name"
14+
android:exported="true"
1415
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
1516
android:windowSoftInputMode="adjustResize">
1617
<intent-filter>

example/android/build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
buildscript {
22
ext {
3-
buildToolsVersion = "29.0.3"
43
minSdkVersion = 21
5-
compileSdkVersion = 29
6-
targetSdkVersion = 29
7-
yotiSdkVersion = "3.2.2"
4+
compileSdkVersion = 33
5+
targetSdkVersion = 33
6+
yotiSdkVersion = "3.3.0"
87
}
98
repositories {
109
google()
1110
jcenter()
1211
}
1312
dependencies {
14-
classpath("com.android.tools.build:gradle:3.6.2")
13+
classpath('com.android.tools.build:gradle:7.4.2')
1514
}
1615
}
1716

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

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>

0 commit comments

Comments
 (0)