@oiti/rn-liveness3d 3.4.0 → 5.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/android/build.gradle +39 -107
- package/android/gradle.properties +5 -5
- package/android/src/main/AndroidManifest.xml +1 -8
- package/android/src/main/java/br/com/oiti/rnliveness3d/RnLiveness3dModule.kt +218 -192
- package/android/src/main/java/br/com/oiti/rnliveness3d/RnLiveness3dPackage.kt +25 -8
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DFonts.kt +32 -38
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DText.kt +5 -3
- package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DTheme.kt +229 -147
- package/android/src/res/font/sixty.ttf +0 -0
- package/ios/RnLiveness3d.h +5 -0
- package/ios/RnLiveness3d.mm +72 -0
- package/ios/{RnLiveness3d.swift → RnLiveness3dSwiftModule.swift} +131 -132
- package/lib/module/@types/ArgsType.js.map +1 -1
- package/lib/module/@types/FontsType.js.map +1 -1
- package/lib/module/@types/ResultType.js.map +1 -1
- package/lib/module/@types/ResultTypes.js.map +1 -1
- package/lib/module/@types/TextsType.js.map +1 -1
- package/lib/module/@types/ThemeType.js.map +1 -1
- package/lib/module/NativeRnLiveness3d.js +3 -0
- package/lib/module/NativeRnLiveness3d.js.map +1 -0
- package/lib/module/actions/BackButton.js +5 -6
- package/lib/module/actions/BackButton.js.map +1 -1
- package/lib/module/actions/ContinueButton.js +10 -10
- package/lib/module/actions/ContinueButton.js.map +1 -1
- package/lib/module/actions/PermissionButton.js +7 -8
- package/lib/module/actions/PermissionButton.js.map +1 -1
- package/lib/module/context/Liveness3DContext.js +10 -23
- package/lib/module/context/Liveness3DContext.js.map +1 -1
- package/lib/module/helpers/Liveness3DHelper.js +6 -7
- package/lib/module/helpers/Liveness3DHelper.js.map +1 -1
- package/lib/module/index.js +33 -120
- package/lib/module/index.js.map +1 -1
- package/lib/module/interfaces/Liveness3DHelper.js.map +1 -1
- package/lib/module/interfaces/OitiBackButtonInterface.js.map +1 -1
- package/lib/module/interfaces/OitiContinueButton.js.map +1 -1
- package/lib/module/interfaces/OitiPermissionButtonInterface.js.map +1 -1
- package/lib/module/screens/Liveness3D/InstructionsView.js +4 -6
- package/lib/module/screens/Liveness3D/InstructionsView.js.map +1 -1
- package/lib/module/screens/PermissionView.js +4 -6
- package/lib/module/screens/PermissionView.js.map +1 -1
- package/lib/module/utils/continueButton.js +3 -8
- package/lib/module/utils/continueButton.js.map +1 -1
- package/lib/module/utils/normalize.js.map +1 -1
- package/lib/module/utils/permissions.js +8 -17
- package/lib/module/utils/permissions.js.map +1 -1
- package/lib/module/utils/screenStore.js.map +1 -1
- package/oiti-rn-liveness3d.podspec +6 -22
- package/package.json +58 -49
- package/src/@types/ArgsType.ts +3 -4
- package/src/@types/ResultTypes.ts +3 -1
- package/src/NativeRnLiveness3d.ts +9 -0
- package/src/actions/BackButton.tsx +1 -1
- package/src/actions/ContinueButton.tsx +6 -5
- package/src/actions/PermissionButton.tsx +3 -3
- package/src/context/Liveness3DContext.tsx +11 -24
- package/src/helpers/Liveness3DHelper.tsx +1 -1
- package/src/index.tsx +27 -131
- package/src/interfaces/Liveness3DHelper.tsx +4 -2
- package/src/screens/Liveness3D/InstructionsView.tsx +0 -2
- package/src/screens/PermissionView.tsx +0 -1
- package/src/utils/continueButton.tsx +3 -10
- package/src/utils/permissions.tsx +9 -26
- package/android/settings.gradle +0 -6
- package/ios/Podfile +0 -13
- package/ios/Podfile.lock +0 -38
- package/ios/Pods/Manifest.lock +0 -38
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/Info.plist +0 -46
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Headers/OICommons-Swift.h +0 -327
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Headers/OICommons.h +0 -15
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Info.plist +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Bold.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Medium.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Regular.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.abi.json +0 -9
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -1818
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.swiftinterface +0 -1818
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/OICommons +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Bold.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Medium.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Regular.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/dSYMs/OICommons.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/dSYMs/OICommons.framework.dSYM/Contents/Resources/DWARF/OICommons +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Headers/OICommons-Swift.h +0 -650
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Headers/OICommons.h +0 -15
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Info.plist +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Bold.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Medium.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Regular.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -1818
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -1818
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -1818
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -1818
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/OICommons +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Bold.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Medium.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Regular.otf +0 -0
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/_CodeSignature/CodeResources +0 -311
- package/ios/Pods/OICommons/Frameworks/OICommons.xcframework.zip +0 -0
- package/ios/Pods/OICommons/README.md +0 -1
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/Info.plist +0 -46
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Assets.car +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Headers/OIComponents-Swift.h +0 -455
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Headers/OIComponents.h +0 -18
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Info.plist +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.abi.json +0 -9
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -732
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.swiftinterface +0 -732
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/OIComponents +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/dSYMs/OIComponents.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/dSYMs/OIComponents.framework.dSYM/Contents/Resources/DWARF/OIComponents +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Assets.car +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Headers/OIComponents-Swift.h +0 -906
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Headers/OIComponents.h +0 -18
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Info.plist +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -732
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -732
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -732
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -732
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/OIComponents +0 -0
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/_CodeSignature/CodeResources +0 -256
- package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework.zip +0 -0
- package/ios/Pods/OIComponents/README.md +0 -1
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/Info.plist +0 -46
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Assets.car +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Headers/OILiveness3D-Swift.h +0 -343
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Headers/OILiveness3D.h +0 -18
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Info.plist +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/Por_favor_pressione_o_botao_para_iniciar.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/Toque_duas_veezs_em_qualquer_lugar_da_tela.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/carregando.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/escaneamento_feito_com_sucesso.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/por_favor_chegue_mais_perto.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/por_favor_tente_novamente.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/prepare-se_para_seu_reconhecimento_facial.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/rosto_muito_longe.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/segure_firme.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/suporte_vocal_desligado.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/suporte_vocal_ligado.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.abi.json +0 -9
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -226
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.swiftinterface +0 -226
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/OILiveness3D +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/DWARF/OILiveness3D +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +0 -1818
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OIComponents.swiftinterface +0 -732
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OINetwork.swiftinterface +0 -144
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OISecurity.swiftinterface +0 -164
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Assets.car +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Headers/OILiveness3D-Swift.h +0 -682
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Headers/OILiveness3D.h +0 -18
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Info.plist +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/Por_favor_pressione_o_botao_para_iniciar.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/Toque_duas_veezs_em_qualquer_lugar_da_tela.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/carregando.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/escaneamento_feito_com_sucesso.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/por_favor_chegue_mais_perto.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/por_favor_tente_novamente.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/prepare-se_para_seu_reconhecimento_facial.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/rosto_muito_longe.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/segure_firme.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/suporte_vocal_desligado.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/suporte_vocal_ligado.mp3 +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -226
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -226
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -226
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -226
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/OILiveness3D +0 -0
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/_CodeSignature/CodeResources +0 -377
- package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework.zip +0 -0
- package/ios/Pods/OILiveness3D/README.md +0 -32
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/Info.plist +0 -44
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Assets.car +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/FaceTecSDK +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/GenericGuidanceContentLayout.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecPublicApi.h +0 -1932
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecPublicStringKeys.h +0 -105
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecSDK.h +0 -16
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Info.plist +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Modules/module.modulemap +0 -6
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/PrivacyInfo.xcprivacy +0 -29
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ReadyScreenGuidanceContentLayout.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/RetryScreenGuidanceContentLayout.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/SharedGuidanceLayout.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/9Uo-4b-JiE-view-Ae0-rb-UqS.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/CJ6-MX-bJp-view-8JL-Rc-0g1.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceScanViewController.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecAdditionalReviewViewController.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecIDFeedbackViewController.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecOCRConfirmationViewController.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/IDCaptureViewController.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/IDSelectionViewController.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/Info.plist +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/Pyw-6G-JSY-view-Zue-Eo-Q2U.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/QWA-8Y-vUM-view-wJB-Z5-eD2.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/alz-Ia-X3d-view-IKu-EI-Hug.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/l2Q-cc-kD8-view-UUy-6c-meu.nib +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/af.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ar.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/attributions.txt +0 -137
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/1f5b84f51ce0fcfbb76e904b7bcaa7560f601e1394a0b29367a09385312287eb +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/2b075ac1a6132b5b8a4c9ef0ba6b0cd84db7838aca9a000e50d907f40770a4ab +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/59cc2a9af81aaca2376702c2490650f4da2775fa673274db98aad41b7ef101c0 +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/5b63e98b991aedabb60665503384f30bffd939decf9433883b30b78011ee501a +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/66388dc76dc16bc6b76b682edd218a575bf45b9b +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/6b3133f0f39ff89a2a169d61176ee17cafacc5e288f334e2b64ee82892d11ccd +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/9077d16225f9314163ef1e7db6fc7d4088bb903d134bd95f23d5591ca4dfbfca +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/a74f2afb9d20f2375ccbd14e67c094b85c89ceb608f7cf8ae04f3f646a6c5672 +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/b501893e75f62ee1707643e35b21109927b07ed5b202321c961b424cbc2e4695 +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/dbd7a353f0130bb983d6ba05917e9be991d70e8f028df4b74e30bc6497ef7f71 +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/f2.xml +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/fd6d368a5658496536e2bfae170d1b823a3629b242cafc09784bfba4e56d8c80 +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/marker +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/vu0ilin6we3lrzo5f83f7qs2jul4aq7v4aoynrmch8zfvpi8ezrfyafa4t0fx87l +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/de.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/el.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/en.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/es.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/fr.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/kk.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/nb.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/pt-BR.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ru.lproj/FaceTec.strings +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/strip-unused-architectures-from-target.sh +0 -62
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/FaceTecSDK +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecPublicApi.h +0 -1932
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecPublicStringKeys.h +0 -105
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecSDK.h +0 -16
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Info.plist +0 -0
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Modules/module.modulemap +0 -6
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/_CodeSignature/CodeResources +0 -146
- package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework.zip +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/Info.plist +0 -46
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Headers/OINetwork-Swift.h +0 -312
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Headers/OINetwork.h +0 -15
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Info.plist +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.abi.json +0 -9
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -144
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.swiftinterface +0 -144
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/OINetwork +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Resources/DWARF/OINetwork +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +0 -1818
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Headers/OINetwork-Swift.h +0 -620
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Headers/OINetwork.h +0 -15
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Info.plist +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -144
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -144
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -144
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -144
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/OINetwork +0 -0
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/_CodeSignature/CodeResources +0 -245
- package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework.zip +0 -0
- package/ios/Pods/OINetwork/README.md +0 -1
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/Info.plist +0 -46
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Headers/OISecurity-Swift.h +0 -311
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Headers/OISecurity.h +0 -16
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Info.plist +0 -0
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.abi.json +0 -9
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -164
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.swiftinterface +0 -164
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/OISecurity +0 -0
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/PrivacyInfo.xcprivacy +0 -37
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Resources/DWARF/OISecurity +0 -0
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +0 -1818
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Resources/Swift/aarch64/OINetwork.swiftinterface +0 -144
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Headers/OISecurity-Swift.h +0 -618
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Headers/OISecurity.h +0 -16
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Info.plist +0 -0
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -164
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -164
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -9
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -164
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -164
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/module.modulemap +0 -11
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/OISecurity +0 -0
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/PrivacyInfo.xcprivacy +0 -37
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/_CodeSignature/CodeResources +0 -256
- package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework.zip +0 -0
- package/ios/Pods/OISecurity/README.md +0 -1
- package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -1239
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OICommons.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OIComponents.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OILiveness3D.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OILiveness3D_FT.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OINetwork.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OISecurity.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/Pods-RnLiveness3d.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/xcschememanagement.plist +0 -46
- package/ios/Pods/Target Support Files/OICommons/OICommons-xcframeworks.sh +0 -121
- package/ios/Pods/Target Support Files/OICommons/OICommons.debug.xcconfig +0 -15
- package/ios/Pods/Target Support Files/OICommons/OICommons.release.xcconfig +0 -15
- package/ios/Pods/Target Support Files/OIComponents/OIComponents-xcframeworks.sh +0 -121
- package/ios/Pods/Target Support Files/OIComponents/OIComponents.debug.xcconfig +0 -15
- package/ios/Pods/Target Support Files/OIComponents/OIComponents.release.xcconfig +0 -15
- package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D-xcframeworks.sh +0 -121
- package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D.debug.xcconfig +0 -16
- package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D.release.xcconfig +0 -16
- package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT-xcframeworks.sh +0 -121
- package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT.debug.xcconfig +0 -13
- package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT.release.xcconfig +0 -13
- package/ios/Pods/Target Support Files/OINetwork/OINetwork-xcframeworks.sh +0 -121
- package/ios/Pods/Target Support Files/OINetwork/OINetwork.debug.xcconfig +0 -16
- package/ios/Pods/Target Support Files/OINetwork/OINetwork.release.xcconfig +0 -16
- package/ios/Pods/Target Support Files/OISecurity/OISecurity-xcframeworks.sh +0 -121
- package/ios/Pods/Target Support Files/OISecurity/OISecurity.debug.xcconfig +0 -16
- package/ios/Pods/Target Support Files/OISecurity/OISecurity.release.xcconfig +0 -16
- package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-Info.plist +0 -26
- package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-acknowledgements.markdown +0 -23
- package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-acknowledgements.plist +0 -79
- package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-dummy.m +0 -5
- package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-umbrella.h +0 -16
- package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.debug.xcconfig +0 -14
- package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.modulemap +0 -6
- package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.release.xcconfig +0 -14
- package/ios/RnLiveness3d-Bridging-Header.h +0 -2
- package/ios/RnLiveness3d.m +0 -34
- package/ios/RnLiveness3d.xcodeproj/project.pbxproj +0 -337
- package/ios/RnLiveness3d.xcodeproj/xcshareddata/xcschemes/RnLiveness3d.xcscheme +0 -80
- package/ios/RnLiveness3d.xcworkspace/contents.xcworkspacedata +0 -10
- package/ios/RnLiveness3d.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/info.plist +0 -8
- package/lib/commonjs/@types/ArgsType.js +0 -6
- package/lib/commonjs/@types/ArgsType.js.map +0 -1
- package/lib/commonjs/@types/FontsType.js +0 -2
- package/lib/commonjs/@types/FontsType.js.map +0 -1
- package/lib/commonjs/@types/ResultType.js +0 -2
- package/lib/commonjs/@types/ResultType.js.map +0 -1
- package/lib/commonjs/@types/ResultTypes.js +0 -6
- package/lib/commonjs/@types/ResultTypes.js.map +0 -1
- package/lib/commonjs/@types/TextsType.js +0 -2
- package/lib/commonjs/@types/TextsType.js.map +0 -1
- package/lib/commonjs/@types/ThemeType.js +0 -2
- package/lib/commonjs/@types/ThemeType.js.map +0 -1
- package/lib/commonjs/actions/BackButton.js +0 -35
- package/lib/commonjs/actions/BackButton.js.map +0 -1
- package/lib/commonjs/actions/ContinueButton.js +0 -43
- package/lib/commonjs/actions/ContinueButton.js.map +0 -1
- package/lib/commonjs/actions/PermissionButton.js +0 -35
- package/lib/commonjs/actions/PermissionButton.js.map +0 -1
- package/lib/commonjs/assets/fonts/Ubuntu-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-BoldItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Italic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Light.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-LightItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Medium.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-MediumItalic.ttf +0 -0
- package/lib/commonjs/assets/fonts/Ubuntu-Regular.ttf +0 -0
- package/lib/commonjs/assets/images/acessories.png +0 -0
- package/lib/commonjs/assets/images/camera.png +0 -0
- package/lib/commonjs/assets/images/camera_alt.png +0 -0
- package/lib/commonjs/assets/images/face.png +0 -0
- package/lib/commonjs/assets/images/illumination.png +0 -0
- package/lib/commonjs/assets/images/imgOp.png +0 -0
- package/lib/commonjs/assets/images/img_face.png +0 -0
- package/lib/commonjs/assets/images/left-arrow-b.png +0 -0
- package/lib/commonjs/assets/images/left-arrow.png +0 -0
- package/lib/commonjs/assets/images/lightbulb_outline.png +0 -0
- package/lib/commonjs/assets/images/padlock.png +0 -0
- package/lib/commonjs/assets/images/rigth-arrow.png +0 -0
- package/lib/commonjs/assets/images/scan-facial.png +0 -0
- package/lib/commonjs/assets/images/wave_bg.png +0 -0
- package/lib/commonjs/assets/images/wave_bg2.png +0 -0
- package/lib/commonjs/context/Liveness3DContext.js +0 -104
- package/lib/commonjs/context/Liveness3DContext.js.map +0 -1
- package/lib/commonjs/helpers/Liveness3DHelper.js +0 -34
- package/lib/commonjs/helpers/Liveness3DHelper.js.map +0 -1
- package/lib/commonjs/index.js +0 -223
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/interfaces/Liveness3DHelper.js +0 -6
- package/lib/commonjs/interfaces/Liveness3DHelper.js.map +0 -1
- package/lib/commonjs/interfaces/OitiBackButtonInterface.js +0 -6
- package/lib/commonjs/interfaces/OitiBackButtonInterface.js.map +0 -1
- package/lib/commonjs/interfaces/OitiContinueButton.js +0 -6
- package/lib/commonjs/interfaces/OitiContinueButton.js.map +0 -1
- package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js +0 -6
- package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js.map +0 -1
- package/lib/commonjs/screens/Liveness3D/InstructionsView.js +0 -209
- package/lib/commonjs/screens/Liveness3D/InstructionsView.js.map +0 -1
- package/lib/commonjs/screens/PermissionView.js +0 -177
- package/lib/commonjs/screens/PermissionView.js.map +0 -1
- package/lib/commonjs/utils/continueButton.js +0 -17
- package/lib/commonjs/utils/continueButton.js.map +0 -1
- package/lib/commonjs/utils/normalize.js +0 -16
- package/lib/commonjs/utils/normalize.js.map +0 -1
- package/lib/commonjs/utils/permissions.js +0 -30
- package/lib/commonjs/utils/permissions.js.map +0 -1
- package/lib/commonjs/utils/screenStore.js +0 -12
- package/lib/commonjs/utils/screenStore.js.map +0 -1
- package/lib/typescript/@types/ArgsType.d.ts +0 -19
- package/lib/typescript/@types/ArgsType.d.ts.map +0 -1
- package/lib/typescript/@types/FontsType.d.ts +0 -12
- package/lib/typescript/@types/FontsType.d.ts.map +0 -1
- package/lib/typescript/@types/ResultType.d.ts +0 -13
- package/lib/typescript/@types/ResultType.d.ts.map +0 -1
- package/lib/typescript/@types/ResultTypes.d.ts +0 -6
- package/lib/typescript/@types/ResultTypes.d.ts.map +0 -1
- package/lib/typescript/@types/TextsType.d.ts +0 -36
- package/lib/typescript/@types/TextsType.d.ts.map +0 -1
- package/lib/typescript/@types/ThemeType.d.ts +0 -48
- package/lib/typescript/@types/ThemeType.d.ts.map +0 -1
- package/lib/typescript/actions/BackButton.d.ts +0 -4
- package/lib/typescript/actions/BackButton.d.ts.map +0 -1
- package/lib/typescript/actions/ContinueButton.d.ts +0 -4
- package/lib/typescript/actions/ContinueButton.d.ts.map +0 -1
- package/lib/typescript/actions/PermissionButton.d.ts +0 -4
- package/lib/typescript/actions/PermissionButton.d.ts.map +0 -1
- package/lib/typescript/context/Liveness3DContext.d.ts +0 -28
- package/lib/typescript/context/Liveness3DContext.d.ts.map +0 -1
- package/lib/typescript/helpers/Liveness3DHelper.d.ts +0 -4
- package/lib/typescript/helpers/Liveness3DHelper.d.ts.map +0 -1
- package/lib/typescript/index.d.ts +0 -32
- package/lib/typescript/index.d.ts.map +0 -1
- package/lib/typescript/interfaces/Liveness3DHelper.d.ts +0 -7
- package/lib/typescript/interfaces/Liveness3DHelper.d.ts.map +0 -1
- package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts +0 -6
- package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts.map +0 -1
- package/lib/typescript/interfaces/OitiContinueButton.d.ts +0 -6
- package/lib/typescript/interfaces/OitiContinueButton.d.ts.map +0 -1
- package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts +0 -6
- package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts.map +0 -1
- package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts +0 -6
- package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts.map +0 -1
- package/lib/typescript/screens/PermissionView.d.ts +0 -6
- package/lib/typescript/screens/PermissionView.d.ts.map +0 -1
- package/lib/typescript/utils/continueButton.d.ts +0 -2
- package/lib/typescript/utils/continueButton.d.ts.map +0 -1
- package/lib/typescript/utils/normalize.d.ts +0 -2
- package/lib/typescript/utils/normalize.d.ts.map +0 -1
- package/lib/typescript/utils/permissions.d.ts +0 -4
- package/lib/typescript/utils/permissions.d.ts.map +0 -1
- package/lib/typescript/utils/screenStore.d.ts +0 -5
- package/lib/typescript/utils/screenStore.d.ts.map +0 -1
|
@@ -1,130 +1,112 @@
|
|
|
1
|
+
import AVFoundation
|
|
1
2
|
import OILiveness3D
|
|
2
3
|
import OIComponents
|
|
3
4
|
import OICommons
|
|
4
|
-
import AVFoundation
|
|
5
5
|
import OISecurity
|
|
6
6
|
import UIKit
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"blob": validateModel.scanResultBlob ?? "",
|
|
21
|
-
"valid": validateModel.valid ?? false
|
|
22
|
-
]
|
|
23
|
-
|
|
24
|
-
resolve(response)
|
|
8
|
+
public typealias PromiseResolveBlock = (Any?) -> Void
|
|
9
|
+
public typealias PromiseRejectBlock = (_ code: String, _ message: String, _ error: Error?) -> Void
|
|
10
|
+
public typealias ResponseSenderBlock = ([Any]) -> Void
|
|
11
|
+
public typealias PresenterBlock = (_ viewController: UIViewController, _ animated: Bool) -> Void
|
|
12
|
+
|
|
13
|
+
@objcMembers
|
|
14
|
+
public class RnLiveness3dSwiftModule: NSObject {
|
|
15
|
+
private var resolve: PromiseResolveBlock!
|
|
16
|
+
private var reject: PromiseRejectBlock!
|
|
17
|
+
|
|
18
|
+
public override init() {
|
|
19
|
+
super.init()
|
|
25
20
|
}
|
|
26
|
-
|
|
27
|
-
func
|
|
28
|
-
|
|
21
|
+
|
|
22
|
+
public func checkCameraPermissionGranted() -> Bool {
|
|
23
|
+
AVCaptureDevice.authorizationStatus(for: AVMediaType.video) == AVAuthorizationStatus.authorized
|
|
29
24
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
func checkiospermission(args: Dictionary<String,Any>?, resolve:@escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
|
|
25
|
+
|
|
26
|
+
public func requestCameraPermission(_ resolve: @escaping ResponseSenderBlock) -> Void {
|
|
33
27
|
AVCaptureDevice.requestAccess(for: .video) { granted in
|
|
34
28
|
DispatchQueue.main.async {
|
|
35
|
-
if granted {
|
|
36
|
-
|
|
37
|
-
} else {
|
|
38
|
-
if let settingsURL = URL(string: UIApplication.openSettingsURLString) {
|
|
39
|
-
UIApplication.shared.open(settingsURL, options: [:]) { _ in }
|
|
40
|
-
}
|
|
41
|
-
resolve(false)
|
|
29
|
+
if !granted, let settingsURL = URL(string: UIApplication.openSettingsURLString) {
|
|
30
|
+
UIApplication.shared.open(settingsURL, options: [:]) { _ in }
|
|
42
31
|
}
|
|
32
|
+
resolve([granted])
|
|
43
33
|
}
|
|
44
34
|
}
|
|
45
35
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
36
|
+
|
|
37
|
+
public func startLiveness3d(
|
|
38
|
+
_ args: NSDictionary,
|
|
39
|
+
resolve: @escaping PromiseResolveBlock,
|
|
40
|
+
reject: @escaping PromiseRejectBlock,
|
|
41
|
+
presenter: @escaping PresenterBlock
|
|
42
|
+
) -> Void {
|
|
43
|
+
guard checkCameraPermissionGranted() else {
|
|
44
|
+
let error = NSError(
|
|
45
|
+
domain: "br.com.oiti.rnliveness3d",
|
|
46
|
+
code: -1,
|
|
47
|
+
userInfo: [NSLocalizedDescriptionKey: "RESULT_CANCELED"]
|
|
48
|
+
)
|
|
49
|
+
reject("RESULT_CANCELED", "RESULT_CANCELED", error)
|
|
50
|
+
return
|
|
53
51
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
@objc(startliveness3d:withResolver:withRejecter:)
|
|
57
|
-
func startliveness3D(args: Dictionary<String,Any>?, resolve:@escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
|
|
52
|
+
|
|
58
53
|
self.resolve = resolve
|
|
59
54
|
self.reject = reject
|
|
60
|
-
|
|
61
|
-
let appKey = args
|
|
62
|
-
let
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
let loading = args?["loading"] as? Dictionary<String,Any> ?? nil
|
|
66
|
-
|
|
67
|
-
let typeLoading = loading?["type"] as? String ?? "default"
|
|
68
|
-
let sizeLoading = loading?["size"] as? Int ?? 180
|
|
69
|
-
let backgroundColor = loading?["backgroundColor"] as? String ?? "#FFFFFF"
|
|
70
|
-
let loadingColor = loading?["loadingColor"] as? String ?? "#000000"
|
|
71
|
-
|
|
55
|
+
|
|
56
|
+
let appKey = args["appkey"] as? String ?? ""
|
|
57
|
+
let env = args["environment"] as? String ?? "HML"
|
|
58
|
+
|
|
72
59
|
//Customization
|
|
73
|
-
let
|
|
74
|
-
let
|
|
75
|
-
|
|
76
|
-
print("Env STRING")
|
|
77
|
-
print(env)
|
|
78
|
-
print("-----")
|
|
79
|
-
|
|
80
|
-
print("Env")
|
|
81
|
-
print(env == "PRD" ? Environment.PRD : Environment.HML)
|
|
82
|
-
print("-----")
|
|
83
|
-
|
|
60
|
+
let theme = liveness3DTheme(theme: args["theme"], fonts: args["fonts"])
|
|
61
|
+
let texts = liveness3DTexts(from: args["liveness3Dtext"])
|
|
62
|
+
|
|
84
63
|
let liveness3DUser = Liveness3DUser(
|
|
85
64
|
appKey: appKey,
|
|
86
|
-
|
|
87
|
-
environment: env == "PRD" ? Environment.PRD : Environment.HML,
|
|
65
|
+
environment: env == "PRD" ? .PRD : .HML,
|
|
88
66
|
defaultTheme: theme,
|
|
89
67
|
lowLightTheme: theme,
|
|
90
68
|
texts: texts
|
|
91
69
|
)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
let defaultLoading = ActivityIndicatorConfiguration(
|
|
104
|
-
loadingColor: .init(hex: loadingColor),
|
|
105
|
-
backgroundColor: .init(hex: backgroundColor),
|
|
106
|
-
scaleFactor: sizeLoading
|
|
107
|
-
)
|
|
108
|
-
|
|
109
|
-
DispatchQueue.main.async {
|
|
110
|
-
let liveness3DViewController = HybridLiveness3DViewController(
|
|
111
|
-
liveness3DUser: liveness3DUser,
|
|
112
|
-
delegate: self,
|
|
113
|
-
customAppearance: typeLoading == "spinner" ? .init(configuration: spinnerLoading) : .init(configuration: defaultLoading)
|
|
114
|
-
)
|
|
115
|
-
liveness3DViewController.modalPresentationStyle = .fullScreen
|
|
116
|
-
RCTPresentedViewController()?.present(liveness3DViewController, animated: true)
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
} else {
|
|
120
|
-
let error = NSError(domain: "br.com.oiti.rnliveness3d", code: -1, userInfo: [NSLocalizedDescriptionKey: "RESULT_CANCELED"])
|
|
121
|
-
reject("RESULT_CANCELED", "RESULT_CANCELED", error)
|
|
122
|
-
}
|
|
70
|
+
|
|
71
|
+
let customAppearance = getCustomAppearance(from: args)
|
|
72
|
+
|
|
73
|
+
DispatchQueue.main.async {
|
|
74
|
+
let controller = HybridLiveness3DViewController(
|
|
75
|
+
liveness3DUser: liveness3DUser,
|
|
76
|
+
delegate: self,
|
|
77
|
+
customAppearance: customAppearance
|
|
78
|
+
)
|
|
79
|
+
controller.modalPresentationStyle = .fullScreen
|
|
80
|
+
presenter(controller, true)
|
|
123
81
|
}
|
|
124
|
-
|
|
125
82
|
}
|
|
126
|
-
|
|
127
|
-
|
|
83
|
+
|
|
84
|
+
// MARK: - Internal methods
|
|
85
|
+
|
|
86
|
+
private func getCustomAppearance(from args: NSDictionary) -> HybridViewAppearance {
|
|
87
|
+
let loading = args["loading"] as? Dictionary<String, Any> ?? nil
|
|
88
|
+
let typeLoading = loading?["type"] as? String ?? "default"
|
|
89
|
+
let sizeLoading = loading?["size"] as? Int ?? 10
|
|
90
|
+
let backgroundColor = loading?["backgroundColor"] as? String ?? "#FFFFFF"
|
|
91
|
+
let loadingColor = loading?["loadingColor"] as? String ?? "#000000"
|
|
92
|
+
|
|
93
|
+
let spinnerLoading = SpinnerConfiguration(
|
|
94
|
+
backgroundColor: .init(hex: backgroundColor),
|
|
95
|
+
loadingColor: .init(hex: loadingColor),
|
|
96
|
+
strokeWidth: 10,
|
|
97
|
+
scaleFactor: sizeLoading
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
let defaultLoading = ActivityIndicatorConfiguration(
|
|
101
|
+
loadingColor: .init(hex: loadingColor),
|
|
102
|
+
backgroundColor: .init(hex: backgroundColor),
|
|
103
|
+
scaleFactor: sizeLoading
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
return typeLoading == "spinner" ? .init(configuration: spinnerLoading) : .init(configuration: defaultLoading)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
private func textKey(from identifier: String) -> Liveness3DTextKey? {
|
|
128
110
|
switch identifier {
|
|
129
111
|
case "READY_HEADER_1": return .readyHeader1
|
|
130
112
|
case "READY_HEADER_2": return .readyHeader2
|
|
@@ -162,12 +144,12 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
|
|
|
162
144
|
default: return nil
|
|
163
145
|
}
|
|
164
146
|
}
|
|
165
|
-
|
|
166
|
-
func liveness3DTexts(from arguments: Any?) -> [Liveness3DTextKey : String] {
|
|
147
|
+
|
|
148
|
+
private func liveness3DTexts(from arguments: Any?) -> [Liveness3DTextKey : String] {
|
|
167
149
|
guard let textsDictionary = arguments as? Dictionary<String, String> else {
|
|
168
150
|
return [:]
|
|
169
151
|
}
|
|
170
|
-
|
|
152
|
+
|
|
171
153
|
let sequence: [(Liveness3DTextKey, String)] = textsDictionary
|
|
172
154
|
.compactMap {
|
|
173
155
|
guard let key = self.textKey(from: $0.key) else {
|
|
@@ -176,38 +158,38 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
|
|
|
176
158
|
return (key, $0.value)
|
|
177
159
|
}
|
|
178
160
|
.filter { !$0.1.isEmpty }
|
|
179
|
-
|
|
161
|
+
|
|
180
162
|
return Dictionary(uniqueKeysWithValues: sequence)
|
|
181
163
|
}
|
|
182
|
-
|
|
183
|
-
func liveness3DTheme(theme: Any?, fonts: Any?) -> Liveness3DTheme {
|
|
164
|
+
|
|
165
|
+
private func liveness3DTheme(theme: Any?, fonts: Any?) -> Liveness3DTheme {
|
|
184
166
|
let themeDictionary = theme as? Dictionary<String, Any>
|
|
185
167
|
let fontsDictionary = fonts as? Dictionary<String, Any>
|
|
186
168
|
print(fontsDictionary as Any)
|
|
187
|
-
|
|
169
|
+
|
|
188
170
|
var theme = Liveness3DTheme(.light)
|
|
189
|
-
|
|
171
|
+
|
|
190
172
|
let guidanceCustomizationHeaderFont = fontsDictionary?["guidanceCustomizationHeaderFont"] as? String ?? ""
|
|
191
173
|
let guidanceCustomizationSubtextFont = fontsDictionary?["guidanceCustomizationSubtextFont"] as? String ?? ""
|
|
192
174
|
let guidanceCustomizationButtonFont = fontsDictionary?["guidanceCustomizationButtonFont"] as? String ?? ""
|
|
193
|
-
|
|
175
|
+
|
|
194
176
|
let readyScreenCustomizationSubtextFont = fontsDictionary?["readyScreenCustomizationSubtextFont"] as? String ?? ""
|
|
195
177
|
let readyScreenCustomizationHeaderFont = fontsDictionary?["readyScreenCustomizationHeaderFont"] as? String ?? ""
|
|
196
|
-
|
|
178
|
+
|
|
197
179
|
let retryScreenCustomizationHeaderFont = fontsDictionary?["retryScreenCustomizationHeaderFont"] as? String ?? ""
|
|
198
180
|
let retryScreenCustomizationSubtextFont = fontsDictionary?["retryScreenCustomizationSubtextFont"] as? String ?? ""
|
|
199
|
-
|
|
181
|
+
|
|
200
182
|
let resultScreenCustomizationMessageFont = fontsDictionary?["resultScreenCustomizationMessageFont"] as? String ?? ""
|
|
201
|
-
|
|
183
|
+
|
|
202
184
|
let feedbackCustomizationTextFont = fontsDictionary?["feedbackCustomizationTextFont"] as? String ?? ""
|
|
203
|
-
|
|
185
|
+
|
|
204
186
|
theme.readyScreenCustomizationHeaderFont = UIFont(name: readyScreenCustomizationSubtextFont, size: 14)
|
|
205
187
|
theme.readyScreenCustomizationHeaderTextColor = .init(hex: themeDictionary?["guidanceCustomizationReadyScreenHeaderTextColor"] as? String ?? "#000000")
|
|
206
188
|
theme.readyScreenCustomizationSubtextFont = UIFont(name: readyScreenCustomizationHeaderFont, size: 14)
|
|
207
189
|
theme.readyScreenCustomizationSubtextTextColor = .init(hex: themeDictionary?["guidanceCustomizationReadyScreenSubtextTextColor"] as? String ?? "#333333")
|
|
208
190
|
theme.readyScreenCustomizationTextBackgroundColor = .init(hex: themeDictionary?["guidanceCustomizationTextBackgroundColor"] as? String ?? "")
|
|
209
191
|
theme.readyScreenCustomizationTextBackgroundCornerRadius = themeDictionary?["guidanceCustomizationTextBackgroundColorRadius"] as? Int32 ?? 0
|
|
210
|
-
|
|
192
|
+
|
|
211
193
|
theme.retryScreenCustomizationHeaderFont = UIFont(name: retryScreenCustomizationHeaderFont, size: 14)
|
|
212
194
|
theme.retryScreenCustomizationHeaderTextColor = .init(hex: themeDictionary?["guidanceCustomizationRetryScreenHeaderTextColor"] as? String ?? "#000000")
|
|
213
195
|
theme.retryScreenCustomizationSubtextFont = UIFont(name: retryScreenCustomizationSubtextFont, size: 14)
|
|
@@ -215,7 +197,7 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
|
|
|
215
197
|
theme.retryScreenCustomizationImageBorderColor = .init(hex: themeDictionary?["guidanceCustomizationRetryScreenImageBorderColor"] as? String ?? "#4bb75f")
|
|
216
198
|
theme.retryScreenCustomizationImageBorderWidth = themeDictionary?["guidanceCustomizationRetryScreenImageBorderWidth"] as? Int32 ?? 0
|
|
217
199
|
theme.retryScreenCustomizationImageCornerRadius = themeDictionary?["guidanceCustomizationRetryScreenImageCornerRadius"] as? Int32 ?? 0
|
|
218
|
-
|
|
200
|
+
|
|
219
201
|
theme.resultScreenCustomizationAnimationRelativeScale = 1.5
|
|
220
202
|
theme.resultScreenCustomizationTextColor = .init(hex: themeDictionary?["resultScreenCustomizationTextColor"] as? String ?? "#000000")
|
|
221
203
|
theme.resultScreenCustomizationShowUploadProgressBar = true
|
|
@@ -227,11 +209,11 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
|
|
|
227
209
|
checkmarkForegroundColor: .purple,
|
|
228
210
|
checkmarkBackgroundColor: .yellow
|
|
229
211
|
))
|
|
230
|
-
|
|
212
|
+
|
|
231
213
|
theme.guidanceCustomizationHeaderFont = UIFont(name: guidanceCustomizationHeaderFont, size: 14)
|
|
232
214
|
theme.guidanceCustomizationSubtextFont = UIFont(name: guidanceCustomizationSubtextFont, size: 14)
|
|
233
215
|
theme.guidanceCustomizationButtonFont = UIFont(name: guidanceCustomizationButtonFont, size: 14)
|
|
234
|
-
|
|
216
|
+
|
|
235
217
|
theme.guidanceCustomizationButtonTextNormalColor = .init(hex: themeDictionary?["guidanceCustomizationButtonTextNormalColor"] as? String ?? "#000000")
|
|
236
218
|
theme.guidanceCustomizationButtonBackgroundNormalColor = .init(hex: themeDictionary?["guidanceCustomizationButtonBackgroundNormalColor"] as? String ?? "#4bb75f")
|
|
237
219
|
theme.guidanceCustomizationButtonTextHighlightColor = .init(hex: themeDictionary?["guidanceCustomizationButtonTextHighlightColor"] as? String ?? "#000000")
|
|
@@ -241,7 +223,7 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
|
|
|
241
223
|
theme.guidanceCustomizationButtonBorderColor = .init(hex: themeDictionary?["guidanceCustomizationButtonBorderColor"] as? String ?? "#000000")
|
|
242
224
|
theme.guidanceCustomizationButtonBorderWidth = themeDictionary?["guidanceCustomizationButtonBorderWidth"] as? Int32 ?? 0
|
|
243
225
|
theme.guidanceCustomizationButtonCornerRadius = themeDictionary?["guidanceCustomizationButtonCornerRadius"] as? Int32 ?? 25
|
|
244
|
-
|
|
226
|
+
|
|
245
227
|
theme.frameCustomizationBorderWidth = themeDictionary?["frameCustomizationBorderWidth"] as? Int32 ?? 0
|
|
246
228
|
theme.frameCustomizationCornerRadius = themeDictionary?["frameCustomizationCornerRadius"] as? Int32 ?? 0
|
|
247
229
|
theme.frameCustomizationBorderColor = .init(hex: themeDictionary?["frameCustomizationBorderColor"] as? String ?? "#4bb75f")
|
|
@@ -251,20 +233,20 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
|
|
|
251
233
|
radius: 1.0, offset: .zero,
|
|
252
234
|
insets: .init(top: 1.0, left: 0.5, bottom: 0.7, right: 0.5)
|
|
253
235
|
)
|
|
254
|
-
|
|
236
|
+
|
|
255
237
|
theme.ovalCustomizationStrokeWidth = themeDictionary?["ovalCustomizationStrokeWidth"] as? Int32 ?? 3
|
|
256
238
|
theme.ovalCustomizationStrokeColor = .init(hex: themeDictionary?["ovalCustomizationStrokeColor"] as? String ?? "#4bb75f")
|
|
257
239
|
theme.ovalCustomizationProgressStrokeWidth = themeDictionary?["ovalCustomizationProgressStrokeWidth"] as? Int32 ?? 2
|
|
258
240
|
theme.ovalCustomizationProgressColor1 = .init(hex: themeDictionary?["ovalCustomizationProgressColor1"] as? String ?? "#4bb75f")
|
|
259
241
|
theme.ovalCustomizationProgressColor2 = .init(hex: themeDictionary?["ovalCustomizationProgressColor2"] as? String ?? "#4bb75f")
|
|
260
242
|
theme.ovalCustomizationProgressRadialOffset = themeDictionary?["ovalCustomizationProgressRadialOffset"] as? Int32 ?? 2
|
|
261
|
-
|
|
243
|
+
|
|
262
244
|
theme.overlayCustomizationBackgroundColor = .init(hex: themeDictionary?["overlayCustomizationBackgroundColor"] as? String ?? "#FFFFFF")
|
|
263
245
|
theme.overlayCustomizationBrandingImage = UIImage(named: "")
|
|
264
246
|
theme.overlayCustomizationShowBrandingImage = false
|
|
265
|
-
|
|
247
|
+
|
|
266
248
|
theme.feedbackCustomizationTextColor = .init(hex: themeDictionary?["feedbackCustomizationTextColor"] as? String ?? "#FFFFFF")
|
|
267
|
-
theme.feedbackCustomizationTextFont = UIFont(name:
|
|
249
|
+
theme.feedbackCustomizationTextFont = UIFont(name: feedbackCustomizationTextFont, size: 14)
|
|
268
250
|
theme.feedbackCustomizationShadow = Liveness3DShadow(
|
|
269
251
|
color: .purple, opacity: 0.5,
|
|
270
252
|
radius: 3.0, offset: .init(width: 2.0, height: 5.0),
|
|
@@ -272,30 +254,47 @@ class RnLiveness3d: NSObject, Liveness3DDelegate {
|
|
|
272
254
|
)
|
|
273
255
|
theme.feedbackCustomizationCornerRadius = themeDictionary?["feedbackCustomizationCornerRadius"] as? Int32 ?? 2
|
|
274
256
|
theme.feedbackCustomizationBackgroundColor = .init(hex: themeDictionary?["feedbackCustomizationBackgroundColors"] as? String ?? "#666666")
|
|
275
|
-
|
|
257
|
+
|
|
276
258
|
theme.cancelButtonCustomizationCustomImage = UIImage(named: "")
|
|
277
259
|
theme.cancelButtonCustomizationLocation = .topLeft
|
|
278
|
-
|
|
260
|
+
|
|
279
261
|
return theme
|
|
280
262
|
}
|
|
281
263
|
}
|
|
282
264
|
|
|
283
|
-
|
|
284
|
-
|
|
265
|
+
extension RnLiveness3dSwiftModule: Liveness3DDelegate {
|
|
266
|
+
@nonobjc public func handleLiveness3DValidation(validateModel: Liveness3DSuccess) {
|
|
267
|
+
let response: Dictionary<String, Any> = [
|
|
268
|
+
"cause": validateModel.cause ?? "",
|
|
269
|
+
"codId": String(validateModel.codID ?? 0.0),
|
|
270
|
+
"protocol": validateModel.protocolo ?? "",
|
|
271
|
+
"blob": validateModel.scanResultBlob ?? "",
|
|
272
|
+
"valid": validateModel.valid ?? false
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
resolve(response)
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
@nonobjc public func handleLiveness3DError(error: OILiveness3D.Liveness3DError) {
|
|
279
|
+
reject("\(error.code)", "\(error.message)", error.type as Error)
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
extension UIColor {
|
|
285
284
|
convenience init(hex: String) {
|
|
286
285
|
var cString: String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased()
|
|
287
|
-
|
|
286
|
+
|
|
288
287
|
if cString.hasPrefix("#") {
|
|
289
288
|
cString.remove(at: cString.startIndex)
|
|
290
289
|
}
|
|
291
|
-
|
|
290
|
+
|
|
292
291
|
if cString.count != 6 {
|
|
293
292
|
self.init(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0)
|
|
294
293
|
}
|
|
295
|
-
|
|
294
|
+
|
|
296
295
|
var rgbValue: UInt64 = 0
|
|
297
296
|
Scanner(string: cString).scanHexInt64(&rgbValue)
|
|
298
|
-
|
|
297
|
+
|
|
299
298
|
self.init(
|
|
300
299
|
red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0,
|
|
301
300
|
green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0,
|
|
@@ -303,4 +302,4 @@ public extension UIColor {
|
|
|
303
302
|
alpha: 1.0
|
|
304
303
|
)
|
|
305
304
|
}
|
|
306
|
-
}
|
|
305
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ArgsType.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ArgsType.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/FontsType.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/FontsType.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ResultType.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ResultType.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ResultTypes.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ResultTypes.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/TextsType.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/TextsType.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ThemeType.ts"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ThemeType.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeRnLiveness3d.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAA0B,cAAc;AAQpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,cAAc,CAAC","ignoreList":[]}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useRef } from 'react';
|
|
3
3
|
import { TouchableOpacity } from 'react-native';
|
|
4
4
|
import { useLiveness3DContext } from '../context/Liveness3DContext';
|
|
5
|
-
export const BackButton =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} = _ref;
|
|
5
|
+
export const BackButton = ({
|
|
6
|
+
children,
|
|
7
|
+
...props
|
|
8
|
+
}) => {
|
|
10
9
|
const touchableOpacityRef = useRef(null);
|
|
11
10
|
const {
|
|
12
11
|
onBack
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","BackButton","
|
|
1
|
+
{"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","BackButton","children","props","touchableOpacityRef","onBack","handlePress","createElement","_extends","ref","onPress"],"sourceRoot":"../../../src","sources":["actions/BackButton.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,oBAAoB,QAAQ,8BAA8B;AAGnE,OAAO,MAAMC,UAA6C,GAAGA,CAAC;EAC5DC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,mBAAmB,GAAGN,MAAM,CAAC,IAAI,CAAC;EACxC,MAAM;IAAEO;EAAO,CAAC,GAAGL,oBAAoB,CAAC,CAAC;EAEzC,MAAMM,WAAW,GAAGA,CAAA,KAAM;IACxBD,MAAM,CAAC,CAAC;EACV,CAAC;EAED;IAAA;IACE;IACAR,KAAA,CAAAU,aAAA,CAACR,gBAAgB,EAAAS,QAAA;MACfC,GAAG,EAAEL,mBAAoB;MACzBM,OAAO,EAAEJ;IAAY,GACjBH,KAAK,GAERD,QACe;EAAC;AAEvB,CAAC","ignoreList":[]}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useRef } from 'react';
|
|
3
3
|
import { TouchableOpacity } from 'react-native';
|
|
4
4
|
import { useLiveness3DContext } from '../context/Liveness3DContext';
|
|
5
5
|
import { continueButton } from '../utils/continueButton';
|
|
6
|
-
export const ContinueButton =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} = _ref;
|
|
6
|
+
export const ContinueButton = ({
|
|
7
|
+
children,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
11
10
|
const touchableOpacityRef = useRef(null);
|
|
12
11
|
const {
|
|
13
12
|
setScreen,
|
|
14
13
|
startLiveness
|
|
15
14
|
} = useLiveness3DContext();
|
|
16
15
|
function onContinue() {
|
|
17
|
-
continueButton()
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
if (continueButton() === true) {
|
|
17
|
+
startLiveness();
|
|
18
|
+
} else {
|
|
19
|
+
setScreen(2);
|
|
20
|
+
}
|
|
21
21
|
}
|
|
22
22
|
const handlePress = () => {
|
|
23
23
|
onContinue();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","continueButton","ContinueButton","
|
|
1
|
+
{"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","continueButton","ContinueButton","children","props","touchableOpacityRef","setScreen","startLiveness","onContinue","handlePress","createElement","_extends","ref","onPress"],"sourceRoot":"../../../src","sources":["actions/ContinueButton.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,oBAAoB,QAAQ,8BAA8B;AACnE,SAASC,cAAc,QAAQ,yBAAyB;AAGxD,OAAO,MAAMC,cAAqD,GAAGA,CAAC;EACpEC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,mBAAmB,GAAGP,MAAM,CAAC,IAAI,CAAC;EACxC,MAAM;IAAEQ,SAAS;IAAEC;EAAc,CAAC,GAAGP,oBAAoB,CAAC,CAAC;EAE3D,SAASQ,UAAUA,CAAA,EAAG;IACpB,IAAIP,cAAc,CAAC,CAAC,KAAK,IAAI,EAAE;MAC7BM,aAAa,CAAC,CAAC;IACjB,CAAC,MAAM;MACLD,SAAS,CAAC,CAAC,CAAC;IACd;EACF;EAEA,MAAMG,WAAW,GAAGA,CAAA,KAAM;IACxBD,UAAU,CAAC,CAAC;EACd,CAAC;EAED;IAAA;IACE;IACAX,KAAA,CAAAa,aAAA,CAACX,gBAAgB,EAAAY,QAAA;MACfC,GAAG,EAAEP,mBAAoB;MACzBQ,OAAO,EAAEJ;IAAY,GACjBL,KAAK,GAERD,QACe;EAAC;AAEvB,CAAC","ignoreList":[]}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
2
|
import React, { useRef } from 'react';
|
|
3
3
|
import { TouchableOpacity } from 'react-native';
|
|
4
4
|
import { useLiveness3DContext } from '../context/Liveness3DContext';
|
|
5
|
-
export const PermissionButton =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} = _ref;
|
|
5
|
+
export const PermissionButton = ({
|
|
6
|
+
children,
|
|
7
|
+
...props
|
|
8
|
+
}) => {
|
|
10
9
|
const touchableOpacityRef = useRef(null);
|
|
11
10
|
const {
|
|
12
|
-
|
|
11
|
+
onRequestCameraPermission
|
|
13
12
|
} = useLiveness3DContext();
|
|
14
13
|
const handlePress = () => {
|
|
15
|
-
|
|
14
|
+
onRequestCameraPermission();
|
|
16
15
|
};
|
|
17
16
|
return (
|
|
18
17
|
/*#__PURE__*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","PermissionButton","
|
|
1
|
+
{"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","PermissionButton","children","props","touchableOpacityRef","onRequestCameraPermission","handlePress","createElement","_extends","ref","onPress"],"sourceRoot":"../../../src","sources":["actions/PermissionButton.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,MAAM,QAAQ,OAAO;AACrC,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,oBAAoB,QAAQ,8BAA8B;AAGnE,OAAO,MAAMC,gBAAyD,GAAGA,CAAC;EACxEC,QAAQ;EACR,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,mBAAmB,GAAGN,MAAM,CAAC,IAAI,CAAC;EACxC,MAAM;IAAEO;EAA0B,CAAC,GAAGL,oBAAoB,CAAC,CAAC;EAE5D,MAAMM,WAAW,GAAGA,CAAA,KAAM;IACxBD,yBAAyB,CAAC,CAAC;EAC7B,CAAC;EAED;IAAA;IACE;IACAR,KAAA,CAAAU,aAAA,CAACR,gBAAgB,EAAAS,QAAA;MACfC,GAAG,EAAEL,mBAAoB;MACzBM,OAAO,EAAEJ;IAAY,GACjBH,KAAK,GAERD,QACe;EAAC;AAEvB,CAAC","ignoreList":[]}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { startLiveness3d } from '../index';
|
|
2
2
|
import React, { createContext, useContext, useState } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import { Platform } from 'react-native';
|
|
3
|
+
import { requestCameraPermission } from '../utils/permissions';
|
|
5
4
|
export const SCREEN = Object.freeze({
|
|
6
5
|
INSTRUCTION_VIEW: 1,
|
|
7
6
|
PERMISSION_VIEW: 2
|
|
8
7
|
});
|
|
9
8
|
const Liveness3DContext = /*#__PURE__*/createContext(undefined);
|
|
10
|
-
export const Liveness3DProvider =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = _ref;
|
|
9
|
+
export const Liveness3DProvider = ({
|
|
10
|
+
children,
|
|
11
|
+
onError,
|
|
12
|
+
onSuccess
|
|
13
|
+
}) => {
|
|
16
14
|
const [screen, setScreen] = useState(1);
|
|
17
15
|
const [navigation, setNavigation] = useState();
|
|
18
16
|
const [options, setOptions] = useState();
|
|
@@ -38,22 +36,11 @@ export const Liveness3DProvider = _ref => {
|
|
|
38
36
|
}
|
|
39
37
|
function startLiveness() {
|
|
40
38
|
if (options) {
|
|
41
|
-
startLiveness3d(options
|
|
42
|
-
{
|
|
43
|
-
if (Platform.OS == 'android') {
|
|
44
|
-
//@ts-ignore
|
|
45
|
-
onSuccess(JSON.parse(result));
|
|
46
|
-
} else {
|
|
47
|
-
onSuccess(result);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}).catch(error => {
|
|
51
|
-
onError(error);
|
|
52
|
-
});
|
|
39
|
+
startLiveness3d(options, onSuccess, onError);
|
|
53
40
|
}
|
|
54
41
|
}
|
|
55
|
-
function
|
|
56
|
-
|
|
42
|
+
function onRequestCameraPermission() {
|
|
43
|
+
requestCameraPermission().then(result => {
|
|
57
44
|
result === true && startLiveness();
|
|
58
45
|
result === false && setScreen(1);
|
|
59
46
|
});
|
|
@@ -69,7 +56,7 @@ export const Liveness3DProvider = _ref => {
|
|
|
69
56
|
options,
|
|
70
57
|
setOptions,
|
|
71
58
|
startLiveness,
|
|
72
|
-
|
|
59
|
+
onRequestCameraPermission,
|
|
73
60
|
callbackView,
|
|
74
61
|
setCallbackView
|
|
75
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["startLiveness3d","React","createContext","useContext","useState","
|
|
1
|
+
{"version":3,"names":["startLiveness3d","React","createContext","useContext","useState","requestCameraPermission","SCREEN","Object","freeze","INSTRUCTION_VIEW","PERMISSION_VIEW","Liveness3DContext","undefined","Liveness3DProvider","children","onError","onSuccess","screen","setScreen","navigation","setNavigation","options","setOptions","callbackView","setCallbackView","onLiveness3DError","error","onLiveness3DSuccess","result","onBack","code","message","startLiveness","onRequestCameraPermission","then","contextValue","createElement","Provider","value","useLiveness3DContext","context","Error"],"sourceRoot":"../../../src","sources":["context/Liveness3DContext.tsx"],"mappings":"AAAA,SAASA,eAAe,QAAQ,UAAU;AAC1C,OAAOC,KAAK,IAAIC,aAAa,EAAWC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AAI3E,SAASC,uBAAuB,QAAQ,sBAAsB;AAE9D,OAAO,MAAMC,MAAM,GAAGC,MAAM,CAACC,MAAM,CAAC;EAClCC,gBAAgB,EAAE,CAAC;EACnBC,eAAe,EAAE;AACnB,CAAU,CAAC;AAkBX,MAAMC,iBAAiB,gBAAGT,aAAa,CACrCU,SACF,CAAC;AAED,OAAO,MAAMC,kBAAkC,GAAGA,CAAC;EACjDC,QAAQ;EACRC,OAAO;EACPC;AACF,CAAC,KAAK;EACJ,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGd,QAAQ,CAAS,CAAC,CAAC;EAC/C,MAAM,CAACe,UAAU,EAAEC,aAAa,CAAC,GAAGhB,QAAQ,CAAM,CAAC;EACnD,MAAM,CAACiB,OAAO,EAAEC,UAAU,CAAC,GAAGlB,QAAQ,CAAW,CAAC;EAClD,MAAM,CAACmB,YAAY,EAAEC,eAAe,CAAC,GAAGpB,QAAQ,CAAS,EAAE,CAAC;EAE5D,MAAMqB,iBAAiB,GAAIC,KAAkB,IAAK;IAChDX,OAAO,CAACW,KAAK,CAAC;EAChB,CAAC;EAED,MAAMC,mBAAmB,GAAIC,MAAqB,IAAK;IACrDZ,SAAS,CAACY,MAAM,CAAC;EACnB,CAAC;EAED,SAASC,MAAMA,CAAA,EAAG;IAChB,QAAQZ,MAAM;MACZ,KAAKX,MAAM,CAACG,gBAAgB;QAC1BgB,iBAAiB,CAAC;UAAEK,IAAI,EAAE,GAAG;UAAEC,OAAO,EAAE;QAAkB,CAAC,CAAC;QAC5D;MACF,KAAKzB,MAAM,CAACI,eAAe;QACzBQ,SAAS,CAAC,CAAC,CAAC;QACZ;IACJ;EACF;EAEA,SAASc,aAAaA,CAAA,EAAG;IACvB,IAAIX,OAAO,EAAE;MACXrB,eAAe,CAACqB,OAAO,EAAEL,SAAS,EAAED,OAAO,CAAC;IAC9C;EACF;EAEA,SAASkB,yBAAyBA,CAAA,EAAG;IACnC5B,uBAAuB,CAAC,CAAC,CAAC6B,IAAI,CAAEN,MAAM,IAAK;MACzCA,MAAM,KAAK,IAAI,IAAII,aAAa,CAAC,CAAC;MAClCJ,MAAM,KAAK,KAAK,IAAIV,SAAS,CAAC,CAAC,CAAC;IAClC,CAAC,CAAC;EACJ;EAEA,MAAMiB,YAAmC,GAAG;IAC1ClB,MAAM;IACNC,SAAS;IACTC,UAAU;IACVC,aAAa;IACbK,iBAAiB;IACjBE,mBAAmB;IACnBE,MAAM;IACNR,OAAO;IACPC,UAAU;IACVU,aAAa;IACbC,yBAAyB;IACzBV,YAAY;IACZC;EACF,CAAC;EAED;IAAA;IACE;IACAvB,KAAA,CAAAmC,aAAA,CAACzB,iBAAiB,CAAC0B,QAAQ;MAACC,KAAK,EAAEH;IAAa,GAC7CrB,QACyB;EAAC;AAEjC,CAAC;AAED,OAAO,MAAMyB,oBAAoB,GAAGA,CAAA,KAA6B;EAC/D,MAAMC,OAAO,GAAGrC,UAAU,CAACQ,iBAAiB,CAAC;EAC7C,IAAI,CAAC6B,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CACb,+DACF,CAAC;EACH;EACA,OAAOD,OAAO;AAChB,CAAC;AAED,eAAe7B,iBAAiB","ignoreList":[]}
|