@sanctum-key/react-native-sdk 1.0.0
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 +278 -0
- package/android/build/.transforms/f62cb96b2d1f78ca96ab35932dd530dc/results.bin +1 -0
- package/android/build/.transforms/f62cb96b2d1f78ca96ab35932dd530dc/transformed/classes/classes_dex/classes.dex +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 +69 -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-react-native-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 +110 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +69 -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_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 +101 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/transfergratis-react-native-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 +43 -0
- package/android/src/main/AndroidManifest.xml +49 -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/api/axios.d.ts +30 -0
- package/build/api/axios.d.ts.map +1 -0
- package/build/api/axios.js +92 -0
- package/build/api/axios.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 +4 -0
- package/build/components/EnhancedCameraView.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.js +393 -0
- package/build/components/EnhancedCameraView.js.map +1 -0
- package/build/components/EnhancedCameraView.web.d.ts +4 -0
- package/build/components/EnhancedCameraView.web.d.ts.map +1 -0
- package/build/components/EnhancedCameraView.web.js +499 -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/AdditionalDocumentsTemplate.d.ts +12 -0
- package/build/components/KYCElements/AdditionalDocumentsTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/AdditionalDocumentsTemplate.js +283 -0
- package/build/components/KYCElements/AdditionalDocumentsTemplate.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 +219 -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 +15 -0
- package/build/components/KYCElements/CountrySelectionTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/CountrySelectionTemplate.js +438 -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/EmailVerificationTemplate.d.ts +12 -0
- package/build/components/KYCElements/EmailVerificationTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/EmailVerificationTemplate.js +212 -0
- package/build/components/KYCElements/EmailVerificationTemplate.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 +268 -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 +331 -0
- package/build/components/KYCElements/FileUploadTemplate.js.map +1 -0
- package/build/components/KYCElements/IDCardCapture.d.ts +19 -0
- package/build/components/KYCElements/IDCardCapture.d.ts.map +1 -0
- package/build/components/KYCElements/IDCardCapture.js +877 -0
- package/build/components/KYCElements/IDCardCapture.js.map +1 -0
- package/build/components/KYCElements/InitializationStep.d.ts +5 -0
- package/build/components/KYCElements/InitializationStep.d.ts.map +1 -0
- package/build/components/KYCElements/InitializationStep.js +41 -0
- package/build/components/KYCElements/InitializationStep.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 +318 -0
- package/build/components/KYCElements/LocationCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts +14 -0
- package/build/components/KYCElements/OrientationVideoCapture.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCapture.js +534 -0
- package/build/components/KYCElements/OrientationVideoCapture.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts +14 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js +504 -0
- package/build/components/KYCElements/OrientationVideoCaptureEnhanced.js.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts +14 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.d.ts.map +1 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js +430 -0
- package/build/components/KYCElements/OrientationVideoCaptureFinal.js.map +1 -0
- package/build/components/KYCElements/PersonalInformationTemplate.d.ts +12 -0
- package/build/components/KYCElements/PersonalInformationTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/PersonalInformationTemplate.js +120 -0
- package/build/components/KYCElements/PersonalInformationTemplate.js.map +1 -0
- package/build/components/KYCElements/PhoneVerificationTemplate.d.ts +12 -0
- package/build/components/KYCElements/PhoneVerificationTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/PhoneVerificationTemplate.js +185 -0
- package/build/components/KYCElements/PhoneVerificationTemplate.js.map +1 -0
- package/build/components/KYCElements/ReviewSubmitTemplate.d.ts +12 -0
- package/build/components/KYCElements/ReviewSubmitTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/ReviewSubmitTemplate.js +171 -0
- package/build/components/KYCElements/ReviewSubmitTemplate.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 +236 -0
- package/build/components/KYCElements/SelfieCapture.js.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts +16 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js +568 -0
- package/build/components/KYCElements/SelfieCaptureTemplate.js.map +1 -0
- package/build/components/KYCElements/VerificationProgressTemplate.d.ts +12 -0
- package/build/components/KYCElements/VerificationProgressTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/VerificationProgressTemplate.js +195 -0
- package/build/components/KYCElements/VerificationProgressTemplate.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/KYCElements/WelcomeTemplate.d.ts +12 -0
- package/build/components/KYCElements/WelcomeTemplate.d.ts.map +1 -0
- package/build/components/KYCElements/WelcomeTemplate.js +244 -0
- package/build/components/KYCElements/WelcomeTemplate.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 +185 -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 +169 -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 +53 -0
- package/build/components/OverLay/StepOverlay.js.map +1 -0
- package/build/components/OverLay/type.d.ts +98 -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/directionArrow.gif +0 -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 +22 -0
- package/build/components/TemplateKYCExample.d.ts.map +1 -0
- package/build/components/TemplateKYCExample.js +155 -0
- package/build/components/TemplateKYCExample.js.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts +26 -0
- package/build/components/TemplateKYCFlowRefactored.d.ts.map +1 -0
- package/build/components/TemplateKYCFlowRefactored.js +359 -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/DynamicTemplateExample.d.ts +10 -0
- package/build/components/example/DynamicTemplateExample.d.ts.map +1 -0
- package/build/components/example/DynamicTemplateExample.js +241 -0
- package/build/components/example/DynamicTemplateExample.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 +325 -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/KYCConfig.d.ts +14 -0
- package/build/config/KYCConfig.d.ts.map +1 -0
- package/build/config/KYCConfig.js +26 -0
- package/build/config/KYCConfig.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/config/allowedDomains.d.ts +30 -0
- package/build/config/allowedDomains.d.ts.map +1 -0
- package/build/config/allowedDomains.js +112 -0
- package/build/config/allowedDomains.js.map +1 -0
- package/build/config/countriesData.d.ts +3 -0
- package/build/config/countriesData.d.ts.map +1 -0
- package/build/config/countriesData.js +80 -0
- package/build/config/countriesData.js.map +1 -0
- package/build/config/region_mapping.d.ts +3 -0
- package/build/config/region_mapping.d.ts.map +1 -0
- package/build/config/region_mapping.js +736 -0
- package/build/config/region_mapping.js.map +1 -0
- package/build/hooks/useI18n.d.ts +11 -0
- package/build/hooks/useI18n.d.ts.map +1 -0
- package/build/hooks/useI18n.js +37 -0
- package/build/hooks/useI18n.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 +118 -0
- package/build/hooks/useOrientationVideo.js.map +1 -0
- package/build/hooks/useRealtimeVerifier.d.ts +28 -0
- package/build/hooks/useRealtimeVerifier.d.ts.map +1 -0
- package/build/hooks/useRealtimeVerifier.js +91 -0
- package/build/hooks/useRealtimeVerifier.js.map +1 -0
- package/build/hooks/useTemplateKYCFlow.d.ts +48 -0
- package/build/hooks/useTemplateKYCFlow.d.ts.map +1 -0
- package/build/hooks/useTemplateKYCFlow.js +910 -0
- package/build/hooks/useTemplateKYCFlow.js.map +1 -0
- package/build/hooks/useTemplateLoader.d.ts +14 -0
- package/build/hooks/useTemplateLoader.d.ts.map +1 -0
- package/build/hooks/useTemplateLoader.js +85 -0
- package/build/hooks/useTemplateLoader.js.map +1 -0
- package/build/i18n/en/index.d.ts +233 -0
- package/build/i18n/en/index.d.ts.map +1 -0
- package/build/i18n/en/index.js +261 -0
- package/build/i18n/en/index.js.map +1 -0
- package/build/i18n/fr/index.d.ts +219 -0
- package/build/i18n/fr/index.d.ts.map +1 -0
- package/build/i18n/fr/index.js +246 -0
- package/build/i18n/fr/index.js.map +1 -0
- package/build/i18n/index.d.ts +10 -0
- package/build/i18n/index.d.ts.map +1 -0
- package/build/i18n/index.js +56 -0
- package/build/i18n/index.js.map +1 -0
- package/build/i18n/types.d.ts +162 -0
- package/build/i18n/types.d.ts.map +1 -0
- package/build/i18n/types.js +3 -0
- package/build/i18n/types.js.map +1 -0
- package/build/i18n/usage-example.d.ts +4 -0
- package/build/i18n/usage-example.d.ts.map +1 -0
- package/build/i18n/usage-example.js +189 -0
- package/build/i18n/usage-example.js.map +1 -0
- package/build/index.d.ts +11 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +17 -0
- package/build/index.js.map +1 -0
- package/build/modules/api/CardAuthentification.d.ts +72 -0
- package/build/modules/api/CardAuthentification.d.ts.map +1 -0
- package/build/modules/api/CardAuthentification.js +487 -0
- package/build/modules/api/CardAuthentification.js.map +1 -0
- package/build/modules/api/KYCService.d.ts +116 -0
- package/build/modules/api/KYCService.d.ts.map +1 -0
- package/build/modules/api/KYCService.js +526 -0
- package/build/modules/api/KYCService.js.map +1 -0
- package/build/modules/api/SelfieVerification.d.ts +5 -0
- package/build/modules/api/SelfieVerification.d.ts.map +1 -0
- package/build/modules/api/SelfieVerification.js +25 -0
- package/build/modules/api/SelfieVerification.js.map +1 -0
- package/build/modules/api/TemplateService.d.ts +44 -0
- package/build/modules/api/TemplateService.d.ts.map +1 -0
- package/build/modules/api/TemplateService.js +146 -0
- package/build/modules/api/TemplateService.js.map +1 -0
- package/build/modules/api/backendApi.d.ts +2 -0
- package/build/modules/api/backendApi.d.ts.map +1 -0
- package/build/modules/api/backendApi.js +6 -0
- package/build/modules/api/backendApi.js.map +1 -0
- package/build/modules/api/types.d.ts +53 -0
- package/build/modules/api/types.d.ts.map +1 -0
- package/build/modules/api/types.js +2 -0
- package/build/modules/api/types.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 +313 -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 +589 -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 +643 -0
- package/build/types/KYC.types.d.ts.map +1 -0
- package/build/types/KYC.types.js +25 -0
- package/build/types/KYC.types.js.map +1 -0
- package/build/types/env.types.d.ts +13 -0
- package/build/types/env.types.d.ts.map +1 -0
- package/build/types/env.types.js +2 -0
- package/build/types/env.types.js.map +1 -0
- package/build/utils/cropByObb.d.ts +37 -0
- package/build/utils/cropByObb.d.ts.map +1 -0
- package/build/utils/cropByObb.js +215 -0
- package/build/utils/cropByObb.js.map +1 -0
- package/build/utils/deviceDetection.d.ts +6 -0
- package/build/utils/deviceDetection.d.ts.map +1 -0
- package/build/utils/deviceDetection.js +12 -0
- package/build/utils/deviceDetection.js.map +1 -0
- package/build/utils/get-document-type-info.d.ts +13 -0
- package/build/utils/get-document-type-info.d.ts.map +1 -0
- package/build/utils/get-document-type-info.js +59 -0
- package/build/utils/get-document-type-info.js.map +1 -0
- package/build/utils/logger.d.ts +12 -0
- package/build/utils/logger.d.ts.map +1 -0
- package/build/utils/logger.js +45 -0
- package/build/utils/logger.js.map +1 -0
- package/build/utils/pathToBase64.d.ts +3 -0
- package/build/utils/pathToBase64.d.ts.map +1 -0
- package/build/utils/pathToBase64.js +65 -0
- package/build/utils/pathToBase64.js.map +1 -0
- package/build/utils/platformAlert.d.ts +20 -0
- package/build/utils/platformAlert.d.ts.map +1 -0
- package/build/utils/platformAlert.js +67 -0
- package/build/utils/platformAlert.js.map +1 -0
- package/build/utils/remove-duplicate.d.ts +2 -0
- package/build/utils/remove-duplicate.d.ts.map +1 -0
- package/build/utils/remove-duplicate.js +4 -0
- package/build/utils/remove-duplicate.js.map +1 -0
- package/build/utils/template-transformer.d.ts +10 -0
- package/build/utils/template-transformer.d.ts.map +1 -0
- package/build/utils/template-transformer.js +365 -0
- package/build/utils/template-transformer.js.map +1 -0
- package/build/web/WebKYCEntry.d.ts +9 -0
- package/build/web/WebKYCEntry.d.ts.map +1 -0
- package/build/web/WebKYCEntry.js +288 -0
- package/build/web/WebKYCEntry.js.map +1 -0
- package/build/web/index.d.ts +2 -0
- package/build/web/index.d.ts.map +1 -0
- package/build/web/index.js +2 -0
- package/build/web/index.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 +71 -0
- package/plugin/build/index.d.ts +5 -0
- package/plugin/build/index.js +12 -0
- package/plugin/build/withLocation.d.ts +9 -0
- package/plugin/build/withLocation.js +77 -0
- package/plugin/build/withRemovePermissions.d.ts +3 -0
- package/plugin/build/withRemovePermissions.js +67 -0
- package/plugin/build/withVisionCamera.d.ts +8 -0
- package/plugin/build/withVisionCamera.js +68 -0
- package/plugin/src/index.ts +5 -0
- package/plugin/src/withLocation.ts +109 -0
- package/plugin/src/withRemovePermissions.js +85 -0
- package/plugin/src/withRemovePermissions.ts +83 -0
- package/plugin/src/withVisionCamera.js +88 -0
- package/plugin/src/withVisionCamera.ts +97 -0
- package/plugin/tsconfig.json +17 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/plugin.js +19 -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/api/axios.ts +144 -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 +482 -0
- package/src/components/EnhancedCameraView.web.tsx +597 -0
- package/src/components/FileUpload.tsx +249 -0
- package/src/components/KYCElementRenderer.tsx +106 -0
- package/src/components/KYCElements/AdditionalDocumentsTemplate.tsx +346 -0
- package/src/components/KYCElements/CameraCapture.tsx +268 -0
- package/src/components/KYCElements/CompletionStep.tsx +161 -0
- package/src/components/KYCElements/CountrySelection.tsx +177 -0
- package/src/components/KYCElements/CountrySelectionTemplate.tsx +526 -0
- package/src/components/KYCElements/DocumentTypeSelection.tsx +173 -0
- package/src/components/KYCElements/EmailVerificationTemplate.tsx +278 -0
- package/src/components/KYCElements/FileUpload.tsx +318 -0
- package/src/components/KYCElements/FileUploadTemplate.tsx +395 -0
- package/src/components/KYCElements/IDCardCapture.tsx +1053 -0
- package/src/components/KYCElements/InitializationStep.tsx +53 -0
- package/src/components/KYCElements/LocationCaptureTemplate.tsx +378 -0
- package/src/components/KYCElements/OrientationVideoCapture.tsx +649 -0
- package/src/components/KYCElements/OrientationVideoCaptureEnhanced.tsx +616 -0
- package/src/components/KYCElements/OrientationVideoCaptureFinal.tsx +534 -0
- package/src/components/KYCElements/PersonalInformationTemplate.tsx +158 -0
- package/src/components/KYCElements/PhoneVerificationTemplate.tsx +253 -0
- package/src/components/KYCElements/ReviewSubmitTemplate.tsx +201 -0
- package/src/components/KYCElements/SelfieCapture.tsx +284 -0
- package/src/components/KYCElements/SelfieCaptureTemplate.tsx +662 -0
- package/src/components/KYCElements/VerificationProgressTemplate.tsx +247 -0
- package/src/components/KYCElements/VerificationStep.tsx +234 -0
- package/src/components/KYCElements/WelcomeTemplate.tsx +290 -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 +277 -0
- package/src/components/OverLay/SelfieOverlay.tsx +211 -0
- package/src/components/OverLay/StepOverlay.tsx +64 -0
- package/src/components/OverLay/type.ts +91 -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 +194 -0
- package/src/components/TemplateKYCFlowRefactored.tsx +473 -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/DynamicTemplateExample.tsx +289 -0
- package/src/components/example/OrientationVideoExample.tsx +380 -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/KYCConfig.ts +34 -0
- package/src/config/KYCConfigs.ts +528 -0
- package/src/config/allowedDomains.ts +133 -0
- package/src/config/countriesData.ts +85 -0
- package/src/config/region_mapping.json +735 -0
- package/src/config/region_mapping.ts +737 -0
- package/src/hooks/useI18n.ts +53 -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 +149 -0
- package/src/hooks/useRealtimeVerifier.ts +128 -0
- package/src/hooks/useTemplateKYCFlow.tsx +1051 -0
- package/src/hooks/useTemplateLoader.ts +102 -0
- package/src/i18n/README.md +288 -0
- package/src/i18n/en/index.ts +275 -0
- package/src/i18n/fr/index.ts +260 -0
- package/src/i18n/index.ts +65 -0
- package/src/i18n/types.ts +182 -0
- package/src/i18n/usage-example.tsx +202 -0
- package/src/index.ts +25 -0
- package/src/modules/api/CardAuthentification.ts +589 -0
- package/src/modules/api/KYCService.ts +666 -0
- package/src/modules/api/SelfieVerification.ts +33 -0
- package/src/modules/api/TemplateService.ts +168 -0
- package/src/modules/api/backendApi.ts +8 -0
- package/src/modules/api/types.ts +59 -0
- package/src/modules/camera/NativeCameraModule.ts +170 -0
- package/src/modules/camera/UnifiedCameraModule.ts +160 -0
- package/src/modules/camera/VisionCameraModule.ts +334 -0
- package/src/modules/camera/VisionCameraModule.web.ts +679 -0
- package/src/modules/camera/index.ts +6 -0
- package/src/stores/kycStore.ts +161 -0
- package/src/types/KYC.types.ts +837 -0
- package/src/types/env.types.ts +13 -0
- package/src/utils/cropByObb.ts +254 -0
- package/src/utils/deviceDetection.ts +11 -0
- package/src/utils/get-document-type-info.ts +62 -0
- package/src/utils/logger.ts +48 -0
- package/src/utils/pathToBase64.ts +63 -0
- package/src/utils/platformAlert.ts +86 -0
- package/src/utils/remove-duplicate.ts +3 -0
- package/src/utils/template-transformer.ts +445 -0
- package/src/web/WebKYCEntry.tsx +375 -0
- package/src/web/index.ts +1 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const config_plugins_1 = require("@expo/config-plugins");
|
|
4
|
+
const withVisionCameraPermissions = (config, { cameraPermissionText = 'This app uses the camera to capture photos and videos for identity verification.', microphonePermissionText = 'This app uses the microphone to record audio for video capture.', enableFrameProcessors = false, } = {}) => {
|
|
5
|
+
// iOS permissions
|
|
6
|
+
config = (0, config_plugins_1.withInfoPlist)(config, (config) => {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
config.modResults.NSCameraUsageDescription =
|
|
9
|
+
(_a = config.modResults.NSCameraUsageDescription) !== null && _a !== void 0 ? _a : cameraPermissionText;
|
|
10
|
+
config.modResults.NSMicrophoneUsageDescription =
|
|
11
|
+
(_b = config.modResults.NSMicrophoneUsageDescription) !== null && _b !== void 0 ? _b : microphonePermissionText;
|
|
12
|
+
// Add frame processors support if enabled
|
|
13
|
+
if (enableFrameProcessors) {
|
|
14
|
+
config.modResults.UIBackgroundModes = config.modResults.UIBackgroundModes || [];
|
|
15
|
+
if (!config.modResults.UIBackgroundModes.includes('processing')) {
|
|
16
|
+
config.modResults.UIBackgroundModes.push('processing');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return config;
|
|
20
|
+
});
|
|
21
|
+
// Android permissions
|
|
22
|
+
config = (0, config_plugins_1.withAndroidManifest)(config, (config) => {
|
|
23
|
+
const androidManifest = config.modResults;
|
|
24
|
+
if (!androidManifest.manifest['uses-permission']) {
|
|
25
|
+
androidManifest.manifest['uses-permission'] = [];
|
|
26
|
+
}
|
|
27
|
+
const permissions = [
|
|
28
|
+
'android.permission.CAMERA',
|
|
29
|
+
'android.permission.RECORD_AUDIO',
|
|
30
|
+
];
|
|
31
|
+
// Note: WRITE_EXTERNAL_STORAGE is NOT needed even with frame processors
|
|
32
|
+
// Frame processors work in memory, and photos are saved to app's internal storage
|
|
33
|
+
// Adding storage permissions causes Google Play Store rejection for KYC apps
|
|
34
|
+
for (const permission of permissions) {
|
|
35
|
+
if (!androidManifest.manifest['uses-permission'].find((perm) => perm.$['android:name'] === permission)) {
|
|
36
|
+
androidManifest.manifest['uses-permission'].push({
|
|
37
|
+
$: { 'android:name': permission },
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
// Add camera features
|
|
42
|
+
if (!androidManifest.manifest['uses-feature']) {
|
|
43
|
+
androidManifest.manifest['uses-feature'] = [];
|
|
44
|
+
}
|
|
45
|
+
const cameraFeatures = [
|
|
46
|
+
{
|
|
47
|
+
$: {
|
|
48
|
+
'android:name': 'android.hardware.camera',
|
|
49
|
+
'android:required': 'true',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
$: {
|
|
54
|
+
'android:name': 'android.hardware.camera.autofocus',
|
|
55
|
+
'android:required': 'false',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
];
|
|
59
|
+
for (const feature of cameraFeatures) {
|
|
60
|
+
if (!androidManifest.manifest['uses-feature'].find((feat) => feat.$['android:name'] === feature.$['android:name'])) {
|
|
61
|
+
androidManifest.manifest['uses-feature'].push(feature);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return config;
|
|
65
|
+
});
|
|
66
|
+
return config;
|
|
67
|
+
};
|
|
68
|
+
exports.default = withVisionCameraPermissions;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as withVisionCamera } from './withVisionCamera';
|
|
2
|
+
export type { VisionCameraPluginProps } from './withVisionCamera';
|
|
3
|
+
export { default as withLocation } from './withLocation';
|
|
4
|
+
export type { LocationPluginProps } from './withLocation';
|
|
5
|
+
export { default as withRemovePermissions } from './withRemovePermissions';
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { ConfigPlugin, withInfoPlist, withAndroidManifest } from '@expo/config-plugins';
|
|
2
|
+
|
|
3
|
+
export interface LocationPluginProps {
|
|
4
|
+
locationPermissionText?: string;
|
|
5
|
+
locationAlwaysPermissionText?: string;
|
|
6
|
+
locationWhenInUsePermissionText?: string;
|
|
7
|
+
enableBackgroundLocation?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const withLocationPermissions: ConfigPlugin<LocationPluginProps> = (
|
|
11
|
+
config,
|
|
12
|
+
{
|
|
13
|
+
locationPermissionText = 'This app uses location to verify your identity and location.',
|
|
14
|
+
locationAlwaysPermissionText = 'This app uses location in the background to verify your identity and location.',
|
|
15
|
+
locationWhenInUsePermissionText = 'This app uses location to verify your identity and location.',
|
|
16
|
+
enableBackgroundLocation = false,
|
|
17
|
+
} = {}
|
|
18
|
+
) => {
|
|
19
|
+
// iOS permissions
|
|
20
|
+
config = withInfoPlist(config, (config) => {
|
|
21
|
+
config.modResults.NSLocationWhenInUseUsageDescription =
|
|
22
|
+
config.modResults.NSLocationWhenInUseUsageDescription ?? locationWhenInUsePermissionText;
|
|
23
|
+
|
|
24
|
+
if (enableBackgroundLocation) {
|
|
25
|
+
config.modResults.NSLocationAlwaysAndWhenInUseUsageDescription =
|
|
26
|
+
config.modResults.NSLocationAlwaysAndWhenInUseUsageDescription ?? locationAlwaysPermissionText;
|
|
27
|
+
|
|
28
|
+
config.modResults.NSLocationAlwaysUsageDescription =
|
|
29
|
+
config.modResults.NSLocationAlwaysUsageDescription ?? locationAlwaysPermissionText;
|
|
30
|
+
|
|
31
|
+
// Add background modes for location updates
|
|
32
|
+
config.modResults.UIBackgroundModes = config.modResults.UIBackgroundModes || [];
|
|
33
|
+
if (!config.modResults.UIBackgroundModes.includes('location')) {
|
|
34
|
+
config.modResults.UIBackgroundModes.push('location');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return config;
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// Android permissions
|
|
42
|
+
config = withAndroidManifest(config, (config) => {
|
|
43
|
+
const androidManifest = config.modResults;
|
|
44
|
+
|
|
45
|
+
if (!androidManifest.manifest['uses-permission']) {
|
|
46
|
+
androidManifest.manifest['uses-permission'] = [];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const permissions = [
|
|
50
|
+
'android.permission.ACCESS_FINE_LOCATION',
|
|
51
|
+
'android.permission.ACCESS_COARSE_LOCATION',
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
// Add background location permission if enabled
|
|
55
|
+
if (enableBackgroundLocation) {
|
|
56
|
+
permissions.push('android.permission.ACCESS_BACKGROUND_LOCATION');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
for (const permission of permissions) {
|
|
60
|
+
if (!androidManifest.manifest['uses-permission'].find(
|
|
61
|
+
(perm) => perm.$['android:name'] === permission
|
|
62
|
+
)) {
|
|
63
|
+
androidManifest.manifest['uses-permission'].push({
|
|
64
|
+
$: { 'android:name': permission },
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Add location features
|
|
70
|
+
if (!androidManifest.manifest['uses-feature']) {
|
|
71
|
+
androidManifest.manifest['uses-feature'] = [];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const locationFeatures = [
|
|
75
|
+
{
|
|
76
|
+
$: {
|
|
77
|
+
'android:name': 'android.hardware.location',
|
|
78
|
+
'android:required': 'false' as const,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
$: {
|
|
83
|
+
'android:name': 'android.hardware.location.gps',
|
|
84
|
+
'android:required': 'false' as const,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
$: {
|
|
89
|
+
'android:name': 'android.hardware.location.network',
|
|
90
|
+
'android:required': 'false' as const,
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
|
|
95
|
+
for (const feature of locationFeatures) {
|
|
96
|
+
if (!androidManifest.manifest['uses-feature'].find(
|
|
97
|
+
(feat) => feat.$['android:name'] === feature.$['android:name']
|
|
98
|
+
)) {
|
|
99
|
+
androidManifest.manifest['uses-feature'].push(feature);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return config;
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
return config;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
export default withLocationPermissions;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const { withAndroidManifest } = require('@expo/config-plugins');
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Plugin to remove unnecessary permissions that cause Google Play Store rejection.
|
|
5
|
+
*
|
|
6
|
+
* For KYC apps, we don't need persistent access to media files because:
|
|
7
|
+
* - Photos are taken directly with the camera
|
|
8
|
+
* - Photos are saved to app's internal storage (documentDirectory)
|
|
9
|
+
* - File selection uses Android Photo Picker API (no permissions needed)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// Permissions to remove - these cause Play Store rejection for KYC apps
|
|
13
|
+
const PERMISSIONS_TO_REMOVE = [
|
|
14
|
+
// Media permissions - not needed, causes Play Store rejection
|
|
15
|
+
'android.permission.READ_MEDIA_IMAGES',
|
|
16
|
+
'android.permission.READ_MEDIA_VIDEO',
|
|
17
|
+
'android.permission.READ_MEDIA_AUDIO',
|
|
18
|
+
|
|
19
|
+
// Storage permissions - not needed for KYC
|
|
20
|
+
'android.permission.READ_EXTERNAL_STORAGE',
|
|
21
|
+
'android.permission.WRITE_EXTERNAL_STORAGE',
|
|
22
|
+
|
|
23
|
+
// Contacts - not needed for KYC
|
|
24
|
+
'android.permission.READ_CONTACTS',
|
|
25
|
+
'android.permission.WRITE_CONTACTS',
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const withRemovePermissions = (config) => {
|
|
29
|
+
return withAndroidManifest(config, (config) => {
|
|
30
|
+
const androidManifest = config.modResults;
|
|
31
|
+
|
|
32
|
+
if (!androidManifest.manifest['uses-permission']) {
|
|
33
|
+
return config;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Filter out unwanted permissions
|
|
37
|
+
const originalCount = androidManifest.manifest['uses-permission'].length;
|
|
38
|
+
|
|
39
|
+
androidManifest.manifest['uses-permission'] = androidManifest.manifest['uses-permission'].filter(
|
|
40
|
+
(permission) => {
|
|
41
|
+
const permissionName = permission.$?.['android:name'];
|
|
42
|
+
const shouldRemove = PERMISSIONS_TO_REMOVE.includes(permissionName);
|
|
43
|
+
|
|
44
|
+
if (shouldRemove) {
|
|
45
|
+
console.log(`[withRemovePermissions] Removing: ${permissionName}`);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return !shouldRemove;
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const removedCount = originalCount - androidManifest.manifest['uses-permission'].length;
|
|
53
|
+
console.log(`[withRemovePermissions] Removed ${removedCount} permissions`);
|
|
54
|
+
|
|
55
|
+
// Also add tools:remove to explicitly block these permissions from being merged
|
|
56
|
+
// This prevents dependencies from re-adding them
|
|
57
|
+
if (!androidManifest.manifest.$) {
|
|
58
|
+
androidManifest.manifest.$ = {};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Ensure xmlns:tools is defined
|
|
62
|
+
androidManifest.manifest.$['xmlns:tools'] = 'http://schemas.android.com/tools';
|
|
63
|
+
|
|
64
|
+
// Add uses-permission with tools:node="remove" for each permission to block
|
|
65
|
+
for (const permissionName of PERMISSIONS_TO_REMOVE) {
|
|
66
|
+
// Check if a remove directive already exists
|
|
67
|
+
const existingRemove = androidManifest.manifest['uses-permission']?.find(
|
|
68
|
+
(p) => p.$?.['android:name'] === permissionName && p.$?.['tools:node'] === 'remove'
|
|
69
|
+
);
|
|
70
|
+
|
|
71
|
+
if (!existingRemove) {
|
|
72
|
+
androidManifest.manifest['uses-permission'].push({
|
|
73
|
+
$: {
|
|
74
|
+
'android:name': permissionName,
|
|
75
|
+
'tools:node': 'remove',
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return config;
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
module.exports = withRemovePermissions;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ConfigPlugin, withAndroidManifest, AndroidConfig } from '@expo/config-plugins';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Plugin to remove unnecessary permissions that cause Google Play Store rejection.
|
|
5
|
+
*
|
|
6
|
+
* For KYC apps, we don't need persistent access to media files because:
|
|
7
|
+
* - Photos are taken directly with the camera
|
|
8
|
+
* - Photos are saved to app's internal storage (documentDirectory)
|
|
9
|
+
* - File selection uses Android Photo Picker API (no permissions needed)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
// Permissions to remove - these cause Play Store rejection for KYC apps
|
|
13
|
+
const PERMISSIONS_TO_REMOVE = [
|
|
14
|
+
// Media permissions - not needed, causes Play Store rejection
|
|
15
|
+
'android.permission.READ_MEDIA_IMAGES',
|
|
16
|
+
'android.permission.READ_MEDIA_VIDEO',
|
|
17
|
+
'android.permission.READ_MEDIA_AUDIO',
|
|
18
|
+
|
|
19
|
+
// Storage permissions - not needed for KYC
|
|
20
|
+
'android.permission.READ_EXTERNAL_STORAGE',
|
|
21
|
+
'android.permission.WRITE_EXTERNAL_STORAGE',
|
|
22
|
+
|
|
23
|
+
// Contacts - not needed for KYC
|
|
24
|
+
'android.permission.READ_CONTACTS',
|
|
25
|
+
'android.permission.WRITE_CONTACTS',
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const withRemovePermissions: ConfigPlugin = (config) => {
|
|
29
|
+
return withAndroidManifest(config, (config) => {
|
|
30
|
+
const androidManifest = config.modResults;
|
|
31
|
+
|
|
32
|
+
if (!androidManifest.manifest['uses-permission']) {
|
|
33
|
+
return config;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Filter out unwanted permissions
|
|
37
|
+
const originalCount = androidManifest.manifest['uses-permission'].length;
|
|
38
|
+
|
|
39
|
+
androidManifest.manifest['uses-permission'] = androidManifest.manifest['uses-permission'].filter(
|
|
40
|
+
(permission) => {
|
|
41
|
+
const permissionName = permission.$?.['android:name'];
|
|
42
|
+
const shouldRemove = PERMISSIONS_TO_REMOVE.includes(permissionName);
|
|
43
|
+
|
|
44
|
+
if (shouldRemove) {
|
|
45
|
+
console.log(`[withRemovePermissions] Removing: ${permissionName}`);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return !shouldRemove;
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
const removedCount = originalCount - androidManifest.manifest['uses-permission'].length;
|
|
53
|
+
console.log(`[withRemovePermissions] Removed ${removedCount} permissions`);
|
|
54
|
+
|
|
55
|
+
// Also add tools:remove to explicitly block these permissions from being merged
|
|
56
|
+
// This prevents dependencies from re-adding them
|
|
57
|
+
// Ensure xmlns:tools is defined (xmlns:android always exists in valid manifests)
|
|
58
|
+
if (androidManifest.manifest.$) {
|
|
59
|
+
androidManifest.manifest.$['xmlns:tools'] = 'http://schemas.android.com/tools';
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Add uses-permission with tools:node="remove" for each permission to block
|
|
63
|
+
for (const permissionName of PERMISSIONS_TO_REMOVE) {
|
|
64
|
+
// Check if a remove directive already exists
|
|
65
|
+
const existingRemove = androidManifest.manifest['uses-permission']?.find(
|
|
66
|
+
(p) => p.$?.['android:name'] === permissionName && p.$?.['tools:node'] === 'remove'
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
if (!existingRemove) {
|
|
70
|
+
androidManifest.manifest['uses-permission'].push({
|
|
71
|
+
$: {
|
|
72
|
+
'android:name': permissionName,
|
|
73
|
+
'tools:node': 'remove',
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return config;
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export default withRemovePermissions;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const { withInfoPlist, withAndroidManifest } = require('@expo/config-plugins');
|
|
2
|
+
|
|
3
|
+
const withVisionCameraPermissions = (config, {
|
|
4
|
+
cameraPermissionText = 'This app uses the camera to capture photos and videos for identity verification.',
|
|
5
|
+
microphonePermissionText = 'This app uses the microphone to record audio for video capture.',
|
|
6
|
+
enableFrameProcessors = false,
|
|
7
|
+
} = {}) => {
|
|
8
|
+
// iOS permissions
|
|
9
|
+
config = withInfoPlist(config, (config) => {
|
|
10
|
+
config.modResults.NSCameraUsageDescription =
|
|
11
|
+
config.modResults.NSCameraUsageDescription ?? cameraPermissionText;
|
|
12
|
+
|
|
13
|
+
config.modResults.NSMicrophoneUsageDescription =
|
|
14
|
+
config.modResults.NSMicrophoneUsageDescription ?? microphonePermissionText;
|
|
15
|
+
|
|
16
|
+
// Add frame processors support if enabled
|
|
17
|
+
if (enableFrameProcessors) {
|
|
18
|
+
config.modResults.UIBackgroundModes = config.modResults.UIBackgroundModes || [];
|
|
19
|
+
if (!config.modResults.UIBackgroundModes.includes('processing')) {
|
|
20
|
+
config.modResults.UIBackgroundModes.push('processing');
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return config;
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// Android permissions
|
|
28
|
+
config = withAndroidManifest(config, (config) => {
|
|
29
|
+
const androidManifest = config.modResults;
|
|
30
|
+
|
|
31
|
+
if (!androidManifest.manifest['uses-permission']) {
|
|
32
|
+
androidManifest.manifest['uses-permission'] = [];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const permissions = [
|
|
36
|
+
'android.permission.CAMERA',
|
|
37
|
+
'android.permission.RECORD_AUDIO',
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
// Note: WRITE_EXTERNAL_STORAGE is NOT needed even with frame processors
|
|
41
|
+
// Frame processors work in memory, and photos are saved to app's internal storage
|
|
42
|
+
// Adding storage permissions causes Google Play Store rejection for KYC apps
|
|
43
|
+
|
|
44
|
+
for (const permission of permissions) {
|
|
45
|
+
if (!androidManifest.manifest['uses-permission'].find(
|
|
46
|
+
(perm) => perm.$['android:name'] === permission
|
|
47
|
+
)) {
|
|
48
|
+
androidManifest.manifest['uses-permission'].push({
|
|
49
|
+
$: { 'android:name': permission },
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Add camera features
|
|
55
|
+
if (!androidManifest.manifest['uses-feature']) {
|
|
56
|
+
androidManifest.manifest['uses-feature'] = [];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const cameraFeatures = [
|
|
60
|
+
{
|
|
61
|
+
$: {
|
|
62
|
+
'android:name': 'android.hardware.camera',
|
|
63
|
+
'android:required': 'true',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
$: {
|
|
68
|
+
'android:name': 'android.hardware.camera.autofocus',
|
|
69
|
+
'android:required': 'false',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
|
|
74
|
+
for (const feature of cameraFeatures) {
|
|
75
|
+
if (!androidManifest.manifest['uses-feature'].find(
|
|
76
|
+
(feat) => feat.$['android:name'] === feature.$['android:name']
|
|
77
|
+
)) {
|
|
78
|
+
androidManifest.manifest['uses-feature'].push(feature);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return config;
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
return config;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
module.exports = withVisionCameraPermissions;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ConfigPlugin, withInfoPlist, withAndroidManifest } from '@expo/config-plugins';
|
|
2
|
+
|
|
3
|
+
export interface VisionCameraPluginProps {
|
|
4
|
+
cameraPermissionText?: string;
|
|
5
|
+
microphonePermissionText?: string;
|
|
6
|
+
enableFrameProcessors?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const withVisionCameraPermissions: ConfigPlugin<VisionCameraPluginProps> = (
|
|
10
|
+
config,
|
|
11
|
+
{
|
|
12
|
+
cameraPermissionText = 'This app uses the camera to capture photos and videos for identity verification.',
|
|
13
|
+
microphonePermissionText = 'This app uses the microphone to record audio for video capture.',
|
|
14
|
+
enableFrameProcessors = false,
|
|
15
|
+
} = {}
|
|
16
|
+
) => {
|
|
17
|
+
// iOS permissions
|
|
18
|
+
config = withInfoPlist(config, (config) => {
|
|
19
|
+
config.modResults.NSCameraUsageDescription =
|
|
20
|
+
config.modResults.NSCameraUsageDescription ?? cameraPermissionText;
|
|
21
|
+
|
|
22
|
+
config.modResults.NSMicrophoneUsageDescription =
|
|
23
|
+
config.modResults.NSMicrophoneUsageDescription ?? microphonePermissionText;
|
|
24
|
+
|
|
25
|
+
// Add frame processors support if enabled
|
|
26
|
+
if (enableFrameProcessors) {
|
|
27
|
+
config.modResults.UIBackgroundModes = config.modResults.UIBackgroundModes || [];
|
|
28
|
+
if (!config.modResults.UIBackgroundModes.includes('processing')) {
|
|
29
|
+
config.modResults.UIBackgroundModes.push('processing');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return config;
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
// Android permissions
|
|
37
|
+
config = withAndroidManifest(config, (config) => {
|
|
38
|
+
const androidManifest = config.modResults;
|
|
39
|
+
|
|
40
|
+
if (!androidManifest.manifest['uses-permission']) {
|
|
41
|
+
androidManifest.manifest['uses-permission'] = [];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const permissions = [
|
|
45
|
+
'android.permission.CAMERA',
|
|
46
|
+
'android.permission.RECORD_AUDIO',
|
|
47
|
+
];
|
|
48
|
+
|
|
49
|
+
// Note: WRITE_EXTERNAL_STORAGE is NOT needed even with frame processors
|
|
50
|
+
// Frame processors work in memory, and photos are saved to app's internal storage
|
|
51
|
+
// Adding storage permissions causes Google Play Store rejection for KYC apps
|
|
52
|
+
|
|
53
|
+
for (const permission of permissions) {
|
|
54
|
+
if (!androidManifest.manifest['uses-permission'].find(
|
|
55
|
+
(perm) => perm.$['android:name'] === permission
|
|
56
|
+
)) {
|
|
57
|
+
androidManifest.manifest['uses-permission'].push({
|
|
58
|
+
$: { 'android:name': permission },
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Add camera features
|
|
64
|
+
if (!androidManifest.manifest['uses-feature']) {
|
|
65
|
+
androidManifest.manifest['uses-feature'] = [];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const cameraFeatures = [
|
|
69
|
+
{
|
|
70
|
+
$: {
|
|
71
|
+
'android:name': 'android.hardware.camera',
|
|
72
|
+
'android:required': 'true' as const,
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
$: {
|
|
77
|
+
'android:name': 'android.hardware.camera.autofocus',
|
|
78
|
+
'android:required': 'false' as const,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
];
|
|
82
|
+
|
|
83
|
+
for (const feature of cameraFeatures) {
|
|
84
|
+
if (!androidManifest.manifest['uses-feature'].find(
|
|
85
|
+
(feat) => feat.$['android:name'] === feature.$['android:name']
|
|
86
|
+
)) {
|
|
87
|
+
androidManifest.manifest['uses-feature'].push(feature);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return config;
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
return config;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export default withVisionCameraPermissions;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"outDir": "./build",
|
|
4
|
+
"rootDir": "./src",
|
|
5
|
+
"target": "es2018",
|
|
6
|
+
"module": "commonjs",
|
|
7
|
+
"lib": ["es2018"],
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"moduleResolution": "node",
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"allowSyntheticDefaultImports": true,
|
|
13
|
+
"skipLibCheck": true
|
|
14
|
+
},
|
|
15
|
+
"include": ["src/**/*"],
|
|
16
|
+
"exclude": ["build", "node_modules"]
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/index.ts","./src/withlocation.ts","./src/withremovepermissions.ts","./src/withvisioncamera.ts"],"version":"5.9.2"}
|
package/plugin.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const withVisionCamera = require('./plugin/build/withVisionCamera').default;
|
|
2
|
+
const withLocation = require('./plugin/build/withLocation').default;
|
|
3
|
+
const withRemovePermissions = require('./plugin/build/withRemovePermissions').default;
|
|
4
|
+
|
|
5
|
+
// Combine all plugins
|
|
6
|
+
const withCombinedPlugins = (config, props = {}) => {
|
|
7
|
+
const { visionCamera = {}, location = {} } = props;
|
|
8
|
+
|
|
9
|
+
// First apply feature plugins
|
|
10
|
+
config = withVisionCamera(config, visionCamera);
|
|
11
|
+
config = withLocation(config, location);
|
|
12
|
+
|
|
13
|
+
// Then remove unwanted permissions (must be last to clean up any permissions added by dependencies)
|
|
14
|
+
config = withRemovePermissions(config);
|
|
15
|
+
|
|
16
|
+
return config;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
module.exports = withCombinedPlugins;
|
package/src/App.tsx
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import CameraCaptureEx from "./components/example/CameraCaptureEx";
|
|
2
|
+
// import SelfieCaptureEx from "./components/example/SelfieCaptureEx";
|
|
3
|
+
// import { KYCExample } from "./components/KYCExample";
|
|
4
|
+
// import { KYCFlow } from "./components/KYCFlow"
|
|
5
|
+
const LauchTransferGratisKYC = () =>{
|
|
6
|
+
return <CameraCaptureEx/>
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export default LauchTransferGratisKYC;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
export type CameraCaptureEventPayload = {
|
|
4
|
+
instructions?: string;
|
|
5
|
+
status: 'opened' | 'captured';
|
|
6
|
+
path?: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type FileSelectedEventPayload = {
|
|
10
|
+
uri: string;
|
|
11
|
+
path: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type ErrorEventPayload = {
|
|
15
|
+
message: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export type TransfergratisSdkModuleEvents = {
|
|
19
|
+
onCameraCapture: (params: CameraCaptureEventPayload) => void;
|
|
20
|
+
onFileSelected: (params: FileSelectedEventPayload) => void;
|
|
21
|
+
onError: (params: ErrorEventPayload) => void;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type TransfergratisSdkViewProps = {
|
|
25
|
+
instructions: string;
|
|
26
|
+
showCamera: boolean;
|
|
27
|
+
onCapture?: (event: { nativeEvent: { action: 'capture' | 'retake' } }) => void;
|
|
28
|
+
onError?: (event: { nativeEvent: ErrorEventPayload }) => void;
|
|
29
|
+
style?: StyleProp<ViewStyle>;
|
|
30
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { requireNativeModule } from 'expo-modules-core';
|
|
2
|
+
|
|
3
|
+
import { NativeModule } from 'expo';
|
|
4
|
+
|
|
5
|
+
import { TransfergratisSdkModuleEvents } from './TransfergratisSdk.types';
|
|
6
|
+
|
|
7
|
+
declare class TransfergratisSdkModule extends NativeModule<TransfergratisSdkModuleEvents> {
|
|
8
|
+
PI: number;
|
|
9
|
+
testModule(): Promise<string>;
|
|
10
|
+
requestCameraPermission(): Promise<boolean>;
|
|
11
|
+
openCameraWithInstructions(instructions: string): Promise<{ success: boolean; path?: string; error?: string }>;
|
|
12
|
+
openFilePicker(allowedTypes: string[]): Promise<{ success: boolean; uri?: string; path?: string; error?: string }>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// This call loads the native module object from the JSI.
|
|
16
|
+
export default requireNativeModule<TransfergratisSdkModule>('TransfergratisSdk');
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { registerWebModule } from 'expo-modules-core';
|
|
2
|
+
import { NativeModule } from 'expo';
|
|
3
|
+
|
|
4
|
+
import { TransfergratisSdkModuleEvents } from './TransfergratisSdk.types';
|
|
5
|
+
|
|
6
|
+
class TransfergratisSdkModule extends NativeModule<TransfergratisSdkModuleEvents> {
|
|
7
|
+
PI = Math.PI;
|
|
8
|
+
|
|
9
|
+
async requestCameraPermission(): Promise<boolean> {
|
|
10
|
+
console.warn('Camera permission not available on web');
|
|
11
|
+
return false;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async openCameraWithInstructions(instructions: string): Promise<{ success: boolean; path?: string; error?: string }> {
|
|
15
|
+
console.warn('Camera not available on web');
|
|
16
|
+
return {
|
|
17
|
+
success: false,
|
|
18
|
+
error: 'Camera not available on web platform'
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async openFilePicker(allowedTypes: string[]): Promise<{ success: boolean; uri?: string; path?: string; error?: string }> {
|
|
23
|
+
console.warn('File picker not available on web');
|
|
24
|
+
return {
|
|
25
|
+
success: false,
|
|
26
|
+
error: 'File picker not available on web platform'
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default registerWebModule(TransfergratisSdkModule, 'TransfergratisSdkModule');
|