Commit b7bb5922 authored by Javokhir Savriev's avatar Javokhir Savriev
Browse files

2.0.7

parent b092b1e9
...@@ -10,7 +10,6 @@ import androidx.annotation.NonNull; ...@@ -10,7 +10,6 @@ import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragment;
import uz.myid.android.sdk.capture.MyIdBuildMode; import uz.myid.android.sdk.capture.MyIdBuildMode;
import uz.myid.android.sdk.capture.MyIdBuildType;
import uz.myid.android.sdk.capture.MyIdClient; import uz.myid.android.sdk.capture.MyIdClient;
import uz.myid.android.sdk.capture.MyIdConfig; import uz.myid.android.sdk.capture.MyIdConfig;
import uz.myid.android.sdk.capture.MyIdEntryType; import uz.myid.android.sdk.capture.MyIdEntryType;
......
...@@ -12,10 +12,10 @@ class MainActivity : AppCompatActivity(), MyIdResultListener { ...@@ -12,10 +12,10 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
private val client = MyIdClient() private val client = MyIdClient()
private var clientId = "dev_tester-kYJmOs5F6IGSk9GnXHSfaN6rSPKaxPvz1dyyQqvG" private var clientId = ""
private var entryType = MyIdEntryType.AUTH private var myIdEntryType = MyIdEntryType.AUTH
private var buildType = MyIdBuildType.PROD private var myIdBuildMode = MyIdBuildMode.PRODUCTION
private var locale = MyIdLocale.EN private var myIdLocale = MyIdLocale.EN
private var withPhoto = false private var withPhoto = false
private var code = "" private var code = ""
...@@ -28,21 +28,21 @@ class MainActivity : AppCompatActivity(), MyIdResultListener { ...@@ -28,21 +28,21 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
inputClientId.setText(clientId) inputClientId.setText(clientId)
radioGroupLang.setOnCheckedChangeListener { _, checkedId -> radioGroupLang.setOnCheckedChangeListener { _, checkedId ->
locale = when (checkedId) { myIdLocale = when (checkedId) {
R.id.radioUz -> MyIdLocale.UZ R.id.radioUz -> MyIdLocale.UZ
R.id.radioEn -> MyIdLocale.EN R.id.radioEn -> MyIdLocale.EN
else -> MyIdLocale.RU else -> MyIdLocale.RU
} }
} }
radioGroupEntry.setOnCheckedChangeListener { _, checkedId -> radioGroupEntry.setOnCheckedChangeListener { _, checkedId ->
entryType = if (checkedId == R.id.radioFace) { myIdEntryType = if (checkedId == R.id.radioFace) {
MyIdEntryType.FACE MyIdEntryType.FACE
} else { } else {
MyIdEntryType.AUTH MyIdEntryType.AUTH
} }
} }
radioGroupBuildType.setOnCheckedChangeListener { _, checkedId -> radioGroupBuildType.setOnCheckedChangeListener { _, checkedId ->
buildType = if (checkedId == R.id.radioProd) { myIdBuildMode = if (checkedId == R.id.radioProd) {
MyIdBuildMode.PRODUCTION MyIdBuildMode.PRODUCTION
} else { } else {
MyIdBuildMode.DEBUG MyIdBuildMode.DEBUG
...@@ -91,9 +91,9 @@ class MainActivity : AppCompatActivity(), MyIdResultListener { ...@@ -91,9 +91,9 @@ class MainActivity : AppCompatActivity(), MyIdResultListener {
.withPassportData(binding.inputPassportData.value) .withPassportData(binding.inputPassportData.value)
.withBirthDate(binding.inputDate.value) .withBirthDate(binding.inputDate.value)
.withExternalId(binding.inputExternalId.value) .withExternalId(binding.inputExternalId.value)
.withEntryType(entryType) .withEntryType(myIdEntryType)
.withBuildMode(MyIdBuildMode.PRODUCTION) .withBuildMode(myIdBuildMode)
.withLocale(locale) .withLocale(myIdLocale)
.withPhoto(withPhoto) .withPhoto(withPhoto)
.build() .build()
......
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