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

2.0.8

parent d8a983ae
......@@ -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
......@@ -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")
......
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