Skip to content

Commit 4ffb55e

Browse files
authored
Merge pull request #26 from getyoti/DEP-326
[TASK][DEP-326] Support v2.9.2 of the Android YDS SDK
2 parents 7aee039 + 0d0101c commit 4ffb55e

File tree

7 files changed

+32
-18
lines changed

7 files changed

+32
-18
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ If you're using CocoaPods, navigate to your `ios` and update your `Podfile`:
3434

3535
```diff
3636
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
37-
+ `pod 'react-native-yoti-doc-scan', :path => '../node_modules/react-native-yoti-doc-scan/react-native-yoti-doc-scan.podspec'`
37+
+ `pod 'react-native-yoti-doc-scan', :path => '../node_modules/@getyoti/react-native-yoti-doc-scan/react-native-yoti-doc-scan.podspec'`
3838
end
3939
```
4040

@@ -123,13 +123,21 @@ android {
123123
124124
```
125125

126+
> Running out of memory `space: java.lang.OutOfMemoryError: Java heap space`
127+
128+
Resolve by increasing the daemon memory settings in your `gradle.properties` file:
129+
130+
```groovy
131+
org.gradle.jvmargs=-Xmx4608m
132+
```
133+
126134
# Usage
127135

128136
The SDK exposes a single method, `startSession()`, which handles communication between your app and the Yoti app on a user's device.
129137

130138
Import the SDK with:
131139
```javascript
132-
import YotiDocScan from '@getyoti/react-native-yoti-doc-scan;
140+
import YotiDocScan from '@getyoti/react-native-yoti-doc-scan';
133141
```
134142

135143
Call the `startSession` method with your session ID and client session token.
@@ -204,8 +212,7 @@ Add the following to your settings.gradle file as a new entry before the last li
204212

205213
```groovy
206214
include ':react-native-yoti-doc-scan'
207-
project(':react-native-yoti-doc-scan').projectDir = new
208-
File(rootProject.projectDir, '../node_modules/react-native-yoti-doc-scan/src/android')
215+
project(':react-native-yoti-doc-scan').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-yoti-doc-scan/src/android')
209216
210217
include ':app'
211218
```

android/build.gradle

Lines changed: 6 additions & 6 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 197
15-
versionName "1.13.1"
14+
versionCode 198
15+
versionName "1.13.2"
1616
ndk {
1717
abiFilters "armeabi-v7a", "x86"
1818
}
@@ -38,10 +38,10 @@ android {
3838
dependencies {
3939
//noinspection GradleDynamicVersion
4040
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
41-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:2.9.1'
42-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:2.9.1'
43-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:2.9.1'
44-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:2.9.1'
41+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:2.9.2'
42+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:2.9.2'
43+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:2.9.2'
44+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:2.9.2'
4545
}
4646

4747
allprojects {

example/android/app/build.gradle

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ android {
192192

193193
dependencies {
194194
implementation fileTree(dir: "libs", include: ["*.jar"])
195-
implementation "com.facebook.react:react-native:+" // From node_modules
195+
implementation "com.facebook.react:react-native:0.68.5" // From node_modules
196196

197197
if (enableHermes) {
198198
def hermesPath = "../../node_modules/hermes-engine/android/";
@@ -211,3 +211,10 @@ task copyDownloadableDepsToLibs(type: Copy) {
211211
}
212212

213213
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
214+
215+
configurations.all {
216+
resolutionStrategy {
217+
force 'androidx.core:core:1.6.0'
218+
force 'androidx.core:core-ktx:1.6.0'
219+
}
220+
}
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.3-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

example/ios/example.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@
922922
INFOPLIST_FILE = example/Info.plist;
923923
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
924924
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
925-
MARKETING_VERSION = 1.13.1;
925+
MARKETING_VERSION = 1.13.2;
926926
OTHER_LDFLAGS = (
927927
"$(inherited)",
928928
"-ObjC",
@@ -952,7 +952,7 @@
952952
INFOPLIST_FILE = example/Info.plist;
953953
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
954954
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
955-
MARKETING_VERSION = 1.13.1;
955+
MARKETING_VERSION = 1.13.2;
956956
OTHER_LDFLAGS = (
957957
"$(inherited)",
958958
"-ObjC",

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example",
3-
"version": "1.13.1",
3+
"version": "1.13.2",
44
"private": true,
55
"scripts": {
66
"android": "react-native run-android",
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"react": "16.9.0",
14-
"react-native": "0.68.2",
14+
"react-native": "0.68.5",
1515
"@getyoti/react-native-yoti-doc-scan": "file:.."
1616
},
1717
"devDependencies": {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@getyoti/react-native-yoti-doc-scan",
3-
"version": "1.13.1",
3+
"version": "1.13.2",
44
"description": "Yoti Doc Scan for React Native",
55
"main": "YotiDocScan.js",
66
"license": "SEE LICENSE IN LICENSE",
@@ -18,7 +18,7 @@
1818
"react": "^16.7.0",
1919
"react-dom": "^16.7.0",
2020
"react-hot-loader": "^4.12.20",
21-
"react-native": "^0.68.2"
21+
"react-native": "^0.68.5"
2222
},
2323
"dependencies": {
2424
"keymirror": "^0.1.1",

0 commit comments

Comments
 (0)