@transfergratis/react-native-sdk 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +539 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/config.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +14 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/results.bin +1 -0
- package/android/build/.transforms/7ec900c0f64f5f1a7c88998dd44001b8/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/results.bin +1 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/BuildConfig.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkModule.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/kyc/transfergratis/com/TransfergratisSdkView.dex +0 -0
- package/android/build/.transforms/d6df0e53bfc3165a876965af720f910a/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/kyc/transfergratis/com/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +35 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +1 -0
- package/android/build/intermediates/compiled_local_resources/debug/compileDebugLibraryResources/out/xml_file_paths.xml.flat +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +3 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +58 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +35 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/packaged_res/debug/packageDebugResources/xml/file_paths.xml +15 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +63 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-sdk_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$1$5$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$5.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunction$6.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$3.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$AsyncFunctionWithPromise$4.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$$inlined$View$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule$definition$lambda$5$lambda$4$$inlined$Prop$2.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/kyc/transfergratis/com/TransfergratisSdkView.class +0 -0
- package/android/build.gradle +47 -0
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +28 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkModule.kt +131 -0
- package/android/src/main/java/kyc/transfergratis/com/TransfergratisSdkView.kt +161 -0
- package/android/src/main/res/xml/file_paths.xml +15 -0
- package/build/App.d.ts +3 -0
- package/build/App.d.ts.map +1 -0
- package/build/App.js +9 -0
- package/build/App.js.map +1 -0
- package/build/TransfergratisSdk.types.d.ts +32 -0
- package/build/TransfergratisSdk.types.d.ts.map +1 -0
- package/build/TransfergratisSdk.types.js +2 -0
- package/build/TransfergratisSdk.types.js.map +1 -0
- package/build/TransfergratisSdkModule.d.ts +21 -0
- package/build/TransfergratisSdkModule.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.js +4 -0
- package/build/TransfergratisSdkModule.js.map +1 -0
- package/build/TransfergratisSdkModule.web.d.ts +20 -0
- package/build/TransfergratisSdkModule.web.d.ts.map +1 -0
- package/build/TransfergratisSdkModule.web.js +25 -0
- package/build/TransfergratisSdkModule.web.js.map +1 -0
- package/build/TransfergratisSdkView.d.ts +4 -0
- package/build/TransfergratisSdkView.d.ts.map +1 -0
- package/build/TransfergratisSdkView.js +7 -0
- package/build/TransfergratisSdkView.js.map +1 -0
- package/build/TransfergratisSdkView.web.d.ts +4 -0
- package/build/TransfergratisSdkView.web.d.ts.map +1 -0
- package/build/TransfergratisSdkView.web.js +11 -0
- package/build/TransfergratisSdkView.web.js.map +1 -0
- package/build/components/Camera/index.d.ts +2 -0
- package/build/components/Camera/index.d.ts.map +1 -0
- package/build/components/Camera/index.js +2 -0
- package/build/components/Camera/index.js.map +1 -0
- package/build/components/Camera/index.web.d.ts +2 -0
- package/build/components/Camera/index.web.d.ts.map +1 -0
- package/build/components/Camera/index.web.js +2 -0
- package/build/components/Camera/index.web.js.map +1 -0
- package/build/components/Camera/types.d.ts +2 -0
- package/build/components/Camera/types.d.ts.map +1 -0
- package/build/components/Camera/types.js +2 -0
- package/build/components/Camera/types.js.map +1 -0
- package/build/components/ConfigurableKYCFlow.d.ts +11 -0
- package/build/components/ConfigurableKYCFlow.d.ts.map +1 -0
- package/build/components/ConfigurableKYCFlow.js +257 -0
- package/build/components/ConfigurableKYCFlow.js.map +1 -0
- package/build/components/CustomCameraExample.d.ts +10 -0
- package/build/components/CustomCameraExample.d.ts.map +1 -0
- package/build/components/CustomCameraExample.js +232 -0
- package/build/components/CustomCameraExample.js.map +1 -0
- package/build/components/EnhancedCameraView.d.ts +44 -0
- package/build/components/EnhancedCameraView.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.js +316 -0
- package/build/components/EnhancedCameraView.js.map +1 -0
- package/build/components/EnhancedCameraView.web.d.ts +44 -0
- package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.web.js +399 -0
- package/build/components/EnhancedCameraView.web.js.map +1 -0
- package/build/components/FileUpload.d.ts +13 -0
- package/build/components/FileUpload.d.ts.map +1 -0
- package/build/components/FileUpload.js +216 -0
- package/build/components/FileUpload.js.map +1 -0
- package/build/components/KYCElementRenderer.d.ts +14 -0
- package/build/components/KYCElementRenderer.d.ts.map +1 -0
- package/build/components/KYCElementRenderer.js +31 -0
- package/build/components/KYCElementRenderer.js.map +1 -0
- package/build/components/KYCElements/CameraCapture.d.ts +11 -0
- package/build/components/KYCElements/CameraCapture.d.ts.map +1 -0
- package/build/components/KYCElements/CameraCapture.js +218 -0
- package/build/components/KYCElements/CameraCapture.js.map +1 -0
- package/build/components/KYCElements/CompletionStep.d.ts +10 -0
- package/build/components/KYCElements/CompletionStep.d.ts.map +1 -0
- package/build/components/KYCElements/CompletionStep.js +147 -0
- package/build/components/KYCElements/CompletionStep.js.map +1 -0
- package/build/components/KYCElements/CountrySelection.d.ts +11 -0
- package/build/components/KYCElements/CountrySelection.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelection.js +147 -0
- package/build/components/KYCElements/CountrySelection.js.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts +12 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js +245 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts +11 -0
- package/build/components/KYCElements/DocumentTypeSelection.d.ts.map +1 -0
- package/build/components/KYCElements/DocumentTypeSelection.js +143 -0
- package/build/components/KYCElements/DocumentTypeSelection.js.map +1 -0
- package/build/components/KYCElements/FileUpload.d.ts +11 -0
- package/build/components/KYCElements/FileUpload.d.ts.map +1 -0
- package/build/components/KYCElements/FileUpload.js +267 -0
- package/build/components/KYCElements/FileUpload.js.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts +12 -0
- package/build/components/KYCElements/FileUploadTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/FileUploadTemplate.js +326 -0
- package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
- package/build/components/KYCElements/IDCardCapture.d.ts +13 -0
- package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
- package/build/components/KYCElements/IDCardCapture.js +421 -0
- package/build/components/KYCElements/IDCardCapture.js.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts +20 -0
- package/build/components/KYCElements/LocationCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js +275 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.js +533 -0
- package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +503 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +12 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js +429 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
- package/build/components/KYCElements/SelfieCapture.d.ts +11 -0
- package/build/components/KYCElements/SelfieCapture.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCapture.js +235 -0
- package/build/components/KYCElements/SelfieCapture.js.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +12 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js +321 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/VerificationStep.d.ts +10 -0
- package/build/components/KYCElements/VerificationStep.d.ts.map +1 -0
- package/build/components/KYCElements/VerificationStep.js +199 -0
- package/build/components/KYCElements/VerificationStep.js.map +1 -0
- package/build/components/KYCExample.d.ts +3 -0
- package/build/components/KYCExample.d.ts.map +1 -0
- package/build/components/KYCExample.js +247 -0
- package/build/components/KYCExample.js.map +1 -0
- package/build/components/KYCFlow.d.ts +3 -0
- package/build/components/KYCFlow.d.ts.map +1 -0
- package/build/components/KYCFlow.js +308 -0
- package/build/components/KYCFlow.js.map +1 -0
- package/build/components/NativeCameraView.d.ts +11 -0
- package/build/components/NativeCameraView.d.ts.map +1 -0
- package/build/components/NativeCameraView.js +27 -0
- package/build/components/NativeCameraView.js.map +1 -0
- package/build/components/OverLay/IdCard.d.ts +4 -0
- package/build/components/OverLay/IdCard.d.ts.map +1 -0
- package/build/components/OverLay/IdCard.js +181 -0
- package/build/components/OverLay/IdCard.js.map +1 -0
- package/build/components/OverLay/SelfieOverlay.d.ts +4 -0
- package/build/components/OverLay/SelfieOverlay.d.ts.map +1 -0
- package/build/components/OverLay/SelfieOverlay.js +168 -0
- package/build/components/OverLay/SelfieOverlay.js.map +1 -0
- package/build/components/OverLay/StepOverlay.d.ts +9 -0
- package/build/components/OverLay/StepOverlay.d.ts.map +1 -0
- package/build/components/OverLay/StepOverlay.js +51 -0
- package/build/components/OverLay/StepOverlay.js.map +1 -0
- package/build/components/OverLay/type.d.ts +21 -0
- package/build/components/OverLay/type.d.ts.map +1 -0
- package/build/components/OverLay/type.js +2 -0
- package/build/components/OverLay/type.js.map +1 -0
- package/build/components/ProgressIndicator.d.ts +8 -0
- package/build/components/ProgressIndicator.d.ts.map +1 -0
- package/build/components/ProgressIndicator.js +48 -0
- package/build/components/ProgressIndicator.js.map +1 -0
- package/build/components/SelfieCapture.d.ts +3 -0
- package/build/components/SelfieCapture.d.ts.map +1 -0
- package/build/components/SelfieCapture.js +197 -0
- package/build/components/SelfieCapture.js.map +1 -0
- package/build/components/SimpleExample.d.ts +3 -0
- package/build/components/SimpleExample.d.ts.map +1 -0
- package/build/components/SimpleExample.js +89 -0
- package/build/components/SimpleExample.js.map +1 -0
- package/build/components/Svgs/GpsIcon.d.ts +3 -0
- package/build/components/Svgs/GpsIcon.d.ts.map +1 -0
- package/build/components/Svgs/GpsIcon.js +9 -0
- package/build/components/Svgs/GpsIcon.js.map +1 -0
- package/build/components/Svgs/Schield.d.ts +3 -0
- package/build/components/Svgs/Schield.d.ts.map +1 -0
- package/build/components/Svgs/Schield.js +22 -0
- package/build/components/Svgs/Schield.js.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/frontSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/frontSelfieIcon.js +11 -0
- package/build/components/Svgs/frontSelfieIcon.js.map +1 -0
- package/build/components/Svgs/scanningLine.d.ts +9 -0
- package/build/components/Svgs/scanningLine.d.ts.map +1 -0
- package/build/components/Svgs/scanningLine.js +61 -0
- package/build/components/Svgs/scanningLine.js.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts +3 -0
- package/build/components/Svgs/sideSelfieIcon.d.ts.map +1 -0
- package/build/components/Svgs/sideSelfieIcon.js +9 -0
- package/build/components/Svgs/sideSelfieIcon.js.map +1 -0
- package/build/components/TemplateKYCExample.d.ts +7 -0
- package/build/components/TemplateKYCExample.d.ts.map +1 -0
- package/build/components/TemplateKYCExample.js +433 -0
- package/build/components/TemplateKYCExample.js.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts +12 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.js +210 -0
- package/build/components/TemplateKYCFlowRefactored.js.map +1 -0
- package/build/components/VisionCameraView.d.ts +22 -0
- package/build/components/VisionCameraView.d.ts.map +1 -0
- package/build/components/VisionCameraView.js +142 -0
- package/build/components/VisionCameraView.js.map +1 -0
- package/build/components/example/CameraCaptureEx.d.ts +4 -0
- package/build/components/example/CameraCaptureEx.d.ts.map +1 -0
- package/build/components/example/CameraCaptureEx.js +219 -0
- package/build/components/example/CameraCaptureEx.js.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts +3 -0
- package/build/components/example/CameraCaptureExAdvanced.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExAdvanced.js +229 -0
- package/build/components/example/CameraCaptureExAdvanced.js.map +1 -0
- package/build/components/example/CameraCaptureExScan.d.ts +3 -0
- package/build/components/example/CameraCaptureExScan.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExScan.js +213 -0
- package/build/components/example/CameraCaptureExScan.js.map +1 -0
- package/build/components/example/CameraCaptureExSimple.d.ts +3 -0
- package/build/components/example/CameraCaptureExSimple.d.ts.map +1 -0
- package/build/components/example/CameraCaptureExSimple.js +138 -0
- package/build/components/example/CameraCaptureExSimple.js.map +1 -0
- package/build/components/example/OrientationVideoExample.d.ts +4 -0
- package/build/components/example/OrientationVideoExample.d.ts.map +1 -0
- package/build/components/example/OrientationVideoExample.js +329 -0
- package/build/components/example/OrientationVideoExample.js.map +1 -0
- package/build/components/example/SelfieCaptureEx.d.ts +4 -0
- package/build/components/example/SelfieCaptureEx.d.ts.map +1 -0
- package/build/components/example/SelfieCaptureEx.js +238 -0
- package/build/components/example/SelfieCaptureEx.js.map +1 -0
- package/build/components/ui/Button.d.ts +37 -0
- package/build/components/ui/Button.d.ts.map +1 -0
- package/build/components/ui/Button.js +194 -0
- package/build/components/ui/Button.js.map +1 -0
- package/build/components/ui/ButtonExample.d.ts +4 -0
- package/build/components/ui/ButtonExample.d.ts.map +1 -0
- package/build/components/ui/ButtonExample.js +209 -0
- package/build/components/ui/ButtonExample.js.map +1 -0
- package/build/components/ui/ButtonStyles.d.ts +521 -0
- package/build/components/ui/ButtonStyles.d.ts.map +1 -0
- package/build/components/ui/ButtonStyles.js +429 -0
- package/build/components/ui/ButtonStyles.js.map +1 -0
- package/build/config/KYCConfigs.d.ts +7 -0
- package/build/config/KYCConfigs.d.ts.map +1 -0
- package/build/config/KYCConfigs.js +516 -0
- package/build/config/KYCConfigs.js.map +1 -0
- package/build/hooks/useKYC.d.ts +15 -0
- package/build/hooks/useKYC.d.ts.map +1 -0
- package/build/hooks/useKYC.js +103 -0
- package/build/hooks/useKYC.js.map +1 -0
- package/build/hooks/useKYCFlow.d.ts +3 -0
- package/build/hooks/useKYCFlow.d.ts.map +1 -0
- package/build/hooks/useKYCFlow.js +221 -0
- package/build/hooks/useKYCFlow.js.map +1 -0
- package/build/hooks/useLocation.d.ts +32 -0
- package/build/hooks/useLocation.d.ts.map +1 -0
- package/build/hooks/useLocation.js +165 -0
- package/build/hooks/useLocation.js.map +1 -0
- package/build/hooks/useOrientationVideo.d.ts +10 -0
- package/build/hooks/useOrientationVideo.d.ts.map +1 -0
- package/build/hooks/useOrientationVideo.js +117 -0
- package/build/hooks/useOrientationVideo.js.map +1 -0
- package/build/hooks/useTemplateKYCFlow.d.ts +28 -0
- package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
- package/build/hooks/useTemplateKYCFlow.js +221 -0
- package/build/hooks/useTemplateKYCFlow.js.map +1 -0
- package/build/index.d.ts +34 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +45 -0
- package/build/index.js.map +1 -0
- package/build/modules/api/KYCService.d.ts +35 -0
- package/build/modules/api/KYCService.d.ts.map +1 -0
- package/build/modules/api/KYCService.js +119 -0
- package/build/modules/api/KYCService.js.map +1 -0
- package/build/modules/camera/NativeCameraModule.d.ts +52 -0
- package/build/modules/camera/NativeCameraModule.d.ts.map +1 -0
- package/build/modules/camera/NativeCameraModule.js +149 -0
- package/build/modules/camera/NativeCameraModule.js.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts +70 -0
- package/build/modules/camera/UnifiedCameraModule.d.ts.map +1 -0
- package/build/modules/camera/UnifiedCameraModule.js +125 -0
- package/build/modules/camera/UnifiedCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.d.ts +62 -0
- package/build/modules/camera/VisionCameraModule.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.js +198 -0
- package/build/modules/camera/VisionCameraModule.js.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts +145 -0
- package/build/modules/camera/VisionCameraModule.web.d.ts.map +1 -0
- package/build/modules/camera/VisionCameraModule.web.js +570 -0
- package/build/modules/camera/VisionCameraModule.web.js.map +1 -0
- package/build/modules/camera/index.d.ts +5 -0
- package/build/modules/camera/index.d.ts.map +1 -0
- package/build/modules/camera/index.js +4 -0
- package/build/modules/camera/index.js.map +1 -0
- package/build/stores/kycStore.d.ts +55 -0
- package/build/stores/kycStore.d.ts.map +1 -0
- package/build/stores/kycStore.js +98 -0
- package/build/stores/kycStore.js.map +1 -0
- package/build/types/KYC.types.d.ts +326 -0
- package/build/types/KYC.types.d.ts.map +1 -0
- package/build/types/KYC.types.js +2 -0
- package/build/types/KYC.types.js.map +1 -0
- package/expo-module.config.json +9 -0
- package/ios/TransfergratisSdk.podspec +31 -0
- package/ios/TransfergratisSdkModule.swift +409 -0
- package/package.json +67 -0
- package/plugin/build/index.d.ts +4 -0
- package/plugin/build/index.js +10 -0
- package/plugin/build/withLocation.d.ts +9 -0
- package/plugin/build/withLocation.js +77 -0
- package/plugin/build/withVisionCamera.d.ts +8 -0
- package/plugin/build/withVisionCamera.js +69 -0
- package/plugin/src/index.ts +4 -0
- package/plugin/src/withLocation.ts +109 -0
- package/plugin/src/withVisionCamera.js +89 -0
- package/plugin/src/withVisionCamera.ts +98 -0
- package/plugin/tsconfig.json +17 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/plugin.js +14 -0
- package/src/App.tsx +9 -0
- package/src/TransfergratisSdk.types.ts +30 -0
- package/src/TransfergratisSdkModule.ts +16 -0
- package/src/TransfergratisSdkModule.web.ts +31 -0
- package/src/TransfergratisSdkView.tsx +11 -0
- package/src/TransfergratisSdkView.web.tsx +15 -0
- package/src/components/Camera/index.tsx +0 -0
- package/src/components/Camera/index.web.tsx +0 -0
- package/src/components/Camera/types.ts +0 -0
- package/src/components/ConfigurableKYCFlow.tsx +334 -0
- package/src/components/CustomCameraExample.tsx +274 -0
- package/src/components/EnhancedCameraView.tsx +421 -0
- package/src/components/EnhancedCameraView.web.tsx +517 -0
- package/src/components/FileUpload.tsx +249 -0
- package/src/components/KYCElementRenderer.tsx +106 -0
- package/src/components/KYCElements/CameraCapture.tsx +267 -0
- package/src/components/KYCElements/CompletionStep.tsx +161 -0
- package/src/components/KYCElements/CountrySelection.tsx +177 -0
- package/src/components/KYCElements/CountrySelectionTemplate.tsx +282 -0
- package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
- package/src/components/KYCElements/FileUpload.tsx +317 -0
- package/src/components/KYCElements/FileUploadTemplate.tsx +388 -0
- package/src/components/KYCElements/IDCardCapture.tsx +519 -0
- package/src/components/KYCElements/LocationCaptureTemplate.tsx +325 -0
- package/src/components/KYCElements/OrientationVideoCapture.tsx +646 -0
- package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +613 -0
- package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +531 -0
- package/src/components/KYCElements/SelfieCapture.tsx +283 -0
- package/src/components/KYCElements/SelfieCaptureTemplate.tsx +388 -0
- package/src/components/KYCElements/VerificationStep.tsx +234 -0
- package/src/components/KYCExample.tsx +297 -0
- package/src/components/KYCFlow.tsx +377 -0
- package/src/components/NativeCameraView.tsx +47 -0
- package/src/components/OverLay/IdCard.tsx +269 -0
- package/src/components/OverLay/SelfieOverlay.tsx +210 -0
- package/src/components/OverLay/StepOverlay.tsx +62 -0
- package/src/components/OverLay/type.ts +21 -0
- package/src/components/ProgressIndicator.tsx +62 -0
- package/src/components/SelfieCapture.tsx +244 -0
- package/src/components/SimpleExample.tsx +92 -0
- package/src/components/Svgs/GpsIcon.tsx +12 -0
- package/src/components/Svgs/Schield.tsx +26 -0
- package/src/components/Svgs/directionArrow.gif +0 -0
- package/src/components/Svgs/frontSelfieIcon.tsx +13 -0
- package/src/components/Svgs/scanningLine.tsx +88 -0
- package/src/components/Svgs/sideSelfieIcon.tsx +10 -0
- package/src/components/TemplateKYCExample.tsx +447 -0
- package/src/components/TemplateKYCFlowRefactored.tsx +263 -0
- package/src/components/VisionCameraView.tsx +197 -0
- package/src/components/example/CameraCaptureEx.tsx +335 -0
- package/src/components/example/CameraCaptureExAdvanced.tsx +357 -0
- package/src/components/example/CameraCaptureExScan.tsx +336 -0
- package/src/components/example/CameraCaptureExSimple.tsx +215 -0
- package/src/components/example/OrientationVideoExample.tsx +384 -0
- package/src/components/example/SelfieCaptureEx.tsx +358 -0
- package/src/components/ui/Button.tsx +328 -0
- package/src/components/ui/ButtonExample.tsx +318 -0
- package/src/components/ui/ButtonStyles.ts +465 -0
- package/src/config/KYCConfigs.ts +528 -0
- package/src/hooks/useKYC.ts +131 -0
- package/src/hooks/useKYCFlow.ts +248 -0
- package/src/hooks/useLocation.ts +221 -0
- package/src/hooks/useOrientationVideo.ts +148 -0
- package/src/hooks/useTemplateKYCFlow.tsx +292 -0
- package/src/index.ts +72 -0
- package/src/modules/api/KYCService.ts +171 -0
- package/src/modules/camera/NativeCameraModule.ts +170 -0
- package/src/modules/camera/UnifiedCameraModule.ts +160 -0
- package/src/modules/camera/VisionCameraModule.ts +217 -0
- package/src/modules/camera/VisionCameraModule.web.ts +661 -0
- package/src/modules/camera/index.ts +6 -0
- package/src/stores/kycStore.ts +161 -0
- package/src/types/KYC.types.ts +434 -0
- package/src/types/nativewind.d.ts +2 -0
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
export interface CameraCaptureResult {
|
|
4
|
+
success: boolean;
|
|
5
|
+
path?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface CameraPermissions {
|
|
10
|
+
camera: 'granted' | 'denied' | 'restricted' | 'not-determined';
|
|
11
|
+
microphone: 'granted' | 'denied' | 'restricted' | 'not-determined';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CameraDevice {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
position: 'front' | 'back';
|
|
18
|
+
hasFlash: boolean;
|
|
19
|
+
hasTorch: boolean;
|
|
20
|
+
supportsLowLightBoost: boolean;
|
|
21
|
+
supportsFocus: boolean;
|
|
22
|
+
supportsVideoStabilization: boolean;
|
|
23
|
+
supportsVideoHDR: boolean;
|
|
24
|
+
supportsPhotoHDR: boolean;
|
|
25
|
+
supportsDepthCapture: boolean;
|
|
26
|
+
supportsPortraitEffectsMatteDelivery: boolean;
|
|
27
|
+
supportsRawCapture: boolean;
|
|
28
|
+
supportsZoom: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface PhotoFile {
|
|
32
|
+
path: string;
|
|
33
|
+
width: number;
|
|
34
|
+
height: number;
|
|
35
|
+
isRawPhoto: boolean;
|
|
36
|
+
metadata?: any;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class VisionCameraModule {
|
|
40
|
+
private static instance: VisionCameraModule;
|
|
41
|
+
private videoElement: HTMLVideoElement | null = null;
|
|
42
|
+
private canvasElement: HTMLCanvasElement | null = null;
|
|
43
|
+
private stream: MediaStream | null = null;
|
|
44
|
+
private isCameraActive = false;
|
|
45
|
+
|
|
46
|
+
public static getInstance(): VisionCameraModule {
|
|
47
|
+
if (!VisionCameraModule.instance) {
|
|
48
|
+
VisionCameraModule.instance = new VisionCameraModule();
|
|
49
|
+
}
|
|
50
|
+
return VisionCameraModule.instance;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor() {
|
|
54
|
+
console.log('VisionCameraModule.web constructor called');
|
|
55
|
+
console.log('Platform:', Platform.OS);
|
|
56
|
+
|
|
57
|
+
// Créer les éléments DOM nécessaires
|
|
58
|
+
this.createVideoElements();
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private createVideoElements() {
|
|
62
|
+
// Créer un élément vidéo caché pour la capture
|
|
63
|
+
this.videoElement = document.createElement('video');
|
|
64
|
+
this.videoElement.style.position = 'absolute';
|
|
65
|
+
this.videoElement.style.left = '-9999px';
|
|
66
|
+
this.videoElement.style.top = '-9999px';
|
|
67
|
+
this.videoElement.autoplay = true;
|
|
68
|
+
this.videoElement.muted = true;
|
|
69
|
+
this.videoElement.playsInline = true;
|
|
70
|
+
|
|
71
|
+
// Créer un canvas caché pour la capture d'image
|
|
72
|
+
this.canvasElement = document.createElement('canvas');
|
|
73
|
+
this.canvasElement.style.position = 'absolute';
|
|
74
|
+
this.canvasElement.style.left = '-9999px';
|
|
75
|
+
this.canvasElement.style.top = '-9999px';
|
|
76
|
+
|
|
77
|
+
// Ajouter les éléments au DOM
|
|
78
|
+
document.body.appendChild(this.videoElement);
|
|
79
|
+
document.body.appendChild(this.canvasElement);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Get available camera devices (web simulation)
|
|
84
|
+
*/
|
|
85
|
+
async getCameraDevices(): Promise<CameraDevice[]> {
|
|
86
|
+
try {
|
|
87
|
+
if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices) {
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const devices = await navigator.mediaDevices.enumerateDevices();
|
|
92
|
+
const videoDevices = devices.filter(device => device.kind === 'videoinput');
|
|
93
|
+
|
|
94
|
+
return videoDevices.map((device, index) => ({
|
|
95
|
+
id: device.deviceId || `web_camera_${index}`,
|
|
96
|
+
name: device.label || `Camera ${index + 1}`,
|
|
97
|
+
position: index === 0 ? 'front' : 'back', // Première caméra = front, autres = back
|
|
98
|
+
hasFlash: false,
|
|
99
|
+
hasTorch: false,
|
|
100
|
+
supportsLowLightBoost: false,
|
|
101
|
+
supportsFocus: true,
|
|
102
|
+
supportsVideoStabilization: false,
|
|
103
|
+
supportsVideoHDR: false,
|
|
104
|
+
supportsPhotoHDR: false,
|
|
105
|
+
supportsDepthCapture: false,
|
|
106
|
+
supportsPortraitEffectsMatteDelivery: false,
|
|
107
|
+
supportsRawCapture: false,
|
|
108
|
+
supportsZoom: true,
|
|
109
|
+
}));
|
|
110
|
+
} catch (error) {
|
|
111
|
+
console.error('Error getting camera devices:', error);
|
|
112
|
+
return [];
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Get the best available device for selfies (front camera)
|
|
118
|
+
*/
|
|
119
|
+
async getFrontCameraDevice(): Promise<CameraDevice | null> {
|
|
120
|
+
try {
|
|
121
|
+
const devices = await this.getCameraDevices();
|
|
122
|
+
const frontCamera = devices.find(device => device.position === 'front');
|
|
123
|
+
return frontCamera || null;
|
|
124
|
+
} catch (error) {
|
|
125
|
+
console.error('Error getting front camera:', error);
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Get the best available device for document capture (back camera)
|
|
132
|
+
*/
|
|
133
|
+
async getBackCameraDevice(): Promise<CameraDevice | null> {
|
|
134
|
+
try {
|
|
135
|
+
const devices = await this.getCameraDevices();
|
|
136
|
+
const backCamera = devices.find(device => device.position === 'back');
|
|
137
|
+
return backCamera || null;
|
|
138
|
+
} catch (error) {
|
|
139
|
+
console.error('Error getting back camera:', error);
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Request camera permissions
|
|
146
|
+
*/
|
|
147
|
+
async requestCameraPermission(): Promise<boolean> {
|
|
148
|
+
try {
|
|
149
|
+
if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) {
|
|
150
|
+
console.warn('getUserMedia not supported');
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const stream = await navigator.mediaDevices.getUserMedia({
|
|
155
|
+
video: {
|
|
156
|
+
facingMode: 'user',
|
|
157
|
+
width: { ideal: 1280 },
|
|
158
|
+
height: { ideal: 720 }
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
// Libérer le stream de test
|
|
163
|
+
stream.getTracks().forEach(track => track.stop());
|
|
164
|
+
|
|
165
|
+
return true;
|
|
166
|
+
} catch (error) {
|
|
167
|
+
console.error('Error requesting camera permission:', error);
|
|
168
|
+
return false;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Request microphone permissions
|
|
174
|
+
*/
|
|
175
|
+
async requestMicrophonePermission(): Promise<boolean> {
|
|
176
|
+
try {
|
|
177
|
+
if (!navigator.mediaDevices || !navigator.mediaDevices.getUserMedia) {
|
|
178
|
+
console.warn('getUserMedia not supported');
|
|
179
|
+
return false;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
183
|
+
|
|
184
|
+
// Libérer le stream de test
|
|
185
|
+
stream.getTracks().forEach(track => track.stop());
|
|
186
|
+
|
|
187
|
+
return true;
|
|
188
|
+
} catch (error) {
|
|
189
|
+
console.error('Error requesting microphone permission:', error);
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Get current permission status
|
|
196
|
+
*/
|
|
197
|
+
async getPermissionStatus(): Promise<CameraPermissions> {
|
|
198
|
+
try {
|
|
199
|
+
const cameraGranted = await this.requestCameraPermission();
|
|
200
|
+
const microphoneGranted = await this.requestMicrophonePermission();
|
|
201
|
+
|
|
202
|
+
return {
|
|
203
|
+
camera: cameraGranted ? 'granted' : 'denied',
|
|
204
|
+
microphone: microphoneGranted ? 'granted' : 'denied',
|
|
205
|
+
};
|
|
206
|
+
} catch (error) {
|
|
207
|
+
console.error('Error getting permission status:', error);
|
|
208
|
+
return {
|
|
209
|
+
camera: 'denied',
|
|
210
|
+
microphone: 'denied',
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Check if all required permissions are granted
|
|
217
|
+
*/
|
|
218
|
+
async hasAllPermissions(): Promise<boolean> {
|
|
219
|
+
try {
|
|
220
|
+
const status = await this.getPermissionStatus();
|
|
221
|
+
return status.camera === 'granted' && status.microphone === 'granted';
|
|
222
|
+
} catch (error) {
|
|
223
|
+
console.error('Error checking permissions:', error);
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Request all required permissions
|
|
230
|
+
*/
|
|
231
|
+
async requestAllPermissions(): Promise<boolean> {
|
|
232
|
+
try {
|
|
233
|
+
const [cameraGranted, microphoneGranted] = await Promise.all([
|
|
234
|
+
this.requestCameraPermission(),
|
|
235
|
+
this.requestMicrophonePermission(),
|
|
236
|
+
]);
|
|
237
|
+
|
|
238
|
+
return cameraGranted && microphoneGranted;
|
|
239
|
+
} catch (error) {
|
|
240
|
+
console.error('Error requesting permissions:', error);
|
|
241
|
+
return false;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Check if camera is available
|
|
247
|
+
*/
|
|
248
|
+
async isCameraAvailable(): Promise<boolean> {
|
|
249
|
+
try {
|
|
250
|
+
if (Platform.OS === 'web') {
|
|
251
|
+
const devices = await this.getCameraDevices();
|
|
252
|
+
return devices.length > 0;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return false; // Sur le web, on utilise notre implémentation
|
|
256
|
+
} catch (error) {
|
|
257
|
+
console.error('Error checking camera availability:', error);
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Process photo capture result
|
|
264
|
+
*/
|
|
265
|
+
processPhotoResult(photo: PhotoFile): CameraCaptureResult {
|
|
266
|
+
try {
|
|
267
|
+
return {
|
|
268
|
+
success: true,
|
|
269
|
+
path: photo.path,
|
|
270
|
+
};
|
|
271
|
+
} catch (error) {
|
|
272
|
+
console.error('Error processing photo result:', error);
|
|
273
|
+
return {
|
|
274
|
+
success: false,
|
|
275
|
+
error: error instanceof Error ? error.message : 'Unknown error processing photo',
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Legacy method for backward compatibility
|
|
282
|
+
* @deprecated Use VisionCameraView component instead
|
|
283
|
+
*/
|
|
284
|
+
async openCameraWithInstructions(instructions: string): Promise<CameraCaptureResult> {
|
|
285
|
+
console.warn('openCameraWithInstructions is deprecated. Use VisionCameraView component instead.');
|
|
286
|
+
|
|
287
|
+
try {
|
|
288
|
+
const hasPermissions = await this.requestAllPermissions();
|
|
289
|
+
if (!hasPermissions) {
|
|
290
|
+
return {
|
|
291
|
+
success: false,
|
|
292
|
+
error: 'Camera permissions not granted',
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const isAvailable = await this.isCameraAvailable();
|
|
297
|
+
if (!isAvailable) {
|
|
298
|
+
return {
|
|
299
|
+
success: false,
|
|
300
|
+
error: 'Camera not available',
|
|
301
|
+
};
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// Démarrer la caméra
|
|
305
|
+
await this.startCamera();
|
|
306
|
+
|
|
307
|
+
// Créer une interface utilisateur pour la capture
|
|
308
|
+
const captureResult = await this.showCameraInterface(instructions);
|
|
309
|
+
|
|
310
|
+
// Arrêter la caméra
|
|
311
|
+
await this.stopCamera();
|
|
312
|
+
|
|
313
|
+
return captureResult;
|
|
314
|
+
} catch (error) {
|
|
315
|
+
console.error('Error in openCameraWithInstructions:', error);
|
|
316
|
+
await this.stopCamera();
|
|
317
|
+
return {
|
|
318
|
+
success: false,
|
|
319
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Démarre la caméra
|
|
326
|
+
*/
|
|
327
|
+
private async startCamera(): Promise<void> {
|
|
328
|
+
try {
|
|
329
|
+
if (this.isCameraActive) {
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
this.stream = await navigator.mediaDevices.getUserMedia({
|
|
334
|
+
video: {
|
|
335
|
+
facingMode: 'user',
|
|
336
|
+
width: { ideal: 1280 },
|
|
337
|
+
height: { ideal: 720 }
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
if (this.videoElement) {
|
|
342
|
+
this.videoElement.srcObject = this.stream;
|
|
343
|
+
await this.videoElement.play();
|
|
344
|
+
this.isCameraActive = true;
|
|
345
|
+
}
|
|
346
|
+
} catch (error) {
|
|
347
|
+
console.error('Error starting camera:', error);
|
|
348
|
+
throw error;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Arrête la caméra
|
|
354
|
+
*/
|
|
355
|
+
private async stopCamera(): Promise<void> {
|
|
356
|
+
try {
|
|
357
|
+
if (this.stream) {
|
|
358
|
+
this.stream.getTracks().forEach(track => track.stop());
|
|
359
|
+
this.stream = null;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
if (this.videoElement) {
|
|
363
|
+
this.videoElement.srcObject = null;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
this.isCameraActive = false;
|
|
367
|
+
} catch (error) {
|
|
368
|
+
console.error('Error stopping camera:', error);
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Affiche l'interface de la caméra
|
|
374
|
+
*/
|
|
375
|
+
private async showCameraInterface(instructions: string): Promise<CameraCaptureResult> {
|
|
376
|
+
return new Promise((resolve) => {
|
|
377
|
+
// Créer l'interface utilisateur
|
|
378
|
+
const overlay = this.createCameraOverlay(instructions);
|
|
379
|
+
|
|
380
|
+
// Ajouter au DOM
|
|
381
|
+
document.body.appendChild(overlay);
|
|
382
|
+
|
|
383
|
+
// Gérer la capture
|
|
384
|
+
const captureButton = overlay.querySelector('.capture-btn') as HTMLButtonElement;
|
|
385
|
+
const cancelButton = overlay.querySelector('.cancel-btn') as HTMLButtonElement;
|
|
386
|
+
|
|
387
|
+
captureButton.addEventListener('click', async () => {
|
|
388
|
+
const result = await this.captureImage();
|
|
389
|
+
document.body.removeChild(overlay);
|
|
390
|
+
resolve(result);
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
cancelButton.addEventListener('click', () => {
|
|
394
|
+
document.body.removeChild(overlay);
|
|
395
|
+
resolve({
|
|
396
|
+
success: false,
|
|
397
|
+
error: 'Capture cancelled by user'
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Crée l'overlay de la caméra
|
|
405
|
+
*/
|
|
406
|
+
private createCameraOverlay(instructions: string): HTMLElement {
|
|
407
|
+
const overlay = document.createElement('div');
|
|
408
|
+
overlay.style.cssText = `
|
|
409
|
+
position: fixed;
|
|
410
|
+
top: 0;
|
|
411
|
+
left: 0;
|
|
412
|
+
width: 100vw;
|
|
413
|
+
height: 100vh;
|
|
414
|
+
background: rgba(0, 0, 0, 0.9);
|
|
415
|
+
z-index: 10000;
|
|
416
|
+
display: flex;
|
|
417
|
+
flex-direction: column;
|
|
418
|
+
align-items: center;
|
|
419
|
+
justify-content: center;
|
|
420
|
+
font-family: Arial, sans-serif;
|
|
421
|
+
color: white;
|
|
422
|
+
`;
|
|
423
|
+
|
|
424
|
+
// Instructions
|
|
425
|
+
const instructionsDiv = document.createElement('div');
|
|
426
|
+
instructionsDiv.style.cssText = `
|
|
427
|
+
text-align: center;
|
|
428
|
+
margin-bottom: 20px;
|
|
429
|
+
padding: 20px;
|
|
430
|
+
background: rgba(255, 255, 255, 0.1);
|
|
431
|
+
border-radius: 10px;
|
|
432
|
+
max-width: 400px;
|
|
433
|
+
`;
|
|
434
|
+
instructionsDiv.innerHTML = `
|
|
435
|
+
<h3 style="margin: 0 0 10px 0;">Instructions</h3>
|
|
436
|
+
<p style="margin: 0;">${instructions}</p>
|
|
437
|
+
`;
|
|
438
|
+
|
|
439
|
+
// Aperçu vidéo
|
|
440
|
+
const videoPreview = document.createElement('div');
|
|
441
|
+
videoPreview.style.cssText = `
|
|
442
|
+
width: 400px;
|
|
443
|
+
height: 300px;
|
|
444
|
+
background: #000;
|
|
445
|
+
border-radius: 10px;
|
|
446
|
+
margin-bottom: 20px;
|
|
447
|
+
overflow: hidden;
|
|
448
|
+
position: relative;
|
|
449
|
+
`;
|
|
450
|
+
|
|
451
|
+
if (this.videoElement) {
|
|
452
|
+
this.videoElement.style.cssText = `
|
|
453
|
+
position: relative;
|
|
454
|
+
width: 100%;
|
|
455
|
+
height: 100%;
|
|
456
|
+
object-fit: cover;
|
|
457
|
+
`;
|
|
458
|
+
videoPreview.appendChild(this.videoElement);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
// Boutons
|
|
462
|
+
const buttonContainer = document.createElement('div');
|
|
463
|
+
buttonContainer.style.cssText = `
|
|
464
|
+
display: flex;
|
|
465
|
+
gap: 20px;
|
|
466
|
+
`;
|
|
467
|
+
|
|
468
|
+
const captureBtn = document.createElement('button');
|
|
469
|
+
captureBtn.className = 'capture-btn';
|
|
470
|
+
captureBtn.textContent = '📸 Capturer';
|
|
471
|
+
captureBtn.style.cssText = `
|
|
472
|
+
padding: 15px 30px;
|
|
473
|
+
font-size: 16px;
|
|
474
|
+
background: #007AFF;
|
|
475
|
+
color: white;
|
|
476
|
+
border: none;
|
|
477
|
+
border-radius: 25px;
|
|
478
|
+
cursor: pointer;
|
|
479
|
+
font-weight: bold;
|
|
480
|
+
`;
|
|
481
|
+
|
|
482
|
+
const cancelBtn = document.createElement('button');
|
|
483
|
+
cancelBtn.className = 'cancel-btn';
|
|
484
|
+
cancelBtn.textContent = '❌ Annuler';
|
|
485
|
+
cancelBtn.style.cssText = `
|
|
486
|
+
padding: 15px 30px;
|
|
487
|
+
font-size: 16px;
|
|
488
|
+
background: #FF3B30;
|
|
489
|
+
color: white;
|
|
490
|
+
border: none;
|
|
491
|
+
border-radius: 25px;
|
|
492
|
+
cursor: pointer;
|
|
493
|
+
font-weight: bold;
|
|
494
|
+
`;
|
|
495
|
+
|
|
496
|
+
buttonContainer.appendChild(captureBtn);
|
|
497
|
+
buttonContainer.appendChild(cancelBtn);
|
|
498
|
+
|
|
499
|
+
overlay.appendChild(instructionsDiv);
|
|
500
|
+
overlay.appendChild(videoPreview);
|
|
501
|
+
overlay.appendChild(buttonContainer);
|
|
502
|
+
|
|
503
|
+
return overlay;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
/**
|
|
507
|
+
* Capture une image depuis la vidéo
|
|
508
|
+
*/
|
|
509
|
+
private async captureImage(): Promise<CameraCaptureResult> {
|
|
510
|
+
try {
|
|
511
|
+
if (!this.videoElement || !this.canvasElement) {
|
|
512
|
+
return {
|
|
513
|
+
success: false,
|
|
514
|
+
error: 'Video or canvas element not available'
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// Configurer le canvas
|
|
519
|
+
this.canvasElement.width = this.videoElement.videoWidth;
|
|
520
|
+
this.canvasElement.height = this.videoElement.videoHeight;
|
|
521
|
+
|
|
522
|
+
// Dessiner la frame actuelle sur le canvas
|
|
523
|
+
const context = this.canvasElement.getContext('2d');
|
|
524
|
+
if (!context) {
|
|
525
|
+
return {
|
|
526
|
+
success: false,
|
|
527
|
+
error: 'Canvas context not available'
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
context.drawImage(this.videoElement, 0, 0);
|
|
532
|
+
|
|
533
|
+
// Convertir en base64
|
|
534
|
+
const imageDataUrl = this.canvasElement.toDataURL('image/jpeg', 0.8);
|
|
535
|
+
|
|
536
|
+
// Créer un nom de fichier unique
|
|
537
|
+
const timestamp = new Date().getTime();
|
|
538
|
+
const filename = `web_capture_${timestamp}.jpg`;
|
|
539
|
+
console.log('imageDataUrl', imageDataUrl, filename);
|
|
540
|
+
|
|
541
|
+
return {
|
|
542
|
+
success: true,
|
|
543
|
+
path: imageDataUrl,
|
|
544
|
+
};
|
|
545
|
+
} catch (error) {
|
|
546
|
+
console.error('Error capturing image:', error);
|
|
547
|
+
return {
|
|
548
|
+
success: false,
|
|
549
|
+
error: error instanceof Error ? error.message : 'Unknown error'
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Test simple du module web
|
|
556
|
+
*/
|
|
557
|
+
async testModule(): Promise<string> {
|
|
558
|
+
try {
|
|
559
|
+
const hasCamera = await this.isCameraAvailable();
|
|
560
|
+
if (hasCamera) {
|
|
561
|
+
return 'Web VisionCameraModule working';
|
|
562
|
+
} else {
|
|
563
|
+
return 'No camera available';
|
|
564
|
+
}
|
|
565
|
+
} catch (error) {
|
|
566
|
+
console.error('Error testing web module:', error);
|
|
567
|
+
return 'Test failed';
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Ouvre le sélecteur de fichiers
|
|
573
|
+
*/
|
|
574
|
+
async openFilePicker(allowedTypes: string[] = ['*/*']): Promise<{ success: boolean; uri?: string; path?: string; error?: string }> {
|
|
575
|
+
try {
|
|
576
|
+
// Créer un input file caché
|
|
577
|
+
const input = document.createElement('input');
|
|
578
|
+
input.type = 'file';
|
|
579
|
+
input.accept = allowedTypes.join(',');
|
|
580
|
+
input.style.position = 'absolute';
|
|
581
|
+
input.style.left = '-9999px';
|
|
582
|
+
input.style.top = '-9999px';
|
|
583
|
+
|
|
584
|
+
document.body.appendChild(input);
|
|
585
|
+
|
|
586
|
+
return new Promise((resolve) => {
|
|
587
|
+
input.onchange = (event) => {
|
|
588
|
+
const target = event.target as HTMLInputElement;
|
|
589
|
+
const file = target.files?.[0];
|
|
590
|
+
|
|
591
|
+
if (file) {
|
|
592
|
+
const reader = new FileReader();
|
|
593
|
+
reader.onload = () => {
|
|
594
|
+
const result = reader.result as string;
|
|
595
|
+
document.body.removeChild(input);
|
|
596
|
+
resolve({
|
|
597
|
+
success: true,
|
|
598
|
+
uri: result,
|
|
599
|
+
path: result
|
|
600
|
+
});
|
|
601
|
+
};
|
|
602
|
+
reader.readAsDataURL(file);
|
|
603
|
+
} else {
|
|
604
|
+
document.body.removeChild(input);
|
|
605
|
+
resolve({
|
|
606
|
+
success: false,
|
|
607
|
+
error: 'No file selected'
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
input.click();
|
|
613
|
+
});
|
|
614
|
+
} catch (error) {
|
|
615
|
+
console.error('Error opening file picker:', error);
|
|
616
|
+
return {
|
|
617
|
+
success: false,
|
|
618
|
+
error: error instanceof Error ? error.message : 'Unknown error'
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Écoute les événements de la caméra (simulation pour le web)
|
|
625
|
+
*/
|
|
626
|
+
onCameraCapture(callback: (event: any) => void) {
|
|
627
|
+
console.log('onCameraCapture listener added (web simulation)');
|
|
628
|
+
return { remove: () => {} };
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Écoute les événements de sélection de fichiers (simulation pour le web)
|
|
633
|
+
*/
|
|
634
|
+
onFileSelected(callback: (event: any) => void) {
|
|
635
|
+
console.log('onFileSelected listener added (web simulation)');
|
|
636
|
+
return { remove: () => {} };
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* Écoute les erreurs (simulation pour le web)
|
|
641
|
+
*/
|
|
642
|
+
onError(callback: (event: any) => void) {
|
|
643
|
+
console.log('onError listener added (web simulation)');
|
|
644
|
+
return { remove: () => {} };
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Nettoyage des ressources
|
|
649
|
+
*/
|
|
650
|
+
destroy() {
|
|
651
|
+
this.stopCamera();
|
|
652
|
+
if (this.videoElement && this.videoElement.parentNode) {
|
|
653
|
+
this.videoElement.parentNode.removeChild(this.videoElement);
|
|
654
|
+
}
|
|
655
|
+
if (this.canvasElement && this.canvasElement.parentNode) {
|
|
656
|
+
this.canvasElement.parentNode.removeChild(this.canvasElement);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export default VisionCameraModule.getInstance();
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as NativeCameraModule } from './NativeCameraModule';
|
|
2
|
+
export { default as VisionCameraModule } from './VisionCameraModule';
|
|
3
|
+
export { default as UnifiedCameraModule } from './UnifiedCameraModule';
|
|
4
|
+
|
|
5
|
+
// Types communs
|
|
6
|
+
export type { CameraCaptureResult, FilePickerResult } from './UnifiedCameraModule';
|