Commit 6511c69e authored by Javokhir's avatar Javokhir
Browse files

Updated

parent 1373cfd9
...@@ -21,13 +21,12 @@ type ErrorEvent = { ...@@ -21,13 +21,12 @@ type ErrorEvent = {
code: number; code: number;
}; };
const clientId = 'emit_sdk-pEXr5TMHOHYL5QcP2JjObte94zS0vPpLnjbqTigm"'; const clientId = '';
const clientHash = 'f79e7195-cf94-4bdd-9115-6c08033e191c'; const clientHash = '';
const clientHashId = const clientHashId = ''
'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwgGX9AQqActMnsW5K++GXYYCynxB/RQVMRSBsYCjSEmIrKaV8InLDxoG+WE2AY7lGyoo9qkxzKg1Vk6tW8pBW5PpNSH6xN1P9ufEnHQWuXCpdT+UkAoVMGnoYQ6glp9mZVlPEottslt6THAGa9wf3fMku97UdsuSctOeGXDr3LnsCFB7ZmaracTQFQ41v6SMbGZX2NsIKVtlJMZqAle9sI3crk9RGRg7Os8f1NolNNFuWQEjx/DpaSjCHGMMscWkSX7GEqJiVSNybGquHe1vjtswoT3oO2Mr+uCfz6Owx/d0/0Q8YWxvhorxbGT0CEw1m0CU+JbWh2lrgf1jHvBULQIDAQAB'; const passportData = '';
const passportData = 'passport-number'; const dateOfBirth = '';
const dateOfBirth = '1990-01-01'; // Ensure the date format matches what your SDK expects const buildMode = 'PRODUCTION';
const buildMode = 'PRODUCTION'; // or "DEBUG", depending on your environment
const App = () => { const App = () => {
const [imageBase64, setImageBase64] = useState(''); const [imageBase64, setImageBase64] = useState('');
...@@ -38,7 +37,6 @@ const App = () => { ...@@ -38,7 +37,6 @@ const App = () => {
const onSuccess = (event: SuccessEvent) => { const onSuccess = (event: SuccessEvent) => {
console.log('onSuccess received', event.code, event.comparison); console.log('onSuccess received', event.code, event.comparison);
// Clipboard.setString(event.image);
setImageBase64(event.image); setImageBase64(event.image);
}; };
const onError = (event: ErrorEvent) => const onError = (event: ErrorEvent) =>
......
...@@ -104,6 +104,12 @@ android { ...@@ -104,6 +104,12 @@ android {
} }
} }
repositories {
google()
mavenCentral()
maven { url "https://artifactory.aigroup.uz:443/artifactory/myid" }
}
dependencies { dependencies {
// The version of react-native is set by the React Native Gradle Plugin // The version of react-native is set by the React Native Gradle Plugin
implementation("com.facebook.react:react-android") implementation("com.facebook.react:react-android")
...@@ -114,28 +120,8 @@ dependencies { ...@@ -114,28 +120,8 @@ dependencies {
implementation jscFlavor implementation jscFlavor
} }
//MyId //MyId
implementation(files('libs/myid-capture-sdk-2.3.0.aar')) implementation("uz.myid.sdk.capture:myid-capture-sdk:2.3.4")
// implementation("uz.myid.sdk.capture:myid-capture-sdk:2.3.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.activity:activity-ktx:1.8.2")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
def cameraVersion = "1.3.2"
implementation("androidx.camera:camera-camera2:$cameraVersion")
implementation("androidx.camera:camera-lifecycle:$cameraVersion")
implementation("androidx.camera:camera-view:$cameraVersion")
implementation("androidx.camera:camera-mlkit-vision:1.4.0-alpha04")
implementation("com.google.android.gms:play-services-mlkit-face-detection:17.1.0")
implementation("com.google.android.gms:play-services-mlkit-text-recognition:19.0.0")
implementation("com.google.android.gms:play-services-mlkit-barcode-scanning:18.3.0")
implementation("com.google.android.recaptcha:recaptcha:18.4.0")
} }
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
...@@ -49,9 +49,6 @@ class MyIdModule(private val reactContext: ReactApplicationContext) : ...@@ -49,9 +49,6 @@ class MyIdModule(private val reactContext: ReactApplicationContext) :
.withPassportData(passportData) .withPassportData(passportData)
.withBirthDate(dateOfBirth) .withBirthDate(dateOfBirth)
.withBuildMode(mode) .withBuildMode(mode)
.withEntryType(MyIdEntryType.FACE)
.withLocale(Locale("en"))
.withCameraShape(MyIdCameraShape.CIRCLE)
.build() .build()
reactContext.currentActivity?.let { reactContext.currentActivity?.let {
......
...@@ -10,7 +10,6 @@ buildscript { ...@@ -10,7 +10,6 @@ buildscript {
repositories { repositories {
google() google()
mavenCentral() mavenCentral()
maven { url "https://artifactory.aigroup.uz:443/artifactory/myid" }
} }
dependencies { dependencies {
classpath("com.android.tools.build:gradle") classpath("com.android.tools.build:gradle")
...@@ -20,3 +19,4 @@ buildscript { ...@@ -20,3 +19,4 @@ buildscript {
} }
apply plugin: "com.facebook.react.rootproject" apply plugin: "com.facebook.react.rootproject"
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
"adb": "adb reverse tcp:8081 tcp:8081" "adb": "adb reverse tcp:8081 tcp:8081"
}, },
"dependencies": { "dependencies": {
"@react-native-community/clipboard": "^1.5.1",
"react": "18.2.0", "react": "18.2.0",
"react-native": "0.74.3" "react-native": "0.74.3"
}, },
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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