Loading App.tsx +6 −8 Original line number Original line Diff line number Diff line Loading @@ -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(''); Loading @@ -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) => Loading android/app/build.gradle +7 −21 Original line number Original line Diff line number Diff line Loading @@ -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") Loading @@ -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) android/app/libs/myid-capture-sdk-2.3.0.aardeleted 100644 → 0 −1.09 MiB File deleted. View file android/app/src/main/java/com/myid/MyIdModule.kt +0 −3 Original line number Original line Diff line number Diff line Loading @@ -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 { Loading android/build.gradle +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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") Loading @@ -20,3 +19,4 @@ buildscript { } } apply plugin: "com.facebook.react.rootproject" apply plugin: "com.facebook.react.rootproject" Loading
App.tsx +6 −8 Original line number Original line Diff line number Diff line Loading @@ -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(''); Loading @@ -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) => Loading
android/app/build.gradle +7 −21 Original line number Original line Diff line number Diff line Loading @@ -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") Loading @@ -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)
android/app/src/main/java/com/myid/MyIdModule.kt +0 −3 Original line number Original line Diff line number Diff line Loading @@ -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 { Loading
android/build.gradle +1 −1 Original line number Original line Diff line number Diff line Loading @@ -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") Loading @@ -20,3 +19,4 @@ buildscript { } } apply plugin: "com.facebook.react.rootproject" apply plugin: "com.facebook.react.rootproject"