Commit 1b3ebd3a authored by Javokhir Savriev's avatar Javokhir Savriev
Browse files

2.0.8

parent d8a983ae
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
- [Handling callbacks](#12-handling-callbacks) - [Handling callbacks](#12-handling-callbacks)
- [SDK error codes](#sdk-error-codes) - [SDK error codes](#sdk-error-codes)
- [Localization](#localization) - [Localization](#localization)
- [Sample app](#sample-app)
## Getting started ## Getting started
...@@ -47,21 +46,22 @@ libraries (For example libs) and copy MyId SDK provided libraries. ...@@ -47,21 +46,22 @@ libraries (For example libs) and copy MyId SDK provided libraries.
Add reference to library to module **_build.gradle_**: Add reference to library to module **_build.gradle_**:
``` 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: MyId Android SDK also requires following libraries to be added:
``` gradle ``` 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.core:core-ktx:1.8.0")
implementation("androidx.appcompat:appcompat:1.4.2") implementation("androidx.appcompat:appcompat:1.4.2")
implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1") implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.1") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.5.0")
def cameraVersion = "1.2.0-alpha01" def cameraVersion = "1.2.0-alpha01"
implementation("androidx.camera:camera-camera2:$cameraVersion") implementation("androidx.camera:camera-camera2:$cameraVersion")
...@@ -71,7 +71,6 @@ implementation("androidx.camera:camera-view:$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-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-text-recognition:18.0.0")
implementation("com.google.android.gms:play-services-mlkit-barcode-scanning: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.ktor:ktor-client-android:2.0.1")
implementation("io.sentry:sentry-android:5.7.4") 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 ...@@ -143,6 +142,8 @@ the SDK requires the input of passport data and date of birth for user identific
- **DEBUG** is used to sandbox. - **DEBUG** is used to sandbox.
- **PRODUCTION** is used to production. - **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 ### 1.2 Handling callbacks
```kotlin ```kotlin
...@@ -203,11 +204,12 @@ reference. ...@@ -203,11 +204,12 @@ reference.
| 22 | Обнаружено несколько лиц | 22 | Обнаружено несколько лиц
| 23 | Представленное изображение в градациях серого, требуется цветное изображение | 23 | Представленное изображение в градациях серого, требуется цветное изображение
| 24 | Обнаружены затемненные очки | 24 | Обнаружены затемненные очки
| 25 | СервисТип фотографии не поддерживается | 25 | Тип фотографии не поддерживается
| 26 | Глаза закрыты либо не видны | 26 | Глаза закрыты либо не видны
| 101 | Ошибка в MyId SDK | 101 | Непредвиденная ошибка
| 102 | Доступ к камере запрещен | 102 | Доступ к камере запрещен
| 103 | Ошибка при получении данных с сервера | 103 | Ошибка при получении данных с сервера
| 120 | Размытое фото обнаружено в SDK
## Localization ## Localization
...@@ -219,7 +221,3 @@ The MyId Android SDK supports translations for the following languages: ...@@ -219,7 +221,3 @@ The MyId Android SDK supports translations for the following languages:
By default, the Russian language is used. However, you can also call the `withLocale(MyIdLocale)` 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. method of the `MyIdConfig.Builder` configuration to set the language.
\ No newline at end of file
## Sample App
We have included a [sample app](app) to show how to integrate the MyId Android SDK.
\ No newline at end of file
...@@ -37,15 +37,17 @@ android { ...@@ -37,15 +37,17 @@ android {
} }
dependencies { 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.core:core-ktx:1.8.0")
implementation("androidx.appcompat:appcompat:1.4.2") implementation("androidx.appcompat:appcompat:1.4.2")
implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1") implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.1") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.5.0")
implementation("com.google.android.material:material:1.6.1")
def cameraVersion = "1.2.0-alpha01" def cameraVersion = "1.2.0-alpha01"
implementation("androidx.camera:camera-camera2:$cameraVersion") implementation("androidx.camera:camera-camera2:$cameraVersion")
...@@ -55,8 +57,6 @@ dependencies { ...@@ -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-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-text-recognition:18.0.0")
implementation("com.google.android.gms:play-services-mlkit-barcode-scanning: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.ktor:ktor-client-android:2.0.1")
implementation("io.sentry:sentry-android:5.7.4") implementation("io.sentry:sentry-android:5.7.4")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment