Commit 85048fad authored by Javohir Savriy's avatar Javohir Savriy
Browse files

2.1.0

parent eec17876
<component name="libraryTable">
<library name="Gradle: ./app/libs/myid-sdk-2.0.9-release.aar">
<CLASSES>
<root url="jar://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/87847f2ca42c559fe8e8b1f70bc40ce4/jetified-myid-sdk-2.0.9-release/jars/classes.jar!/" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/87847f2ca42c559fe8e8b1f70bc40ce4/jetified-myid-sdk-2.0.9-release/res" />
<root url="file://$USER_HOME$/.gradle/caches/transforms-2/files-2.1/87847f2ca42c559fe8e8b1f70bc40ce4/jetified-myid-sdk-2.0.9-release/AndroidManifest.xml" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
\ No newline at end of file
......@@ -46,9 +46,9 @@ 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.9-release.aar"))
implementation(files("libs/myid-sdk-2.1.0-release.aar"))
```
**Note:** You can get `myid-sdk-2.0.9-release.aar` file from [here](app/libs/myid-sdk-2.0.9-release.aar)
**Note:** You can get `myid-sdk-2.1.0-release.aar` file from [here](app/libs/myid-sdk-2.1.0-release.aar)
After synchronization, You should be able to access to SDK classes from your source code.
......@@ -157,24 +157,24 @@ the SDK requires the input of passport data and date of birth for user identific
```kotlin
val resultListener: MyIdResultListener = object : MyIdResultListener {
override fun onSuccess(result: MyIdResult) {
// Get face bitmap and result code
override fun onSuccess(result: MyIdResult) {
// Get face bitmap and result code
val bitmap = result.bitmap
val code = result.code
val comparison = result.comparison
}
val bitmap = result.bitmap
val code = result.code
val comparison = result.comparison
}
override fun onUserExited() {
// User left the SDK
}
override fun onUserExited() {
// User left the SDK
}
override fun onError(e: MyIdException) {
// Get error message and code:
override fun onError(e: MyIdException) {
// Get error message and code:
val message = e.message
val code = e.code
}
val message = e.message
val code = e.code
}
}
```
......
......@@ -82,7 +82,7 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
with(binding) {
imageResult.setImageBitmap(null)
"User exited".also { textResult.text = it }
"User exited sdk".also { textResult.text = it }
}
}
......
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:keepScreenOn="true"
tools:context=".FaceActivity">
<androidx.camera.view.PreviewView
android:id="@+id/previewView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:scaleType="fitCenter" />
</FrameLayout>
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