Commit ef2067d1 authored by Javokhir's avatar Javokhir
Browse files

Published 2.2.8 version

parent bbe9245e
......@@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
## [2.2.78] - 1 Feb, 2024
- Added configurations for allowing transactions of foreign based end-users
## [2.2.7] - 2 Nov, 2023
- Added new `withMinAge(value: Int)` method for the minimum age to use the MyID service.
......
......@@ -45,7 +45,7 @@ repositories {
}
dependencies {
implementation("uz.myid.sdk.capture:myid-capture-sdk:2.2.7")
implementation("uz.myid.sdk.capture:myid-capture-sdk:2.2.8")
}
```
......@@ -145,7 +145,6 @@ Method | Notes | Default
`withScreenOrientation(value: MyIdScreenOrientation)` | To set a specific screen orientation | MyIdScreenOrientation.FULL
`withImageFormat(value: MyIdImageFormat)` | To set a specific image format | MyIdImageFormat.PNG
`withOrganizationDetails(value: MyIdOrganizationDetails)` | Custom Organization Details | Optional
`withPhoto(value: Boolean)` | Return SDK face bitmap | false
**Note 1.1.** You can customize the screen for entering passport data and date of birth in your
application, in which case you can pass these parameters during initialization to the SDK, otherwise
......@@ -178,7 +177,7 @@ val resultListener: MyIdResultListener = object : MyIdResultListener {
override fun onSuccess(result: MyIdResult) {
// Get face bitmap and result code
val bitmap = result.bitmap
val bitmap = result.getGraphicFieldImageByType(MyIdGraphicFieldType.FACE_PORTRAIT)
val code = result.code
val comparison = result.comparison
}
......
......@@ -33,7 +33,7 @@ android {
}
dependencies {
implementation("com.google.android.material:material:1.10.0")
implementation("com.google.android.material:material:1.11.0")
implementation("uz.myid.sdk.capture:myid-capture-sdk:2.2.7")
implementation("uz.myid.sdk.capture:myid-capture-sdk:2.2.8")
}
\ No newline at end of file
......@@ -9,6 +9,7 @@ import uz.myid.android.sdk.capture.MyIdException
import uz.myid.android.sdk.capture.MyIdResult
import uz.myid.android.sdk.capture.MyIdResultListener
import uz.myid.android.sdk.capture.model.MyIdBuildMode
import uz.myid.android.sdk.capture.model.MyIdGraphicFieldType
import uz.myid.android.sdk.capture.takeUserResult
import uz.myid.sdk.sample.databinding.ActivityMainBinding
......@@ -38,8 +39,11 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
}
override fun onSuccess(result: MyIdResult) {
val bitmap = result.getGraphicFieldImageByType(MyIdGraphicFieldType.FACE_PORTRAIT)
with(binding) {
imageResult.setImageBitmap(result.bitmap)
imageResult.setImageBitmap(bitmap)
"""
Result code: ${result.code}
Comparison value: ${result.comparison}
......@@ -50,6 +54,7 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
override fun onError(e: MyIdException) {
with(binding) {
imageResult.setImageBitmap(null)
"""
Result error: ${e.message}
Result error code: ${e.code}
......@@ -60,6 +65,7 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
override fun onUserExited() {
with(binding) {
imageResult.setImageBitmap(null)
"User exited sdk".also { textResult.text = it }
}
}
......
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