Skip to content

Commit 0ca2ad3

Browse files
authored
Merge pull request #55 from getyoti/DEP-571
[DEP-571] Release 4.0.0
2 parents dc53fff + 83a9ad9 commit 0ca2ad3

File tree

10 files changed

+49
-32
lines changed

10 files changed

+49
-32
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
3+
## [4.0.0] - 2025-03-11
4+
### Changed
5+
- Document processing improvements. This introduces a small breaking change for users of the
6+
`yoti-sdk-doc-scan` module, requiring replacing the "microblink" maven url with the "regulaforensics"
7+
one in your allProjects entry in your root build.gradle file (see README - Setup the SDK). You can
8+
also remove any "microblink"-related proguard rules you have.
9+
- Addressed compatibility issues when building with Android Gradle Plugin 8+
10+
- Various bug fixes and improvements
11+
312
## [3.5.2] - 2024-09-12
413
- Updated internal dependency version
514

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,24 @@ We strongly recommend you to migrate your app to the new Androidx libraries: htt
3333

3434
## Setup the SDK
3535

36-
Make sure you have mavenCentral and microblink repository added in your allProjects entry in your root build.gradle:
36+
Make sure you have the mavenCentral repository added in your allProjects entry in your root build.gradle file. If you are using the `yoti-sdk-doc-scan` module, you will also need to add the regulaforensics repository:
3737

3838
```groovy
3939
allprojects {
4040
repositories {
4141
mavenCentral()
42-
maven { url 'https://maven.microblink.com' }
42+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader" }
4343
maven { url "https://jitpack.io" }
4444
...
4545
}
4646
...
4747
}
4848
```
4949

50+
Note: If instead you are using the `yoti-sdk-doc-scan-slim` module, you do not need to add the regulaforensics repository.
51+
52+
If you are still using Yoti SDK version `3.5.2` or below, please refer to [these instructions](https://github.com/getyoti/yoti-doc-scan-android/blob/v3.5.2/README.md#setup-the-sdk) instead, but keep in mind that support for older versions is not guaranteed and we highly recommend updating to the latest one as soon as possible.
53+
5054
The Yoti SDK is composed of multiple feature modules. Each feature is optional, but you must include at least one to use the SDK.
5155

5256
The modules you include must match those requested by your backend. Attempts to use a module you haven't included will fail at runtime with a [600x response code](#possible-status-for-the-session).
@@ -55,20 +59,20 @@ Add modules you require to your build.gradle:
5559
```groovy
5660
dependencies {
5761
//If you need document capture
58-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:3.5.2'
62+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:4.0.0'
5963
//Or if you want the version without OCR and NFC capture, which is ~15Mb smaller in size
60-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-slim:3.5.2'
64+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-slim:4.0.0'
6165
6266
//If you need supplementary documents
63-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:3.5.2'
67+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:4.0.0'
6468
6569
//If you need liveness
66-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:3.5.2'
70+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:4.0.0'
6771
6872
//If you need selfie capture
69-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:3.5.2'
73+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:4.0.0'
7074
//Or if you want the version without an embedded AI model, which is ~20 MB smaller in size
71-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:3.5.2'
75+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:4.0.0'
7276
}
7377
```
7478

app/build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33

44
android {
5+
namespace "com.yoti.mobile.android.sdk.yotidocscan.sample"
6+
57
compileSdk 33
68
defaultConfig {
79
applicationId "com.yoti.mobile.android.sdk.yotidocscan.sample"
810
minSdkVersion 21
911
targetSdkVersion 33
10-
versionCode 352
11-
versionName "3.5.2"
12+
versionCode 400
13+
versionName "4.0.0"
1214
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1315
}
1416

@@ -18,8 +20,8 @@ android {
1820
}
1921

2022
compileOptions {
21-
sourceCompatibility = '1.8'
22-
targetCompatibility = '1.8'
23+
sourceCompatibility = JavaVersion.VERSION_17
24+
targetCompatibility = JavaVersion.VERSION_17
2325
}
2426

2527
buildFeatures {
@@ -46,13 +48,13 @@ dependencies {
4648
implementation 'androidx.appcompat:appcompat:1.4.1'
4749
implementation 'androidx.core:core-ktx:1.7.0'
4850

49-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:3.5.2'
51+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan:4.0.0'
5052
// Alternative version without OCR and NFC capture, ~15Mb smaller in size
51-
// implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-slim:3.5.2'
52-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:3.5.2'
53-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:3.5.2'
53+
// implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-slim:4.0.0'
54+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-doc-scan-sup:4.0.0'
55+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-liveness-zoom:4.0.0'
5456
// Version with an embedded AI model
55-
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:3.5.2'
57+
implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture:4.0.0'
5658
// Alternative version without an embedded AI model, ~20 MB smaller in size
57-
// implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:3.5.2'
59+
// implementation 'com.yoti.mobile.android.sdk:yoti-sdk-facecapture-unbundled:4.0.0'
5860
}

app/proguard-rules.pro

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
volatile <fields>;
33
}
44
-keep class com.yoti.** { *; }
5-
-keep class com.microblink.** { *; }
6-
-keep class com.microblink.**$* { *; }
7-
-dontwarn com.microblink.**
85
-dontwarn com.facetec.sdk.**
96
-keep class com.facetec.sdk.** { *; }
107
-dontwarn javax.annotation.Nullable

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.yoti.mobile.android.sdk.yotidocscan.sample">
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
32

43
<application
54
android:allowBackup="true"

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ buildscript {
77
mavenCentral()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.4.2'
10+
classpath 'com.android.tools.build:gradle:8.8.0'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212
// NOTE: Do not place your application dependencies here; they belong
1313
// in the individual module build.gradle files
@@ -18,7 +18,7 @@ allprojects {
1818
repositories {
1919
google()
2020
mavenCentral()
21-
maven { url 'https://maven.microblink.com' }
21+
maven { url "https://maven.regulaforensics.com/RegulaDocumentReader" }
2222
maven { url "https://jitpack.io" }
2323
}
2424
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu Apr 25 10:22:36 EEST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

webapp/build.gradle

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,28 @@ apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
33

44
android {
5-
compileSdkVersion 29
5+
namespace "com.yoti.mobile.android.sdk.yotidocscan.websample"
6+
7+
compileSdk 33
68

79
defaultConfig {
810
applicationId "com.yoti.mobile.android.sdk.yotidocscan.websample"
911
minSdkVersion 21
10-
targetSdkVersion 29
12+
targetSdkVersion 33
1113
versionCode 1
1214
versionName "1.0"
1315

1416
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
1517
}
1618

19+
compileOptions {
20+
sourceCompatibility = JavaVersion.VERSION_17
21+
targetCompatibility = JavaVersion.VERSION_17
22+
}
23+
1724
buildFeatures {
1825
viewBinding true
26+
buildConfig true
1927
}
2028

2129
buildTypes {

webapp/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.yoti.mobile.android.sdk.yotidocscan.websample">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-permission android:name="android.permission.INTERNET" />
65
<uses-permission android:name="android.permission.CAMERA" />
@@ -21,6 +20,7 @@
2120
android:supportsRtl="true"
2221
android:theme="@style/AppTheme">
2322
<activity android:name=".MainActivity"
23+
android:exported="true"
2424
android:screenOrientation="portrait">
2525
<intent-filter>
2626
<action android:name="android.intent.action.MAIN" />

webapp/src/main/java/com/yoti/mobile/android/sdk/yotidocscan/websample/MainActivity.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,6 @@ class MainActivity : AppCompatActivity(), SessionConfigurationListener {
194194
domStorageEnabled = true
195195
javaScriptCanOpenWindowsAutomatically = true
196196
mediaPlaybackRequiresUserGesture = false
197-
setAppCacheEnabled(true)
198-
199197
}
200198
this.webViewClient = YdsWebClient()
201199
this.webChromeClient = YdsWebChromeClient()

0 commit comments

Comments
 (0)