Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MYID Public Code
MyID Sample Android
Commits
85048fad
Commit
85048fad
authored
Sep 14, 2022
by
Javohir Savriy
Browse files
2.1.0
parent
eec17876
Changes
5
Hide whitespace changes
Inline
Side-by-side
.idea/libraries/Gradle____app_libs_myid_sdk_2_0_9_release_aar.xml
deleted
100644 → 0
View file @
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
README.md
View file @
85048fad
...
...
@@ -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
}
}
```
...
...
app/libs/myid-sdk-2.
0.9
-release.aar
→
app/libs/myid-sdk-2.
1.0
-release.aar
View file @
85048fad
No preview for this file type
app/src/main/java/uz/myid/sdk/sample/MainActivity.kt
View file @
85048fad
...
...
@@ -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
}
}
}
...
...
app/src/main/res/layout/activity_face.xml
0 → 100644
View file @
85048fad
<?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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment