Skip to content

Commit 72ecd50

Browse files
Bump up Yoti SDK libraries to 2.5.0 & Doc. update
Related to DEP-181
1 parent 68fea3a commit 72ecd50

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
3+
## [2.5.0] - 2020-11-19
4+
### Added
5+
- Biometric consent request: Integrators will now be able to ask for the biometric consent before liveness check.
6+
- YotiSDK Activity request code customisation.
7+
- Canada Service setup.
8+
39
## [2.4.0] - 2020-09-23
410
### Added
511
- Supplementary documents functionality: Integrators will now be able to verify the user's address by supplementary documents module integration.

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ Add modules you require to your build.gradle:
5252
```groovy
5353
dependencies {
5454
//If you need document capture
55-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:2.4.0'
55+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:2.5.0'
5656
5757
//If you need supplementary documents
58-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:2.4.0'
58+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:2.5.0'
5959
6060
//If you need liveness
61-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:2.4.0'
61+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:2.5.0'
6262
}
6363
```
6464

@@ -144,6 +144,13 @@ class MainActivity : AppCompatActivity() {
144144
}
145145
```
146146

147+
By default Activity request code is 9001 and you can handle it in `onActivityResult` by checking `YOTI_SDK_REQUEST_CODE`, but if you prefer to customise it, it is possible by specifying it in the `start` method:
148+
```kotlin
149+
yotiSdk.setSessionId("<Your Session ID>")
150+
.setSessionToken("<Your Session Token>")
151+
.start(this, <MyRequestCode>)
152+
```
153+
147154
## Retrieve status of the session
148155

149156
Once the user completed the flow in the SDK, the user will be redirected to the Activity which started the SDK.

app/build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
applicationId "com.yoti.mobile.android.sdk.yotidocscan.sample"
99
minSdkVersion 21
1010
targetSdkVersion 30
11-
versionCode 1
12-
versionName "1.0"
11+
versionCode 250
12+
versionName "2.5.0"
1313
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1414
}
1515

@@ -40,10 +40,10 @@ dependencies {
4040
implementation fileTree(dir: 'libs', include: ['*.jar'])
4141
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
4242
implementation 'androidx.appcompat:appcompat:1.2.0'
43-
implementation 'androidx.core:core-ktx:1.3.1'
43+
implementation 'androidx.core:core-ktx:1.3.2'
4444

45-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:2.4.0'
46-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:2.4.0'
47-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:2.4.0'
45+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:2.5.0'
46+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:2.5.0'
47+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:2.5.0'
4848

4949
}

app/src/main/java/com/yoti/mobile/android/sdk/yotidocscan/sample/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class MainActivity : AppCompatActivity() {
2727
val success = yotiSdk
2828
.setSessionId(edSessionId.text.toString())
2929
.setClientSessionToken(edTokenId.text.toString())
30-
.start(this)
30+
.start(this) // Custom request code .start(this, 8888)
3131
if (!success) {
3232
showSessionStatus()
3333
}

0 commit comments

Comments
 (0)