@oiti/rn-liveness3d 1.1.2 → 2.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.
Files changed (412) hide show
  1. package/README.md +33 -237
  2. package/android/build.gradle +4 -18
  3. package/android/settings.gradle +2 -2
  4. package/android/src/main/AndroidManifest.xml +3 -0
  5. package/android/src/main/java/br/com/oiti/rnliveness3d/RnLiveness3dModule.kt +198 -132
  6. package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DFonts.kt +44 -0
  7. package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DText.kt +68 -0
  8. package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DTheme.kt +147 -0
  9. package/ios/Podfile +2 -1
  10. package/ios/Podfile.lock +39 -0
  11. package/ios/Pods/Manifest.lock +24 -19
  12. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/Info.plist +42 -0
  13. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Headers/OICommons-Swift.h +310 -0
  14. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Headers/OICommons.h +15 -0
  15. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Info.plist +0 -0
  16. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Bold.otf +0 -0
  17. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Medium.otf +0 -0
  18. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Regular.otf +0 -0
  19. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.abi.json +9 -0
  20. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.private.swiftinterface +1865 -0
  21. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  22. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.swiftinterface +1865 -0
  23. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/module.modulemap +11 -0
  24. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/OICommons +0 -0
  25. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Bold.otf +0 -0
  26. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Medium.otf +0 -0
  27. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Regular.otf +0 -0
  28. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/dSYMs/OICommons.framework.dSYM/Contents/Info.plist +20 -0
  29. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/dSYMs/OICommons.framework.dSYM/Contents/Resources/DWARF/OICommons +0 -0
  30. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Headers/OICommons-Swift.h +616 -0
  31. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Headers/OICommons.h +15 -0
  32. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Info.plist +0 -0
  33. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Bold.otf +0 -0
  34. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Medium.otf +0 -0
  35. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Regular.otf +0 -0
  36. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.abi.json +9 -0
  37. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1865 -0
  38. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  39. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1865 -0
  40. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/x86_64-apple-ios-simulator.abi.json +9 -0
  41. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1865 -0
  42. 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
  43. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1865 -0
  44. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/module.modulemap +11 -0
  45. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/OICommons +0 -0
  46. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Bold.otf +0 -0
  47. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Medium.otf +0 -0
  48. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Regular.otf +0 -0
  49. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/_CodeSignature/CodeResources +311 -0
  50. package/ios/Pods/OICommons/README.md +1 -0
  51. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/Info.plist +42 -0
  52. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Assets.car +0 -0
  53. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Headers/OIComponents-Swift.h +406 -0
  54. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Headers/OIComponents.h +18 -0
  55. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Info.plist +0 -0
  56. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.abi.json +9 -0
  57. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.private.swiftinterface +724 -0
  58. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  59. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.swiftinterface +724 -0
  60. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/module.modulemap +11 -0
  61. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/OIComponents +0 -0
  62. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/dSYMs/OIComponents.framework.dSYM/Contents/Info.plist +20 -0
  63. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/dSYMs/OIComponents.framework.dSYM/Contents/Resources/DWARF/OIComponents +0 -0
  64. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/dSYMs/OIComponents.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +1865 -0
  65. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Assets.car +0 -0
  66. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Headers/OIComponents-Swift.h +808 -0
  67. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Headers/OIComponents.h +18 -0
  68. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Info.plist +0 -0
  69. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.abi.json +9 -0
  70. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +724 -0
  71. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  72. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.swiftinterface +724 -0
  73. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/x86_64-apple-ios-simulator.abi.json +9 -0
  74. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +724 -0
  75. 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
  76. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +724 -0
  77. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/module.modulemap +11 -0
  78. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/OIComponents +0 -0
  79. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/_CodeSignature/CodeResources +256 -0
  80. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework.zip +0 -0
  81. package/ios/Pods/OIComponents/README.md +1 -0
  82. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/Info.plist +42 -0
  83. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Assets.car +0 -0
  84. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Headers/OILiveness3D-Swift.h +294 -0
  85. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Headers/OILiveness3D.h +18 -0
  86. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Info.plist +0 -0
  87. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.abi.json +9 -0
  88. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.private.swiftinterface +224 -0
  89. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  90. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.swiftinterface +224 -0
  91. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/module.modulemap +11 -0
  92. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/OILiveness3D +0 -0
  93. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Info.plist +20 -0
  94. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/DWARF/OILiveness3D +0 -0
  95. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +1865 -0
  96. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OIComponents.swiftinterface +724 -0
  97. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OINetwork.swiftinterface +150 -0
  98. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OISecurity.swiftinterface +141 -0
  99. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Assets.car +0 -0
  100. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Headers/OILiveness3D-Swift.h +584 -0
  101. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Headers/OILiveness3D.h +18 -0
  102. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Info.plist +0 -0
  103. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.abi.json +9 -0
  104. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +224 -0
  105. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  106. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.swiftinterface +224 -0
  107. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/x86_64-apple-ios-simulator.abi.json +9 -0
  108. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +224 -0
  109. 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
  110. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +224 -0
  111. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/module.modulemap +11 -0
  112. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/OILiveness3D +0 -0
  113. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/_CodeSignature/CodeResources +256 -0
  114. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework.zip +0 -0
  115. package/ios/Pods/OILiveness3D/README.md +32 -0
  116. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/Info.plist +40 -0
  117. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Assets.car +0 -0
  118. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/FaceTecSDK +0 -0
  119. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/GenericGuidanceContentLayout.nib +0 -0
  120. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecPublicApi.h +1915 -0
  121. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecPublicStringKeys.h +104 -0
  122. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecSDK.h +16 -0
  123. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Info.plist +0 -0
  124. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Modules/module.modulemap +6 -0
  125. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ReadyScreenGuidanceContentLayout.nib +0 -0
  126. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/RetryScreenGuidanceContentLayout.nib +0 -0
  127. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/SharedGuidanceLayout.nib +0 -0
  128. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/9Uo-4b-JiE-view-Ae0-rb-UqS.nib +0 -0
  129. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/CJ6-MX-bJp-view-8JL-Rc-0g1.nib +0 -0
  130. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceScanViewController.nib +0 -0
  131. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecAdditionalReviewViewController.nib +0 -0
  132. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecOCRConfirmationViewController.nib +0 -0
  133. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/IDCaptureViewController.nib +0 -0
  134. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/IDSelectionViewController.nib +0 -0
  135. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/Info.plist +0 -0
  136. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/Pyw-6G-JSY-view-Zue-Eo-Q2U.nib +0 -0
  137. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/alz-Ia-X3d-view-IKu-EI-Hug.nib +0 -0
  138. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/l2Q-cc-kD8-view-UUy-6c-meu.nib +0 -0
  139. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/af.lproj/FaceTec.strings +0 -0
  140. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ar.lproj/FaceTec.strings +0 -0
  141. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/attributions.txt +137 -0
  142. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/1f5b84f51ce0fcfbb76e904b7bcaa7560f601e1394a0b29367a09385312287eb +0 -0
  143. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/2b075ac1a6132b5b8a4c9ef0ba6b0cd84db7838aca9a000e50d907f40770a4ab +0 -0
  144. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/59cc2a9af81aaca2376702c2490650f4da2775fa673274db98aad41b7ef101c0 +0 -0
  145. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/5b63e98b991aedabb60665503384f30bffd939decf9433883b30b78011ee501a +0 -0
  146. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/66388dc76dc16bc6b76b682edd218a575bf45b9b +0 -0
  147. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/6b3133f0f39ff89a2a169d61176ee17cafacc5e288f334e2b64ee82892d11ccd +0 -0
  148. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/9077d16225f9314163ef1e7db6fc7d4088bb903d134bd95f23d5591ca4dfbfca +0 -0
  149. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/a74f2afb9d20f2375ccbd14e67c094b85c89ceb608f7cf8ae04f3f646a6c5672 +0 -0
  150. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/b501893e75f62ee1707643e35b21109927b07ed5b202321c961b424cbc2e4695 +0 -0
  151. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/dbd7a353f0130bb983d6ba05917e9be991d70e8f028df4b74e30bc6497ef7f71 +0 -0
  152. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/f2.xml +0 -0
  153. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/fd6d368a5658496536e2bfae170d1b823a3629b242cafc09784bfba4e56d8c80 +0 -0
  154. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/marker +0 -0
  155. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/vu0ilin6we3lrzo5f83f7qs2jul4aq7v4aoynrmch8zfvpi8ezrfyafa4t0fx87l +0 -0
  156. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/de.lproj/FaceTec.strings +0 -0
  157. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/el.lproj/FaceTec.strings +0 -0
  158. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/en.lproj/FaceTec.strings +0 -0
  159. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/es.lproj/FaceTec.strings +0 -0
  160. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/fr.lproj/FaceTec.strings +0 -0
  161. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/kk.lproj/FaceTec.strings +0 -0
  162. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/nb.lproj/FaceTec.strings +0 -0
  163. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/pt-BR.lproj/FaceTec.strings +0 -0
  164. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ru.lproj/FaceTec.strings +0 -0
  165. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/strip-unused-architectures-from-target.sh +62 -0
  166. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/FaceTecSDK +0 -0
  167. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecPublicApi.h +1915 -0
  168. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecPublicStringKeys.h +104 -0
  169. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecSDK.h +16 -0
  170. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Info.plist +0 -0
  171. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Modules/module.modulemap +6 -0
  172. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/_CodeSignature/CodeResources +146 -0
  173. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework.zip +0 -0
  174. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/Info.plist +42 -0
  175. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Headers/OINetwork-Swift.h +265 -0
  176. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Headers/OINetwork.h +15 -0
  177. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Info.plist +0 -0
  178. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.abi.json +9 -0
  179. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.private.swiftinterface +150 -0
  180. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  181. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.swiftinterface +150 -0
  182. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/module.modulemap +11 -0
  183. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/OINetwork +0 -0
  184. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Info.plist +20 -0
  185. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Resources/DWARF/OINetwork +0 -0
  186. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +1865 -0
  187. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Headers/OINetwork-Swift.h +526 -0
  188. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Headers/OINetwork.h +15 -0
  189. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Info.plist +0 -0
  190. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.abi.json +9 -0
  191. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +150 -0
  192. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  193. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.swiftinterface +150 -0
  194. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/x86_64-apple-ios-simulator.abi.json +9 -0
  195. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +150 -0
  196. 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
  197. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +150 -0
  198. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/module.modulemap +11 -0
  199. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/OINetwork +0 -0
  200. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/_CodeSignature/CodeResources +245 -0
  201. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework.zip +0 -0
  202. package/ios/Pods/OINetwork/README.md +1 -0
  203. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/Info.plist +42 -0
  204. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Headers/OISecurity-Swift.h +264 -0
  205. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Headers/OISecurity.h +16 -0
  206. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Info.plist +0 -0
  207. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.abi.json +9 -0
  208. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.private.swiftinterface +141 -0
  209. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  210. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.swiftinterface +141 -0
  211. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/module.modulemap +11 -0
  212. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/OISecurity +0 -0
  213. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/_CodeSignature/CodeResources +190 -0
  214. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Info.plist +20 -0
  215. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Resources/DWARF/OISecurity +0 -0
  216. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Resources/Swift/aarch64/OINetwork.swiftinterface +150 -0
  217. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Headers/OISecurity-Swift.h +524 -0
  218. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Headers/OISecurity.h +16 -0
  219. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Info.plist +0 -0
  220. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.abi.json +9 -0
  221. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +141 -0
  222. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  223. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.swiftinterface +141 -0
  224. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/x86_64-apple-ios-simulator.abi.json +9 -0
  225. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +141 -0
  226. 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
  227. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +141 -0
  228. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/module.modulemap +11 -0
  229. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/OISecurity +0 -0
  230. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/_CodeSignature/CodeResources +245 -0
  231. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework.zip +0 -0
  232. package/ios/Pods/OISecurity/README.md +1 -0
  233. package/ios/Pods/Pods.xcodeproj/project.pbxproj +1235 -0
  234. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OICommons.xcscheme +58 -0
  235. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OIComponents.xcscheme +58 -0
  236. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OILiveness3D.xcscheme +58 -0
  237. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OILiveness3D_FT.xcscheme +58 -0
  238. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OINetwork.xcscheme +58 -0
  239. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OISecurity.xcscheme +58 -0
  240. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/Pods-RnLiveness3d.xcscheme +58 -0
  241. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/xcschememanagement.plist +46 -0
  242. package/ios/Pods/Target Support Files/OICommons/OICommons-xcframeworks.sh +121 -0
  243. package/ios/Pods/Target Support Files/OICommons/OICommons.debug.xcconfig +15 -0
  244. package/ios/Pods/Target Support Files/OICommons/OICommons.release.xcconfig +15 -0
  245. package/ios/Pods/Target Support Files/OIComponents/OIComponents-xcframeworks.sh +121 -0
  246. package/ios/Pods/Target Support Files/OIComponents/OIComponents.debug.xcconfig +16 -0
  247. package/ios/Pods/Target Support Files/OIComponents/OIComponents.release.xcconfig +16 -0
  248. package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D-xcframeworks.sh +121 -0
  249. package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D.debug.xcconfig +16 -0
  250. package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D.release.xcconfig +16 -0
  251. package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT-xcframeworks.sh +121 -0
  252. package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT.debug.xcconfig +13 -0
  253. package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT.release.xcconfig +13 -0
  254. package/ios/Pods/Target Support Files/OINetwork/OINetwork-xcframeworks.sh +121 -0
  255. package/ios/Pods/Target Support Files/OINetwork/OINetwork.debug.xcconfig +16 -0
  256. package/ios/Pods/Target Support Files/OINetwork/OINetwork.release.xcconfig +16 -0
  257. package/ios/Pods/Target Support Files/OISecurity/OISecurity-xcframeworks.sh +121 -0
  258. package/ios/Pods/Target Support Files/OISecurity/OISecurity.debug.xcconfig +16 -0
  259. package/ios/Pods/Target Support Files/OISecurity/OISecurity.release.xcconfig +16 -0
  260. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-Info.plist +26 -0
  261. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-acknowledgements.markdown +23 -0
  262. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-acknowledgements.plist +79 -0
  263. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-dummy.m +5 -0
  264. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-umbrella.h +16 -0
  265. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.debug.xcconfig +13 -0
  266. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.modulemap +6 -0
  267. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.release.xcconfig +13 -0
  268. package/ios/RnLiveness3d.m +8 -3
  269. package/ios/RnLiveness3d.swift +198 -114
  270. package/ios/RnLiveness3d.xcworkspace/xcuserdata/gabrielcatelligoulart.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  271. package/lib/commonjs/@types/ArgsType.js +4 -0
  272. package/lib/commonjs/@types/FontsType.js +2 -0
  273. package/lib/commonjs/@types/FontsType.js.map +1 -0
  274. package/lib/commonjs/@types/ResultType.js +2 -0
  275. package/lib/commonjs/@types/ResultType.js.map +1 -0
  276. package/lib/commonjs/@types/ResultTypes.js +6 -0
  277. package/lib/commonjs/@types/ResultTypes.js.map +1 -0
  278. package/lib/commonjs/@types/TextsType.js +2 -0
  279. package/lib/commonjs/@types/TextsType.js.map +1 -0
  280. package/lib/commonjs/@types/ThemeType.js +2 -0
  281. package/lib/commonjs/@types/ThemeType.js.map +1 -0
  282. package/lib/commonjs/actions/BackButton.js +35 -0
  283. package/lib/commonjs/actions/BackButton.js.map +1 -0
  284. package/lib/commonjs/actions/ContinueButton.js +43 -0
  285. package/lib/commonjs/actions/ContinueButton.js.map +1 -0
  286. package/lib/commonjs/actions/PermissionButton.js +35 -0
  287. package/lib/commonjs/actions/PermissionButton.js.map +1 -0
  288. package/lib/commonjs/context/Liveness3DContext.js +104 -0
  289. package/lib/commonjs/context/Liveness3DContext.js.map +1 -0
  290. package/lib/commonjs/helpers/Liveness3DHelper.js +34 -0
  291. package/lib/commonjs/helpers/Liveness3DHelper.js.map +1 -0
  292. package/lib/commonjs/index.js +121 -78
  293. package/lib/commonjs/index.js.map +1 -1
  294. package/lib/commonjs/interfaces/Liveness3DHelper.js +6 -0
  295. package/lib/commonjs/interfaces/Liveness3DHelper.js.map +1 -0
  296. package/lib/commonjs/interfaces/OitiBackButtonInterface.js +6 -0
  297. package/lib/commonjs/interfaces/OitiBackButtonInterface.js.map +1 -0
  298. package/lib/commonjs/interfaces/OitiContinueButton.js +6 -0
  299. package/lib/commonjs/interfaces/OitiContinueButton.js.map +1 -0
  300. package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js +6 -0
  301. package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js.map +1 -0
  302. package/lib/commonjs/screens/Liveness3D/InstructionsView.js +4 -4
  303. package/lib/commonjs/screens/Liveness3D/InstructionsView.js.map +1 -1
  304. package/lib/commonjs/utils/continueButton.js +17 -0
  305. package/lib/commonjs/utils/continueButton.js.map +1 -0
  306. package/lib/commonjs/utils/permissions.js +30 -0
  307. package/lib/commonjs/utils/permissions.js.map +1 -0
  308. package/lib/commonjs/utils/screenStore.js +12 -0
  309. package/lib/commonjs/utils/screenStore.js.map +1 -0
  310. package/lib/module/@types/ArgsType.js +1 -1
  311. package/lib/module/@types/FontsType.js +2 -0
  312. package/lib/module/@types/FontsType.js.map +1 -0
  313. package/lib/module/@types/ResultType.js +2 -0
  314. package/lib/module/@types/ResultType.js.map +1 -0
  315. package/lib/module/@types/ResultTypes.js +2 -0
  316. package/lib/module/@types/ResultTypes.js.map +1 -0
  317. package/lib/module/@types/TextsType.js +2 -0
  318. package/lib/module/@types/TextsType.js.map +1 -0
  319. package/lib/module/@types/ThemeType.js +2 -0
  320. package/lib/module/@types/ThemeType.js.map +1 -0
  321. package/lib/module/actions/BackButton.js +26 -0
  322. package/lib/module/actions/BackButton.js.map +1 -0
  323. package/lib/module/actions/ContinueButton.js +34 -0
  324. package/lib/module/actions/ContinueButton.js.map +1 -0
  325. package/lib/module/actions/PermissionButton.js +26 -0
  326. package/lib/module/actions/PermissionButton.js.map +1 -0
  327. package/lib/module/context/Liveness3DContext.js +92 -0
  328. package/lib/module/context/Liveness3DContext.js.map +1 -0
  329. package/lib/module/helpers/Liveness3DHelper.js +25 -0
  330. package/lib/module/helpers/Liveness3DHelper.js.map +1 -0
  331. package/lib/module/index.js +97 -75
  332. package/lib/module/index.js.map +1 -1
  333. package/lib/module/interfaces/Liveness3DHelper.js +2 -0
  334. package/lib/module/interfaces/Liveness3DHelper.js.map +1 -0
  335. package/lib/module/interfaces/OitiBackButtonInterface.js +2 -0
  336. package/lib/module/interfaces/OitiBackButtonInterface.js.map +1 -0
  337. package/lib/module/interfaces/OitiContinueButton.js +2 -0
  338. package/lib/module/interfaces/OitiContinueButton.js.map +1 -0
  339. package/lib/module/interfaces/OitiPermissionButtonInterface.js +2 -0
  340. package/lib/module/interfaces/OitiPermissionButtonInterface.js.map +1 -0
  341. package/lib/module/screens/Liveness3D/InstructionsView.js +4 -4
  342. package/lib/module/screens/Liveness3D/InstructionsView.js.map +1 -1
  343. package/lib/module/utils/continueButton.js +10 -0
  344. package/lib/module/utils/continueButton.js.map +1 -0
  345. package/lib/module/utils/permissions.js +21 -0
  346. package/lib/module/utils/permissions.js.map +1 -0
  347. package/lib/module/utils/screenStore.js +5 -0
  348. package/lib/module/utils/screenStore.js.map +1 -0
  349. package/lib/typescript/@types/ArgsType.d.ts +9 -9
  350. package/lib/typescript/@types/ArgsType.d.ts.map +1 -1
  351. package/lib/typescript/@types/FontsType.d.ts +12 -0
  352. package/lib/typescript/@types/FontsType.d.ts.map +1 -0
  353. package/lib/typescript/@types/ResultType.d.ts +13 -0
  354. package/lib/typescript/@types/ResultType.d.ts.map +1 -0
  355. package/lib/typescript/@types/ResultTypes.d.ts +6 -0
  356. package/lib/typescript/@types/ResultTypes.d.ts.map +1 -0
  357. package/lib/typescript/@types/TextsType.d.ts +36 -0
  358. package/lib/typescript/@types/TextsType.d.ts.map +1 -0
  359. package/lib/typescript/@types/ThemeType.d.ts +48 -0
  360. package/lib/typescript/@types/ThemeType.d.ts.map +1 -0
  361. package/lib/typescript/actions/BackButton.d.ts +4 -0
  362. package/lib/typescript/actions/BackButton.d.ts.map +1 -0
  363. package/lib/typescript/actions/ContinueButton.d.ts +4 -0
  364. package/lib/typescript/actions/ContinueButton.d.ts.map +1 -0
  365. package/lib/typescript/actions/PermissionButton.d.ts +4 -0
  366. package/lib/typescript/actions/PermissionButton.d.ts.map +1 -0
  367. package/lib/typescript/context/Liveness3DContext.d.ts +28 -0
  368. package/lib/typescript/context/Liveness3DContext.d.ts.map +1 -0
  369. package/lib/typescript/helpers/Liveness3DHelper.d.ts +4 -0
  370. package/lib/typescript/helpers/Liveness3DHelper.d.ts.map +1 -0
  371. package/lib/typescript/index.d.ts +21 -8
  372. package/lib/typescript/index.d.ts.map +1 -1
  373. package/lib/typescript/interfaces/Liveness3DHelper.d.ts +7 -0
  374. package/lib/typescript/interfaces/Liveness3DHelper.d.ts.map +1 -0
  375. package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts +6 -0
  376. package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts.map +1 -0
  377. package/lib/typescript/interfaces/OitiContinueButton.d.ts +6 -0
  378. package/lib/typescript/interfaces/OitiContinueButton.d.ts.map +1 -0
  379. package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts +6 -0
  380. package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts.map +1 -0
  381. package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts +1 -0
  382. package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts.map +1 -1
  383. package/lib/typescript/screens/PermissionView.d.ts +1 -0
  384. package/lib/typescript/screens/PermissionView.d.ts.map +1 -1
  385. package/lib/typescript/utils/continueButton.d.ts +2 -0
  386. package/lib/typescript/utils/continueButton.d.ts.map +1 -0
  387. package/lib/typescript/utils/permissions.d.ts +4 -0
  388. package/lib/typescript/utils/permissions.d.ts.map +1 -0
  389. package/lib/typescript/utils/screenStore.d.ts +5 -0
  390. package/lib/typescript/utils/screenStore.d.ts.map +1 -0
  391. package/oiti-rn-liveness3d.podspec +2 -1
  392. package/package.json +3 -6
  393. package/src/@types/ArgsType.ts +10 -10
  394. package/src/@types/FontsType.ts +22 -0
  395. package/src/@types/ResultType.ts +13 -0
  396. package/src/@types/ResultTypes.ts +6 -0
  397. package/src/@types/TextsType.ts +41 -0
  398. package/src/@types/ThemeType.ts +64 -0
  399. package/src/actions/BackButton.tsx +27 -0
  400. package/src/actions/ContinueButton.tsx +35 -0
  401. package/src/actions/PermissionButton.tsx +27 -0
  402. package/src/context/Liveness3DContext.tsx +122 -0
  403. package/src/helpers/Liveness3DHelper.tsx +24 -0
  404. package/src/index.tsx +120 -87
  405. package/src/interfaces/Liveness3DHelper.tsx +7 -0
  406. package/src/interfaces/OitiBackButtonInterface.tsx +6 -0
  407. package/src/interfaces/OitiContinueButton.tsx +6 -0
  408. package/src/interfaces/OitiPermissionButtonInterface.tsx +6 -0
  409. package/src/screens/Liveness3D/InstructionsView.tsx +8 -8
  410. package/src/utils/continueButton.tsx +12 -0
  411. package/src/utils/permissions.tsx +30 -0
  412. package/src/utils/screenStore.tsx +4 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.continueButton = void 0;
7
+ var _permissions = require("./permissions");
8
+ const continueButton = async () => {
9
+ return (0, _permissions.verifyPermission)().then(result => {
10
+ return result;
11
+ }).catch(error => {
12
+ console.error(error);
13
+ return false;
14
+ });
15
+ };
16
+ exports.continueButton = continueButton;
17
+ //# sourceMappingURL=continueButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_permissions","require","continueButton","verifyPermission","then","result","catch","error","console","exports"],"sourceRoot":"../../../src","sources":["utils/continueButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,cAAc,GAAG,MAAAA,CAAA,KAA8B;EAC1D,OAAO,IAAAC,6BAAgB,GAAE,CACtBC,IAAI,CAAEC,MAAM,IAAK;IAChB,OAAOA,MAAM;EACf,CAAC,CAAC,CACDC,KAAK,CAAEC,KAAK,IAAK;IAChBC,OAAO,CAACD,KAAK,CAACA,KAAK,CAAC;IACpB,OAAO,KAAK;EACd,CAAC,CAAC;AACN,CAAC;AAACE,OAAA,CAAAP,cAAA,GAAAA,cAAA"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.RnLiveness3d = void 0;
7
+ exports.askPermission = askPermission;
8
+ exports.verifyPermission = verifyPermission;
9
+ var _reactNative = require("react-native");
10
+ const RnLiveness3d = _reactNative.NativeModules.RnLiveness3d ? _reactNative.NativeModules.RnLiveness3d : new Proxy({}, {
11
+ get() {
12
+ throw new Error(LINKING_ERROR);
13
+ }
14
+ });
15
+ exports.RnLiveness3d = RnLiveness3d;
16
+ const LINKING_ERROR = `The package '@oiti/rn-liveness3d' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
17
+ ios: "- You have run 'pod install'\n",
18
+ default: ''
19
+ }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
20
+ function verifyPermission() {
21
+ return _reactNative.Platform.OS === 'android' ? RnLiveness3d.checkcamerapermission() : RnLiveness3d.checkiospermission({
22
+ p: 'granted'
23
+ });
24
+ }
25
+ function askPermission() {
26
+ return _reactNative.Platform.OS === 'android' ? RnLiveness3d.askcamerapermission() : RnLiveness3d.checkpermissiongranted({
27
+ p: 'granted'
28
+ });
29
+ }
30
+ //# sourceMappingURL=permissions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","RnLiveness3d","NativeModules","Proxy","get","Error","LINKING_ERROR","exports","Platform","select","ios","default","verifyPermission","OS","checkcamerapermission","checkiospermission","p","askPermission","askcamerapermission","checkpermissiongranted"],"sourceRoot":"../../../src","sources":["utils/permissions.tsx"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEO,MAAMC,YAAY,GAAGC,0BAAa,CAACD,YAAY,GAClDC,0BAAa,CAACD,YAAY,GAC1B,IAAIE,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACC,aAAa,CAAC;EAChC;AACF,CAAC,CACF;AAACC,OAAA,CAAAN,YAAA,GAAAA,YAAA;AAEN,MAAMK,aAAa,GAChB,8EAA6E,GAC9EE,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAE1B,SAASC,gBAAgBA,CAAA,EAAqB;EACnD,OAAOJ,qBAAQ,CAACK,EAAE,KAAK,SAAS,GAC5BZ,YAAY,CAACa,qBAAqB,EAAE,GACpCb,YAAY,CAACc,kBAAkB,CAAC;IAAEC,CAAC,EAAE;EAAU,CAAC,CAAC;AACvD;AAEO,SAASC,aAAaA,CAAA,EAAqB;EAChD,OAAOT,qBAAQ,CAACK,EAAE,KAAK,SAAS,GAC5BZ,YAAY,CAACiB,mBAAmB,EAAE,GAClCjB,YAAY,CAACkB,sBAAsB,CAAC;IAAEH,CAAC,EAAE;EAAU,CAAC,CAAC;AAC3D"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.SCREEN = void 0;
7
+ const SCREEN = Object.freeze({
8
+ INSTRUCTION_VIEW: 1,
9
+ PERMISSION_VIEW: 2
10
+ });
11
+ exports.SCREEN = SCREEN;
12
+ //# sourceMappingURL=screenStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SCREEN","Object","freeze","INSTRUCTION_VIEW","PERMISSION_VIEW","exports"],"sourceRoot":"../../../src","sources":["utils/screenStore.tsx"],"mappings":";;;;;;AAAO,MAAMA,MAAM,GAAGC,MAAM,CAACC,MAAM,CAAC;EAClCC,gBAAgB,EAAE,CAAC;EACnBC,eAAe,EAAE;AACnB,CAAC,CAAU;AAACC,OAAA,CAAAL,MAAA,GAAAA,MAAA"}
@@ -1,2 +1,2 @@
1
-
1
+ export {};
2
2
  //# sourceMappingURL=ArgsType.js.map
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=FontsType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/FontsType.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=ResultType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ResultType.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ResultTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ResultTypes.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=TextsType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/TextsType.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=ThemeType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["@types/ThemeType.ts"],"mappings":""}
@@ -0,0 +1,26 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React, { useRef } from 'react';
3
+ import { TouchableOpacity } from 'react-native';
4
+ import { useLiveness3DContext } from '../context/Liveness3DContext';
5
+ export const BackButton = _ref => {
6
+ let {
7
+ children,
8
+ ...props
9
+ } = _ref;
10
+ const touchableOpacityRef = useRef(null);
11
+ const {
12
+ onBack
13
+ } = useLiveness3DContext();
14
+ const handlePress = () => {
15
+ onBack();
16
+ };
17
+ return (
18
+ /*#__PURE__*/
19
+ //@ts-ignore
20
+ React.createElement(TouchableOpacity, _extends({
21
+ ref: touchableOpacityRef,
22
+ onPress: handlePress
23
+ }, props), children)
24
+ );
25
+ };
26
+ //# sourceMappingURL=BackButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","BackButton","_ref","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,GAAGC,IAAA,IAGvD;EAAA,IAHwD;IAC5DC,QAAQ;IACR,GAAGC;EACL,CAAC,GAAAF,IAAA;EACC,MAAMG,mBAAmB,GAAGP,MAAM,CAAC,IAAI,CAAC;EACxC,MAAM;IAAEQ;EAAO,CAAC,GAAGN,oBAAoB,EAAE;EAEzC,MAAMO,WAAW,GAAGA,CAAA,KAAM;IACxBD,MAAM,EAAE;EACV,CAAC;EAED;IAAA;IACE;IACAT,KAAA,CAAAW,aAAA,CAACT,gBAAgB,EAAAU,QAAA;MACfC,GAAG,EAAEL,mBAAoB;MACzBM,OAAO,EAAEJ;IAAY,GACjBH,KAAK,GAERD,QAAQ;EACQ;AAEvB,CAAC"}
@@ -0,0 +1,34 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React, { useRef } from 'react';
3
+ import { TouchableOpacity } from 'react-native';
4
+ import { useLiveness3DContext } from '../context/Liveness3DContext';
5
+ import { continueButton } from '../utils/continueButton';
6
+ export const ContinueButton = _ref => {
7
+ let {
8
+ children,
9
+ ...props
10
+ } = _ref;
11
+ const touchableOpacityRef = useRef(null);
12
+ const {
13
+ setScreen,
14
+ startLiveness
15
+ } = useLiveness3DContext();
16
+ function onContinue() {
17
+ continueButton().then(result => {
18
+ result === true && startLiveness();
19
+ result === false && setScreen(2);
20
+ });
21
+ }
22
+ const handlePress = () => {
23
+ onContinue();
24
+ };
25
+ return (
26
+ /*#__PURE__*/
27
+ //@ts-ignore
28
+ React.createElement(TouchableOpacity, _extends({
29
+ ref: touchableOpacityRef,
30
+ onPress: handlePress
31
+ }, props), children)
32
+ );
33
+ };
34
+ //# sourceMappingURL=ContinueButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","continueButton","ContinueButton","_ref","children","props","touchableOpacityRef","setScreen","startLiveness","onContinue","then","result","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,GAAGC,IAAA,IAG/D;EAAA,IAHgE;IACpEC,QAAQ;IACR,GAAGC;EACL,CAAC,GAAAF,IAAA;EACC,MAAMG,mBAAmB,GAAGR,MAAM,CAAC,IAAI,CAAC;EACxC,MAAM;IAAES,SAAS;IAAEC;EAAc,CAAC,GAAGR,oBAAoB,EAAE;EAE3D,SAASS,UAAUA,CAAA,EAAG;IACpBR,cAAc,EAAE,CAACS,IAAI,CAAEC,MAAM,IAAK;MAChCA,MAAM,KAAK,IAAI,IAAIH,aAAa,EAAE;MAClCG,MAAM,KAAK,KAAK,IAAIJ,SAAS,CAAC,CAAC,CAAC;IAClC,CAAC,CAAC;EACJ;EAEA,MAAMK,WAAW,GAAGA,CAAA,KAAM;IACxBH,UAAU,EAAE;EACd,CAAC;EAED;IAAA;IACE;IACAZ,KAAA,CAAAgB,aAAA,CAACd,gBAAgB,EAAAe,QAAA;MACfC,GAAG,EAAET,mBAAoB;MACzBU,OAAO,EAAEJ;IAAY,GACjBP,KAAK,GAERD,QAAQ;EACQ;AAEvB,CAAC"}
@@ -0,0 +1,26 @@
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+ import React, { useRef } from 'react';
3
+ import { TouchableOpacity } from 'react-native';
4
+ import { useLiveness3DContext } from '../context/Liveness3DContext';
5
+ export const PermissionButton = _ref => {
6
+ let {
7
+ children,
8
+ ...props
9
+ } = _ref;
10
+ const touchableOpacityRef = useRef(null);
11
+ const {
12
+ onAskPermission
13
+ } = useLiveness3DContext();
14
+ const handlePress = () => {
15
+ onAskPermission();
16
+ };
17
+ return (
18
+ /*#__PURE__*/
19
+ //@ts-ignore
20
+ React.createElement(TouchableOpacity, _extends({
21
+ ref: touchableOpacityRef,
22
+ onPress: handlePress
23
+ }, props), children)
24
+ );
25
+ };
26
+ //# sourceMappingURL=PermissionButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useRef","TouchableOpacity","useLiveness3DContext","PermissionButton","_ref","children","props","touchableOpacityRef","onAskPermission","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,GAAGC,IAAA,IAGnE;EAAA,IAHoE;IACxEC,QAAQ;IACR,GAAGC;EACL,CAAC,GAAAF,IAAA;EACC,MAAMG,mBAAmB,GAAGP,MAAM,CAAC,IAAI,CAAC;EACxC,MAAM;IAAEQ;EAAgB,CAAC,GAAGN,oBAAoB,EAAE;EAElD,MAAMO,WAAW,GAAGA,CAAA,KAAM;IACxBD,eAAe,EAAE;EACnB,CAAC;EAED;IAAA;IACE;IACAT,KAAA,CAAAW,aAAA,CAACT,gBAAgB,EAAAU,QAAA;MACfC,GAAG,EAAEL,mBAAoB;MACzBM,OAAO,EAAEJ;IAAY,GACjBH,KAAK,GAERD,QAAQ;EACQ;AAEvB,CAAC"}
@@ -0,0 +1,92 @@
1
+ import { startLiveness3d } from '../index';
2
+ import React, { createContext, useContext, useState } from 'react';
3
+ import { askPermission } from '../utils/permissions';
4
+ import { Platform } from 'react-native';
5
+ export const SCREEN = Object.freeze({
6
+ INSTRUCTION_VIEW: 1,
7
+ PERMISSION_VIEW: 2
8
+ });
9
+ const Liveness3DContext = /*#__PURE__*/createContext(undefined);
10
+ export const Liveness3DProvider = _ref => {
11
+ let {
12
+ children,
13
+ onError,
14
+ onSuccess
15
+ } = _ref;
16
+ const [screen, setScreen] = useState(1);
17
+ const [navigation, setNavigation] = useState();
18
+ const [options, setOptions] = useState();
19
+ const [callbackView, setCallbackView] = useState('');
20
+ const onLiveness3DError = error => {
21
+ onError(error);
22
+ };
23
+ const onLiveness3DSuccess = result => {
24
+ onSuccess(result);
25
+ };
26
+ function onBack() {
27
+ switch (screen) {
28
+ case SCREEN.INSTRUCTION_VIEW:
29
+ onLiveness3DError({
30
+ code: '0',
31
+ message: 'RESULT_CANCELED'
32
+ });
33
+ break;
34
+ case SCREEN.PERMISSION_VIEW:
35
+ setScreen(1);
36
+ break;
37
+ }
38
+ }
39
+ function startLiveness() {
40
+ if (options) {
41
+ startLiveness3d(options).then(result => {
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
+ });
53
+ }
54
+ }
55
+ function onAskPermission() {
56
+ askPermission().then(result => {
57
+ result === true && startLiveness();
58
+ result === false && setScreen(1);
59
+ });
60
+ }
61
+ const contextValue = {
62
+ screen,
63
+ setScreen,
64
+ navigation,
65
+ setNavigation,
66
+ onLiveness3DError,
67
+ onLiveness3DSuccess,
68
+ onBack,
69
+ options,
70
+ setOptions,
71
+ startLiveness,
72
+ onAskPermission,
73
+ callbackView,
74
+ setCallbackView
75
+ };
76
+ return (
77
+ /*#__PURE__*/
78
+ //@ts-ignore
79
+ React.createElement(Liveness3DContext.Provider, {
80
+ value: contextValue
81
+ }, children)
82
+ );
83
+ };
84
+ export const useLiveness3DContext = () => {
85
+ const context = useContext(Liveness3DContext);
86
+ if (!context) {
87
+ throw new Error('useLiveness3DContext must be used within a Liveness3DProvider');
88
+ }
89
+ return context;
90
+ };
91
+ export default Liveness3DContext;
92
+ //# sourceMappingURL=Liveness3DContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["startLiveness3d","React","createContext","useContext","useState","askPermission","Platform","SCREEN","Object","freeze","INSTRUCTION_VIEW","PERMISSION_VIEW","Liveness3DContext","undefined","Liveness3DProvider","_ref","children","onError","onSuccess","screen","setScreen","navigation","setNavigation","options","setOptions","callbackView","setCallbackView","onLiveness3DError","error","onLiveness3DSuccess","result","onBack","code","message","startLiveness","then","OS","JSON","parse","catch","onAskPermission","contextValue","createElement","Provider","value","useLiveness3DContext","context","Error"],"sourceRoot":"../../../src","sources":["context/Liveness3DContext.tsx"],"mappings":"AAAA,SAASA,eAAe,QAAQ,UAAU;AAC1C,OAAOC,KAAK,IAAIC,aAAa,EAAMC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AAItE,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,MAAM,GAAGC,MAAM,CAACC,MAAM,CAAC;EAClCC,gBAAgB,EAAE,CAAC;EACnBC,eAAe,EAAE;AACnB,CAAC,CAAU;AAkBX,MAAMC,iBAAiB,gBAAGV,aAAa,CACrCW,SAAS,CACV;AAED,OAAO,MAAMC,kBAAkC,GAAGC,IAAA,IAI5C;EAAA,IAJ6C;IACjDC,QAAQ;IACRC,OAAO;IACPC;EACF,CAAC,GAAAH,IAAA;EACC,MAAM,CAACI,MAAM,EAAEC,SAAS,CAAC,GAAGhB,QAAQ,CAAS,CAAC,CAAC;EAC/C,MAAM,CAACiB,UAAU,EAAEC,aAAa,CAAC,GAAGlB,QAAQ,EAAO;EACnD,MAAM,CAACmB,OAAO,EAAEC,UAAU,CAAC,GAAGpB,QAAQ,EAAY;EAClD,MAAM,CAACqB,YAAY,EAAEC,eAAe,CAAC,GAAGtB,QAAQ,CAAS,EAAE,CAAC;EAE5D,MAAMuB,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,KAAKZ,MAAM,CAACG,gBAAgB;QAC1BiB,iBAAiB,CAAC;UAAEK,IAAI,EAAE,GAAG;UAAEC,OAAO,EAAE;QAAkB,CAAC,CAAC;QAC5D;MACF,KAAK1B,MAAM,CAACI,eAAe;QACzBS,SAAS,CAAC,CAAC,CAAC;QACZ;IAAM;EAEZ;EAEA,SAASc,aAAaA,CAAA,EAAG;IACvB,IAAIX,OAAO,EAAE;MACXvB,eAAe,CAACuB,OAAO,CAAC,CACrBY,IAAI,CAAEL,MAAM,IAAK;QAChB;UACE,IAAIxB,QAAQ,CAAC8B,EAAE,IAAI,SAAS,EAAE;YAC5B;YACAlB,SAAS,CAACmB,IAAI,CAACC,KAAK,CAACR,MAAM,CAAC,CAAkB;UAChD,CAAC,MAAM;YACLZ,SAAS,CAACY,MAAM,CAAkB;UACpC;QACF;MACF,CAAC,CAAC,CACDS,KAAK,CAAEX,KAAK,IAAK;QAChBX,OAAO,CAACW,KAAK,CAAgB;MAC/B,CAAC,CAAC;IACN;EACF;EACA,SAASY,eAAeA,CAAA,EAAG;IACzBnC,aAAa,EAAE,CAAC8B,IAAI,CAAEL,MAAM,IAAK;MAC/BA,MAAM,KAAK,IAAI,IAAII,aAAa,EAAE;MAClCJ,MAAM,KAAK,KAAK,IAAIV,SAAS,CAAC,CAAC,CAAC;IAClC,CAAC,CAAC;EACJ;EAEA,MAAMqB,YAAmC,GAAG;IAC1CtB,MAAM;IACNC,SAAS;IACTC,UAAU;IACVC,aAAa;IACbK,iBAAiB;IACjBE,mBAAmB;IACnBE,MAAM;IACNR,OAAO;IACPC,UAAU;IACVU,aAAa;IACbM,eAAe;IACff,YAAY;IACZC;EACF,CAAC;EAED;IAAA;IACE;IACAzB,KAAA,CAAAyC,aAAA,CAAC9B,iBAAiB,CAAC+B,QAAQ;MAACC,KAAK,EAAEH;IAAa,GAC7CzB,QAAQ;EACkB;AAEjC,CAAC;AAED,OAAO,MAAM6B,oBAAoB,GAAGA,CAAA,KAA6B;EAC/D,MAAMC,OAAO,GAAG3C,UAAU,CAACS,iBAAiB,CAAC;EAC7C,IAAI,CAACkC,OAAO,EAAE;IACZ,MAAM,IAAIC,KAAK,CACb,+DAA+D,CAChE;EACH;EACA,OAAOD,OAAO;AAChB,CAAC;AAED,eAAelC,iBAAiB"}
@@ -0,0 +1,25 @@
1
+ import React, { useEffect } from 'react';
2
+ import { useLiveness3DContext } from '../context/Liveness3DContext';
3
+ export const Liveness3DHelper = _ref => {
4
+ let {
5
+ children,
6
+ options,
7
+ onError
8
+ } = _ref;
9
+ const {
10
+ setNavigation,
11
+ setOptions,
12
+ setCallbackView
13
+ } = useLiveness3DContext();
14
+ useEffect(() => {
15
+ if (options.appkey === null || options.appkey === undefined || options.appkey === '') {
16
+ onError({
17
+ code: '0',
18
+ message: 'invalidAppKey'
19
+ });
20
+ }
21
+ setOptions(options);
22
+ }, [options, onError, setNavigation, setOptions, setCallbackView]);
23
+ return /*#__PURE__*/React.createElement(React.Fragment, null, children);
24
+ };
25
+ //# sourceMappingURL=Liveness3DHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useLiveness3DContext","Liveness3DHelper","_ref","children","options","onError","setNavigation","setOptions","setCallbackView","appkey","undefined","code","message","createElement","Fragment"],"sourceRoot":"../../../src","sources":["helpers/Liveness3DHelper.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAiB,OAAO;AACjD,SAASC,oBAAoB,QAAQ,8BAA8B;AAGnE,OAAO,MAAMC,gBAA+C,GAAGC,IAAA,IAIzD;EAAA,IAJ0D;IAC9DC,QAAQ;IACRC,OAAO;IACPC;EACF,CAAC,GAAAH,IAAA;EACC,MAAM;IAAEI,aAAa;IAAEC,UAAU;IAAEC;EAAgB,CAAC,GAAGR,oBAAoB,EAAE;EAE7ED,SAAS,CAAC,MAAM;IACd,IACEK,OAAO,CAACK,MAAM,KAAK,IAAI,IACvBL,OAAO,CAACK,MAAM,KAAKC,SAAS,IAC5BN,OAAO,CAACK,MAAM,KAAK,EAAE,EACrB;MACAJ,OAAO,CAAC;QAAEM,IAAI,EAAE,GAAG;QAAEC,OAAO,EAAE;MAAgB,CAAC,CAAC;IAClD;IACAL,UAAU,CAACH,OAAO,CAAC;EACrB,CAAC,EAAE,CAACA,OAAO,EAAEC,OAAO,EAAEC,aAAa,EAAEC,UAAU,EAAEC,eAAe,CAAC,CAAC;EAElE,oBAAOV,KAAA,CAAAe,aAAA,CAAAf,KAAA,CAAAgB,QAAA,QAAGX,QAAQ,CAAI;AACxB,CAAC"}
@@ -1,49 +1,33 @@
1
- import React, { useEffect, useState } from 'react';
2
- import { NativeModules, Platform, PermissionsAndroid } from 'react-native';
1
+ import React from 'react';
2
+ import { NativeModules, Platform } from 'react-native';
3
3
  import InstructionsView from './screens/Liveness3D/InstructionsView';
4
4
  import PermissionView from './screens/PermissionView';
5
+ import { Liveness3DProvider, SCREEN, useLiveness3DContext } from './context/Liveness3DContext';
6
+ import { Liveness3DHelper } from './helpers/Liveness3DHelper';
5
7
  const LINKING_ERROR = `The package '@oiti/rn-liveness3d' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
6
8
  ios: "- You have run 'pod install'\n",
7
9
  default: ''
8
10
  }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
9
- const SCREEN = Object.freeze({
10
- INSTRUCTION_VIEW: 1,
11
- PERMISSION_VIEW: 2
12
- });
13
- const RnLiveness3d = NativeModules.RnLiveness3d ? NativeModules.RnLiveness3d : new Proxy({}, {
11
+ export const RnLiveness3d = NativeModules.RnLiveness3d ? NativeModules.RnLiveness3d : new Proxy({}, {
14
12
  get() {
15
13
  throw new Error(LINKING_ERROR);
16
14
  }
17
15
  });
18
16
  export function startLiveness3d(options, loading) {
19
- var _options$apparence, _options$apparence2, _options$apparence3, _options$apparence4;
20
17
  let args = {
21
18
  appkey: (options === null || options === void 0 ? void 0 : options.appkey) === undefined ? '' : options === null || options === void 0 ? void 0 : options.appkey,
22
- environment: (options === null || options === void 0 ? void 0 : options.environment) === undefined ? '.HML' : options === null || options === void 0 ? void 0 : options.environment,
23
- baseUrl: (options === null || options === void 0 ? void 0 : options.baseUrl) === undefined ? '' : options === null || options === void 0 ? void 0 : options.baseUrl,
24
- apparence: {
25
- backgroundColor: (options === null || options === void 0 ? void 0 : (_options$apparence = options.apparence) === null || _options$apparence === void 0 ? void 0 : _options$apparence.backgroundColor) === '' ? '#1E1E1E' : options === null || options === void 0 ? void 0 : (_options$apparence2 = options.apparence) === null || _options$apparence2 === void 0 ? void 0 : _options$apparence2.backgroundColor,
26
- loadingColor: (options === null || options === void 0 ? void 0 : (_options$apparence3 = options.apparence) === null || _options$apparence3 === void 0 ? void 0 : _options$apparence3.loadingColor) === '' ? '#05D758' : options === null || options === void 0 ? void 0 : (_options$apparence4 = options.apparence) === null || _options$apparence4 === void 0 ? void 0 : _options$apparence4.loadingColor
27
- },
28
- liveness3Dtext: options.liveness3Dtext || [],
19
+ ticket: options === null || options === void 0 ? void 0 : options.ticket,
20
+ environment: (options === null || options === void 0 ? void 0 : options.environment) === undefined ? 'HML' : options === null || options === void 0 ? void 0 : options.environment,
21
+ liveness3Dtext: (options === null || options === void 0 ? void 0 : options.liveness3Dtext) || {},
22
+ theme: (options === null || options === void 0 ? void 0 : options.theme) || {},
23
+ fonts: (options === null || options === void 0 ? void 0 : options.fonts) || {},
29
24
  loading: loading
30
25
  };
31
26
  if (Platform.OS === 'android') {
32
- return RnLiveness3d.startliveness3d(args.appkey, loading === null || loading === void 0 ? void 0 : loading.type, (loading === null || loading === void 0 ? void 0 : loading.size) * 200, loading === null || loading === void 0 ? void 0 : loading.backgroundColor, loading === null || loading === void 0 ? void 0 : loading.loadingColor);
27
+ return RnLiveness3d.startliveness3d(args.appkey, args.ticket, loading !== null && loading !== void 0 && loading.type ? loading === null || loading === void 0 ? void 0 : loading.type : 'default', loading !== null && loading !== void 0 && loading.size ? (loading === null || loading === void 0 ? void 0 : loading.size) * 200 : 1 * 200, loading !== null && loading !== void 0 && loading.backgroundColor ? loading === null || loading === void 0 ? void 0 : loading.backgroundColor : '#333333', loading !== null && loading !== void 0 && loading.loadingColor ? loading === null || loading === void 0 ? void 0 : loading.loadingColor : '#05D758', args === null || args === void 0 ? void 0 : args.theme, args === null || args === void 0 ? void 0 : args.fonts, args === null || args === void 0 ? void 0 : args.liveness3Dtext);
33
28
  }
34
29
  return RnLiveness3d.startliveness3d(args);
35
30
  }
36
- export function logEvent3D(name, appkey) {
37
- if (Platform.OS === 'ios') {
38
- return RnLiveness3d.logevent({
39
- event: name,
40
- appkey: appkey
41
- });
42
- } else {
43
- console.log(name, appkey);
44
- return RnLiveness3d.logevent(name, appkey);
45
- }
46
- }
47
31
  export function checkIosPermission() {
48
32
  return RnLiveness3d.checkiospermission({
49
33
  p: 'granted'
@@ -54,46 +38,62 @@ export function checkIosPermissionGranted() {
54
38
  p: 'granted'
55
39
  });
56
40
  }
57
- const PERMISSIONS_REQUEST = PermissionsAndroid.PERMISSIONS.CAMERA;
58
- const requestCameraPermission = async (options, loading) => {
41
+ export function checkcamerapermissionAndroid() {
42
+ return RnLiveness3d.checkcamerapermission();
43
+ }
44
+ export function askcamerapermissionAndroid() {
45
+ return RnLiveness3d.askcamerapermission();
46
+ }
47
+ export const requestCameraPermission = async (options, onSuccess, onError, loading) => {
59
48
  if (Platform.OS === 'ios') {
60
- checkIosPermission().then(result => {
61
- if (result === 'true') {
62
- return RnLiveness3d.startliveness3d(options);
49
+ checkIosPermission().then(async result => {
50
+ if (result === true) {
51
+ await startLiveness3d(options, loading).then(result => {
52
+ if (Platform.OS == 'android') {
53
+ //@ts-ignore
54
+ onSuccess(JSON.parse(result));
55
+ } else {
56
+ onSuccess(result);
57
+ }
58
+ }).catch(error => onError(error));
63
59
  }
64
- if (result === 'false') {
60
+ if (result === false) {
65
61
  return;
66
62
  }
67
63
  });
68
64
  }
69
- try {
70
- const granted = await PermissionsAndroid.request(PERMISSIONS_REQUEST, {
71
- title: '',
72
- message: 'Precisamos acessar sua câmera',
73
- buttonNeutral: 'Ver Depois',
74
- buttonNegative: 'Cancelar',
75
- buttonPositive: 'OK'
76
- });
77
- if (granted === PermissionsAndroid.RESULTS.GRANTED) {
78
- startLiveness3d(options, loading).then(result => console.log(result));
79
- } else {
80
- console.log('Camera permission denied');
65
+ if (Platform.OS === 'android') {
66
+ try {
67
+ await askcamerapermissionAndroid().then(async res => {
68
+ if (res === true) {
69
+ await startLiveness3d(options, loading).then(result => {
70
+ if (Platform.OS == 'android') {
71
+ //@ts-ignore
72
+ onSuccess(JSON.parse(result));
73
+ } else {
74
+ onSuccess(result);
75
+ }
76
+ }).catch(error => onError(error));
77
+ } else {
78
+ console.log('Camera permission denied');
79
+ }
80
+ });
81
+ } catch (err) {
82
+ console.warn(err);
81
83
  }
82
- } catch (err) {
83
- console.warn(err);
84
84
  }
85
85
  };
86
86
  async function checkPermission() {
87
87
  if (Platform.OS === 'ios') {
88
88
  const grantediso = await checkIosPermissionGranted();
89
- if (grantediso === 'true') {
89
+ if (grantediso === true) {
90
90
  return true;
91
91
  }
92
- if (grantediso === 'false') {
92
+ if (grantediso === false) {
93
93
  return false;
94
94
  }
95
95
  }
96
- const granted = await PermissionsAndroid.check(PERMISSIONS_REQUEST);
96
+ const granted = await checkcamerapermissionAndroid();
97
97
  if (granted) {
98
98
  return true;
99
99
  } else {
@@ -105,27 +105,49 @@ export function Liveness3dView(_ref) {
105
105
  CustomInstructionView,
106
106
  CustomPermissionView,
107
107
  options,
108
- loading
108
+ loading,
109
+ onSuccess,
110
+ onError,
111
+ onBack
109
112
  } = _ref;
110
- return /*#__PURE__*/React.createElement(GetIntructionView, {
111
- CustomInstructionView: CustomInstructionView,
112
- CustomPermissionView: CustomPermissionView,
113
- options: options,
114
- loading: loading
115
- });
113
+ return (
114
+ /*#__PURE__*/
115
+ //@ts-ignore
116
+ React.createElement(Liveness3DProvider, {
117
+ onError: onError,
118
+ onSuccess: onSuccess
119
+ }, /*#__PURE__*/React.createElement(Liveness3DHelper, {
120
+ options: options,
121
+ onError: onError
122
+ }, /*#__PURE__*/React.createElement(GetIntructionView, {
123
+ CustomInstructionView: CustomInstructionView,
124
+ CustomPermissionView: CustomPermissionView,
125
+ options: options,
126
+ loading: loading,
127
+ onSuccess: onSuccess,
128
+ onError: onError,
129
+ onBack: onBack
130
+ })))
131
+ );
116
132
  }
117
133
  export function GetIntructionView(_ref2) {
118
134
  let {
119
135
  CustomInstructionView,
120
136
  CustomPermissionView,
121
137
  options,
122
- loading
138
+ loading,
139
+ onSuccess,
140
+ onError,
141
+ onBack
123
142
  } = _ref2;
124
- const [screen, setScreen] = useState(1);
125
- function onBack() {
143
+ const {
144
+ setScreen,
145
+ screen
146
+ } = useLiveness3DContext();
147
+ function onBackScreen() {
126
148
  switch (screen) {
127
149
  case SCREEN.INSTRUCTION_VIEW:
128
- setScreen(1);
150
+ onBack();
129
151
  break;
130
152
  case SCREEN.PERMISSION_VIEW:
131
153
  setScreen(1);
@@ -134,33 +156,33 @@ export function GetIntructionView(_ref2) {
134
156
  }
135
157
  async function verifyPermission() {
136
158
  if (screen === 1) {
137
- logEvent3D('ACTION_L3FT_instructionContinue', options.appkey);
138
159
  if ((await checkPermission()) === true) {
139
- startLiveness3d(options, loading).then(result => console.log(result));
160
+ startLiveness3d(options, loading).then(result => {
161
+ if (Platform.OS == 'android') {
162
+ //@ts-ignore
163
+ onSuccess(JSON.parse(result));
164
+ } else {
165
+ onSuccess(result);
166
+ }
167
+ }).catch(error => onError(error));
140
168
  } else {
141
169
  setScreen(2);
142
170
  }
143
171
  }
144
172
  if (screen === 2) {
145
- logEvent3D('ACTION_L3FT_permissionVerify', options.appkey);
146
- await requestCameraPermission(options);
173
+ await requestCameraPermission(options, onSuccess, onError);
147
174
  setScreen(1);
148
175
  }
149
176
  }
150
- useEffect(() => {
151
- if (screen === 1) {
152
- logEvent3D('STATE_L3FT_instructionView', options.appkey);
153
- }
154
- if (screen === 2) {
155
- logEvent3D('STATE_L3FT_permissionView', options.appkey);
156
- }
157
- });
158
177
  return /*#__PURE__*/React.createElement(React.Fragment, null, screen === 1 && (!CustomInstructionView ? /*#__PURE__*/React.createElement(InstructionsView, {
159
178
  onVerify: verifyPermission,
160
- onBack: onBack
179
+ onBack: onBackScreen
161
180
  }) : CustomInstructionView), screen === 2 && (!CustomPermissionView ? /*#__PURE__*/React.createElement(PermissionView, {
162
181
  onVerify: verifyPermission,
163
- onBack: onBack
182
+ onBack: onBackScreen
164
183
  }) : CustomPermissionView));
165
184
  }
185
+ export { ContinueButton } from './actions/ContinueButton';
186
+ export { PermissionButton } from './actions/PermissionButton';
187
+ export { BackButton } from './actions/BackButton';
166
188
  //# sourceMappingURL=index.js.map