diff --git a/README.md b/README.md index 53d78273c608a3f517dda4feba5cf1b3d9652e3f..969f2c2da566be46f41f999162155a23f7ff45cb 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,6 @@ - [Handling callbacks](#12-handling-callbacks) - [SDK error codes](#sdk-error-codes) - [Localization](#localization) -- [Sample app](#sample-app) ## Getting started @@ -47,21 +46,22 @@ libraries (For example libs) and copy MyId SDK provided libraries. Add reference to library to module **_build.gradle_**: ``` gradle -implementation(files("libs/myid-sdk-2.0.7-release.aar")) +implementation(files("libs/myid-sdk-2.0.8-release.aar")) ``` +**Note:** You can get `myid-sdk-2.0.8-release.aar` file from [here](app/libs/myid-sdk-2.0.8-release.aar) -After synchronization, You should be able to acces to SDK classes from your source code. +After synchronization, You should be able to access to SDK classes from your source code. MyId Android SDK also requires following libraries to be added: ``` gradle -implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.2") +implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4") implementation("androidx.core:core-ktx:1.8.0") implementation("androidx.appcompat:appcompat:1.4.2") implementation("androidx.constraintlayout:constraintlayout:2.1.4") -implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1") -implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.1") +implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.0") +implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.5.0") def cameraVersion = "1.2.0-alpha01" implementation("androidx.camera:camera-camera2:$cameraVersion") @@ -71,7 +71,6 @@ implementation("androidx.camera:camera-view:$cameraVersion") implementation("com.google.android.gms:play-services-mlkit-face-detection:17.0.1") implementation("com.google.android.gms:play-services-mlkit-text-recognition:18.0.0") implementation("com.google.android.gms:play-services-mlkit-barcode-scanning:18.0.0") -implementation("com.google.code.gson:gson:2.9.0") implementation("io.ktor:ktor-client-android:2.0.1") implementation("io.sentry:sentry-android:5.7.4") @@ -143,6 +142,8 @@ the SDK requires the input of passport data and date of birth for user identific - **DEBUG** is used to sandbox. - **PRODUCTION** is used to production. +**Note 1.4.** If the externalId is not empty, has a length of 36 characters and corresponds to the regular expression UUID4, we will display a [recommendation](images/screen01.jpg) screen in case the sdk detects a blurry photo. + ### 1.2 Handling callbacks ```kotlin @@ -203,11 +204,12 @@ reference. | 22 | Обнаружено несколько лиц | 23 | Представленное изображение в градациях серого, требуется цветное изображение | 24 | Обнаружены затемненные очки -| 25 | СервисТип фотографии не поддерживается +| 25 | Тип фотографии не поддерживается | 26 | Глаза закрыты либо не видны -| 101 | Ошибка в MyId SDK +| 101 | Непредвиденная ошибка | 102 | Доступ к камере запрещен | 103 | Ошибка при получении данных с сервера +| 120 | Размытое фото обнаружено в SDK ## Localization @@ -218,8 +220,4 @@ The MyId Android SDK supports translations for the following languages: - Russian (ru) 🇷🇺 By default, the Russian language is used. However, you can also call the `withLocale(MyIdLocale)` -method of the `MyIdConfig.Builder` configuration to set the language. - -## Sample App - -We have included a [sample app](app) to show how to integrate the MyId Android SDK. \ No newline at end of file +method of the `MyIdConfig.Builder` configuration to set the language. \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 06b9f286d956d6a336cadb6c20e5cb718b9f557e..0caa0ab1f488ff70cf3736beed0b46119d183562 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -37,15 +37,17 @@ android { } dependencies { - implementation(files("libs/myid-sdk-2.0.7-release.aar")) + implementation(files("libs/myid-sdk-2.0.8-release.aar")) - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.2") + implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4") implementation("androidx.core:core-ktx:1.8.0") implementation("androidx.appcompat:appcompat:1.4.2") implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1") - implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.1") + implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.0") + implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.5.0") + + implementation("com.google.android.material:material:1.6.1") def cameraVersion = "1.2.0-alpha01" implementation("androidx.camera:camera-camera2:$cameraVersion") @@ -55,8 +57,6 @@ dependencies { implementation("com.google.android.gms:play-services-mlkit-face-detection:17.0.1") implementation("com.google.android.gms:play-services-mlkit-text-recognition:18.0.0") implementation("com.google.android.gms:play-services-mlkit-barcode-scanning:18.0.0") - implementation("com.google.android.material:material:1.6.1") - implementation("com.google.code.gson:gson:2.9.0") implementation("io.ktor:ktor-client-android:2.0.1") implementation("io.sentry:sentry-android:5.7.4") diff --git a/app/libs/myid-sdk-2.0.7-release.aar b/app/libs/myid-sdk-2.0.7-release.aar deleted file mode 100644 index 456c410cae5b74efc2f4e20873a8bcf5c7c71660..0000000000000000000000000000000000000000 Binary files a/app/libs/myid-sdk-2.0.7-release.aar and /dev/null differ diff --git a/app/libs/myid-sdk-2.0.8-release.aar b/app/libs/myid-sdk-2.0.8-release.aar new file mode 100644 index 0000000000000000000000000000000000000000..5d95c9e4428f7bf05008daf7c3ed1ce6c832c7e6 Binary files /dev/null and b/app/libs/myid-sdk-2.0.8-release.aar differ diff --git a/images/screen01.jpg b/images/screen01.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4772ea52df171f7b4e77cccf883dc2e18b22b3b2 Binary files /dev/null and b/images/screen01.jpg differ diff --git a/images/screen02.jpg b/images/screen02.jpg new file mode 100644 index 0000000000000000000000000000000000000000..52ab24b1b5f6cac32490c7094b8663113cf54061 Binary files /dev/null and b/images/screen02.jpg differ