@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.
Files changed (467) hide show
  1. package/android/build.gradle +39 -107
  2. package/android/gradle.properties +5 -5
  3. package/android/src/main/AndroidManifest.xml +1 -8
  4. package/android/src/main/java/br/com/oiti/rnliveness3d/RnLiveness3dModule.kt +218 -192
  5. package/android/src/main/java/br/com/oiti/rnliveness3d/RnLiveness3dPackage.kt +25 -8
  6. package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DFonts.kt +32 -38
  7. package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DText.kt +5 -3
  8. package/android/src/main/java/br/com/oiti/rnliveness3d/theme/Liveness3DTheme.kt +229 -147
  9. package/android/src/res/font/sixty.ttf +0 -0
  10. package/ios/RnLiveness3d.h +5 -0
  11. package/ios/RnLiveness3d.mm +72 -0
  12. package/ios/{RnLiveness3d.swift → RnLiveness3dSwiftModule.swift} +131 -132
  13. package/lib/module/@types/ArgsType.js.map +1 -1
  14. package/lib/module/@types/FontsType.js.map +1 -1
  15. package/lib/module/@types/ResultType.js.map +1 -1
  16. package/lib/module/@types/ResultTypes.js.map +1 -1
  17. package/lib/module/@types/TextsType.js.map +1 -1
  18. package/lib/module/@types/ThemeType.js.map +1 -1
  19. package/lib/module/NativeRnLiveness3d.js +3 -0
  20. package/lib/module/NativeRnLiveness3d.js.map +1 -0
  21. package/lib/module/actions/BackButton.js +5 -6
  22. package/lib/module/actions/BackButton.js.map +1 -1
  23. package/lib/module/actions/ContinueButton.js +10 -10
  24. package/lib/module/actions/ContinueButton.js.map +1 -1
  25. package/lib/module/actions/PermissionButton.js +7 -8
  26. package/lib/module/actions/PermissionButton.js.map +1 -1
  27. package/lib/module/context/Liveness3DContext.js +10 -23
  28. package/lib/module/context/Liveness3DContext.js.map +1 -1
  29. package/lib/module/helpers/Liveness3DHelper.js +6 -7
  30. package/lib/module/helpers/Liveness3DHelper.js.map +1 -1
  31. package/lib/module/index.js +33 -120
  32. package/lib/module/index.js.map +1 -1
  33. package/lib/module/interfaces/Liveness3DHelper.js.map +1 -1
  34. package/lib/module/interfaces/OitiBackButtonInterface.js.map +1 -1
  35. package/lib/module/interfaces/OitiContinueButton.js.map +1 -1
  36. package/lib/module/interfaces/OitiPermissionButtonInterface.js.map +1 -1
  37. package/lib/module/screens/Liveness3D/InstructionsView.js +4 -6
  38. package/lib/module/screens/Liveness3D/InstructionsView.js.map +1 -1
  39. package/lib/module/screens/PermissionView.js +4 -6
  40. package/lib/module/screens/PermissionView.js.map +1 -1
  41. package/lib/module/utils/continueButton.js +3 -8
  42. package/lib/module/utils/continueButton.js.map +1 -1
  43. package/lib/module/utils/normalize.js.map +1 -1
  44. package/lib/module/utils/permissions.js +8 -17
  45. package/lib/module/utils/permissions.js.map +1 -1
  46. package/lib/module/utils/screenStore.js.map +1 -1
  47. package/oiti-rn-liveness3d.podspec +6 -22
  48. package/package.json +58 -49
  49. package/src/@types/ArgsType.ts +3 -4
  50. package/src/@types/ResultTypes.ts +3 -1
  51. package/src/NativeRnLiveness3d.ts +9 -0
  52. package/src/actions/BackButton.tsx +1 -1
  53. package/src/actions/ContinueButton.tsx +6 -5
  54. package/src/actions/PermissionButton.tsx +3 -3
  55. package/src/context/Liveness3DContext.tsx +11 -24
  56. package/src/helpers/Liveness3DHelper.tsx +1 -1
  57. package/src/index.tsx +27 -131
  58. package/src/interfaces/Liveness3DHelper.tsx +4 -2
  59. package/src/screens/Liveness3D/InstructionsView.tsx +0 -2
  60. package/src/screens/PermissionView.tsx +0 -1
  61. package/src/utils/continueButton.tsx +3 -10
  62. package/src/utils/permissions.tsx +9 -26
  63. package/android/settings.gradle +0 -6
  64. package/ios/Podfile +0 -13
  65. package/ios/Podfile.lock +0 -38
  66. package/ios/Pods/Manifest.lock +0 -38
  67. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/Info.plist +0 -46
  68. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Headers/OICommons-Swift.h +0 -327
  69. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Headers/OICommons.h +0 -15
  70. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Info.plist +0 -0
  71. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Bold.otf +0 -0
  72. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Medium.otf +0 -0
  73. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Inter-Regular.otf +0 -0
  74. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.abi.json +0 -9
  75. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -1818
  76. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  77. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios.swiftinterface +0 -1818
  78. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Modules/module.modulemap +0 -11
  79. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/OICommons +0 -0
  80. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Bold.otf +0 -0
  81. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Medium.otf +0 -0
  82. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/OICommons.framework/Ubuntu-Regular.otf +0 -0
  83. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/dSYMs/OICommons.framework.dSYM/Contents/Info.plist +0 -20
  84. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64/dSYMs/OICommons.framework.dSYM/Contents/Resources/DWARF/OICommons +0 -0
  85. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Headers/OICommons-Swift.h +0 -650
  86. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Headers/OICommons.h +0 -15
  87. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Info.plist +0 -0
  88. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Bold.otf +0 -0
  89. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Medium.otf +0 -0
  90. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Inter-Regular.otf +0 -0
  91. 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
  92. 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
  93. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  94. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/OICommons.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -1818
  95. 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
  96. 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
  97. 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
  98. 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
  99. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Modules/module.modulemap +0 -11
  100. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/OICommons +0 -0
  101. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Bold.otf +0 -0
  102. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Medium.otf +0 -0
  103. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/Ubuntu-Regular.otf +0 -0
  104. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework/ios-arm64_x86_64-simulator/OICommons.framework/_CodeSignature/CodeResources +0 -311
  105. package/ios/Pods/OICommons/Frameworks/OICommons.xcframework.zip +0 -0
  106. package/ios/Pods/OICommons/README.md +0 -1
  107. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/Info.plist +0 -46
  108. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Assets.car +0 -0
  109. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Headers/OIComponents-Swift.h +0 -455
  110. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Headers/OIComponents.h +0 -18
  111. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Info.plist +0 -0
  112. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.abi.json +0 -9
  113. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -732
  114. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  115. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios.swiftinterface +0 -732
  116. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/Modules/module.modulemap +0 -11
  117. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/OIComponents.framework/OIComponents +0 -0
  118. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/dSYMs/OIComponents.framework.dSYM/Contents/Info.plist +0 -20
  119. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64/dSYMs/OIComponents.framework.dSYM/Contents/Resources/DWARF/OIComponents +0 -0
  120. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Assets.car +0 -0
  121. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Headers/OIComponents-Swift.h +0 -906
  122. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Headers/OIComponents.h +0 -18
  123. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Info.plist +0 -0
  124. 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
  125. 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
  126. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  127. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/OIComponents.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -732
  128. 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
  129. 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
  130. 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
  131. 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
  132. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/Modules/module.modulemap +0 -11
  133. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/OIComponents +0 -0
  134. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework/ios-arm64_x86_64-simulator/OIComponents.framework/_CodeSignature/CodeResources +0 -256
  135. package/ios/Pods/OIComponents/Frameworks/OIComponents.xcframework.zip +0 -0
  136. package/ios/Pods/OIComponents/README.md +0 -1
  137. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/Info.plist +0 -46
  138. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Assets.car +0 -0
  139. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Headers/OILiveness3D-Swift.h +0 -343
  140. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Headers/OILiveness3D.h +0 -18
  141. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Info.plist +0 -0
  142. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/Por_favor_pressione_o_botao_para_iniciar.mp3 +0 -0
  143. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/Toque_duas_veezs_em_qualquer_lugar_da_tela.mp3 +0 -0
  144. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/carregando.mp3 +0 -0
  145. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/escaneamento_feito_com_sucesso.mp3 +0 -0
  146. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/por_favor_chegue_mais_perto.mp3 +0 -0
  147. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/por_favor_tente_novamente.mp3 +0 -0
  148. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/prepare-se_para_seu_reconhecimento_facial.mp3 +0 -0
  149. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/rosto_muito_longe.mp3 +0 -0
  150. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/segure_firme.mp3 +0 -0
  151. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/suporte_vocal_desligado.mp3 +0 -0
  152. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Media/suporte_vocal_ligado.mp3 +0 -0
  153. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.abi.json +0 -9
  154. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -226
  155. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  156. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios.swiftinterface +0 -226
  157. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/Modules/module.modulemap +0 -11
  158. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/OILiveness3D.framework/OILiveness3D +0 -0
  159. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Info.plist +0 -20
  160. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/DWARF/OILiveness3D +0 -0
  161. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +0 -1818
  162. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OIComponents.swiftinterface +0 -732
  163. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OINetwork.swiftinterface +0 -144
  164. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64/dSYMs/OILiveness3D.framework.dSYM/Contents/Resources/Swift/aarch64/OISecurity.swiftinterface +0 -164
  165. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Assets.car +0 -0
  166. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Headers/OILiveness3D-Swift.h +0 -682
  167. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Headers/OILiveness3D.h +0 -18
  168. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Info.plist +0 -0
  169. 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
  170. 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
  171. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/carregando.mp3 +0 -0
  172. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/escaneamento_feito_com_sucesso.mp3 +0 -0
  173. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/por_favor_chegue_mais_perto.mp3 +0 -0
  174. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/por_favor_tente_novamente.mp3 +0 -0
  175. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/prepare-se_para_seu_reconhecimento_facial.mp3 +0 -0
  176. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/rosto_muito_longe.mp3 +0 -0
  177. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/segure_firme.mp3 +0 -0
  178. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/suporte_vocal_desligado.mp3 +0 -0
  179. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Media/suporte_vocal_ligado.mp3 +0 -0
  180. 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
  181. 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
  182. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  183. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/OILiveness3D.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -226
  184. 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
  185. 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
  186. 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
  187. 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
  188. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/Modules/module.modulemap +0 -11
  189. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/OILiveness3D +0 -0
  190. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework/ios-arm64_x86_64-simulator/OILiveness3D.framework/_CodeSignature/CodeResources +0 -377
  191. package/ios/Pods/OILiveness3D/Framework/OILiveness3D.xcframework.zip +0 -0
  192. package/ios/Pods/OILiveness3D/README.md +0 -32
  193. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/Info.plist +0 -44
  194. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Assets.car +0 -0
  195. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/FaceTecSDK +0 -0
  196. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/GenericGuidanceContentLayout.nib +0 -0
  197. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecPublicApi.h +0 -1932
  198. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecPublicStringKeys.h +0 -105
  199. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Headers/FaceTecSDK.h +0 -16
  200. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Info.plist +0 -0
  201. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Modules/module.modulemap +0 -6
  202. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/PrivacyInfo.xcprivacy +0 -29
  203. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ReadyScreenGuidanceContentLayout.nib +0 -0
  204. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/RetryScreenGuidanceContentLayout.nib +0 -0
  205. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/SharedGuidanceLayout.nib +0 -0
  206. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/9Uo-4b-JiE-view-Ae0-rb-UqS.nib +0 -0
  207. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/CJ6-MX-bJp-view-8JL-Rc-0g1.nib +0 -0
  208. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceScanViewController.nib +0 -0
  209. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecAdditionalReviewViewController.nib +0 -0
  210. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecIDFeedbackViewController.nib +0 -0
  211. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/FaceTecOCRConfirmationViewController.nib +0 -0
  212. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/IDCaptureViewController.nib +0 -0
  213. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/IDSelectionViewController.nib +0 -0
  214. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/Info.plist +0 -0
  215. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/Pyw-6G-JSY-view-Zue-Eo-Q2U.nib +0 -0
  216. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/QWA-8Y-vUM-view-wJB-Z5-eD2.nib +0 -0
  217. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/alz-Ia-X3d-view-IKu-EI-Hug.nib +0 -0
  218. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/Storyboard.storyboardc/l2Q-cc-kD8-view-UUy-6c-meu.nib +0 -0
  219. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/af.lproj/FaceTec.strings +0 -0
  220. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ar.lproj/FaceTec.strings +0 -0
  221. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/attributions.txt +0 -137
  222. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/1f5b84f51ce0fcfbb76e904b7bcaa7560f601e1394a0b29367a09385312287eb +0 -0
  223. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/2b075ac1a6132b5b8a4c9ef0ba6b0cd84db7838aca9a000e50d907f40770a4ab +0 -0
  224. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/59cc2a9af81aaca2376702c2490650f4da2775fa673274db98aad41b7ef101c0 +0 -0
  225. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/5b63e98b991aedabb60665503384f30bffd939decf9433883b30b78011ee501a +0 -0
  226. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/66388dc76dc16bc6b76b682edd218a575bf45b9b +0 -0
  227. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/6b3133f0f39ff89a2a169d61176ee17cafacc5e288f334e2b64ee82892d11ccd +0 -0
  228. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/9077d16225f9314163ef1e7db6fc7d4088bb903d134bd95f23d5591ca4dfbfca +0 -0
  229. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/a74f2afb9d20f2375ccbd14e67c094b85c89ceb608f7cf8ae04f3f646a6c5672 +0 -0
  230. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/b501893e75f62ee1707643e35b21109927b07ed5b202321c961b424cbc2e4695 +0 -0
  231. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/dbd7a353f0130bb983d6ba05917e9be991d70e8f028df4b74e30bc6497ef7f71 +0 -0
  232. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/f2.xml +0 -0
  233. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/fd6d368a5658496536e2bfae170d1b823a3629b242cafc09784bfba4e56d8c80 +0 -0
  234. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/marker +0 -0
  235. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/cache_uyertuazlkxcjrlwkejr/39bb748b334003e3fa/vu0ilin6we3lrzo5f83f7qs2jul4aq7v4aoynrmch8zfvpi8ezrfyafa4t0fx87l +0 -0
  236. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/de.lproj/FaceTec.strings +0 -0
  237. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/el.lproj/FaceTec.strings +0 -0
  238. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/en.lproj/FaceTec.strings +0 -0
  239. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/es.lproj/FaceTec.strings +0 -0
  240. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/fr.lproj/FaceTec.strings +0 -0
  241. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/kk.lproj/FaceTec.strings +0 -0
  242. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/nb.lproj/FaceTec.strings +0 -0
  243. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/pt-BR.lproj/FaceTec.strings +0 -0
  244. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/ru.lproj/FaceTec.strings +0 -0
  245. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64/FaceTecSDK.framework/strip-unused-architectures-from-target.sh +0 -62
  246. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/FaceTecSDK +0 -0
  247. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecPublicApi.h +0 -1932
  248. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecPublicStringKeys.h +0 -105
  249. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Headers/FaceTecSDK.h +0 -16
  250. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Info.plist +0 -0
  251. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/Modules/module.modulemap +0 -6
  252. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework/ios-arm64_x86_64-simulator/FaceTecSDK.framework/_CodeSignature/CodeResources +0 -146
  253. package/ios/Pods/OILiveness3D_FT/Framework/FaceTecSDK.xcframework.zip +0 -0
  254. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/Info.plist +0 -46
  255. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Headers/OINetwork-Swift.h +0 -312
  256. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Headers/OINetwork.h +0 -15
  257. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Info.plist +0 -0
  258. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.abi.json +0 -9
  259. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -144
  260. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  261. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios.swiftinterface +0 -144
  262. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/Modules/module.modulemap +0 -11
  263. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/OINetwork.framework/OINetwork +0 -0
  264. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Info.plist +0 -20
  265. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Resources/DWARF/OINetwork +0 -0
  266. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64/dSYMs/OINetwork.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +0 -1818
  267. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Headers/OINetwork-Swift.h +0 -620
  268. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Headers/OINetwork.h +0 -15
  269. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Info.plist +0 -0
  270. 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
  271. 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
  272. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  273. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/OINetwork.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -144
  274. 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
  275. 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
  276. 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
  277. 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
  278. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/Modules/module.modulemap +0 -11
  279. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/OINetwork +0 -0
  280. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework/ios-arm64_x86_64-simulator/OINetwork.framework/_CodeSignature/CodeResources +0 -245
  281. package/ios/Pods/OINetwork/Frameworks/OINetwork.xcframework.zip +0 -0
  282. package/ios/Pods/OINetwork/README.md +0 -1
  283. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/Info.plist +0 -46
  284. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Headers/OISecurity-Swift.h +0 -311
  285. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Headers/OISecurity.h +0 -16
  286. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Info.plist +0 -0
  287. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.abi.json +0 -9
  288. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -164
  289. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  290. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios.swiftinterface +0 -164
  291. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/Modules/module.modulemap +0 -11
  292. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/OISecurity +0 -0
  293. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/OISecurity.framework/PrivacyInfo.xcprivacy +0 -37
  294. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Info.plist +0 -20
  295. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Resources/DWARF/OISecurity +0 -0
  296. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Resources/Swift/aarch64/OICommons.swiftinterface +0 -1818
  297. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64/dSYMs/OISecurity.framework.dSYM/Contents/Resources/Swift/aarch64/OINetwork.swiftinterface +0 -144
  298. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Headers/OISecurity-Swift.h +0 -618
  299. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Headers/OISecurity.h +0 -16
  300. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Info.plist +0 -0
  301. 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
  302. 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
  303. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  304. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/OISecurity.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -164
  305. 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
  306. 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
  307. 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
  308. 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
  309. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/Modules/module.modulemap +0 -11
  310. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/OISecurity +0 -0
  311. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/PrivacyInfo.xcprivacy +0 -37
  312. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework/ios-arm64_x86_64-simulator/OISecurity.framework/_CodeSignature/CodeResources +0 -256
  313. package/ios/Pods/OISecurity/Frameworks/OISecurity.xcframework.zip +0 -0
  314. package/ios/Pods/OISecurity/README.md +0 -1
  315. package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -1239
  316. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OICommons.xcscheme +0 -58
  317. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OIComponents.xcscheme +0 -58
  318. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OILiveness3D.xcscheme +0 -58
  319. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OILiveness3D_FT.xcscheme +0 -58
  320. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OINetwork.xcscheme +0 -58
  321. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/OISecurity.xcscheme +0 -58
  322. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/Pods-RnLiveness3d.xcscheme +0 -58
  323. package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielcatelligoulart.xcuserdatad/xcschemes/xcschememanagement.plist +0 -46
  324. package/ios/Pods/Target Support Files/OICommons/OICommons-xcframeworks.sh +0 -121
  325. package/ios/Pods/Target Support Files/OICommons/OICommons.debug.xcconfig +0 -15
  326. package/ios/Pods/Target Support Files/OICommons/OICommons.release.xcconfig +0 -15
  327. package/ios/Pods/Target Support Files/OIComponents/OIComponents-xcframeworks.sh +0 -121
  328. package/ios/Pods/Target Support Files/OIComponents/OIComponents.debug.xcconfig +0 -15
  329. package/ios/Pods/Target Support Files/OIComponents/OIComponents.release.xcconfig +0 -15
  330. package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D-xcframeworks.sh +0 -121
  331. package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D.debug.xcconfig +0 -16
  332. package/ios/Pods/Target Support Files/OILiveness3D/OILiveness3D.release.xcconfig +0 -16
  333. package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT-xcframeworks.sh +0 -121
  334. package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT.debug.xcconfig +0 -13
  335. package/ios/Pods/Target Support Files/OILiveness3D_FT/OILiveness3D_FT.release.xcconfig +0 -13
  336. package/ios/Pods/Target Support Files/OINetwork/OINetwork-xcframeworks.sh +0 -121
  337. package/ios/Pods/Target Support Files/OINetwork/OINetwork.debug.xcconfig +0 -16
  338. package/ios/Pods/Target Support Files/OINetwork/OINetwork.release.xcconfig +0 -16
  339. package/ios/Pods/Target Support Files/OISecurity/OISecurity-xcframeworks.sh +0 -121
  340. package/ios/Pods/Target Support Files/OISecurity/OISecurity.debug.xcconfig +0 -16
  341. package/ios/Pods/Target Support Files/OISecurity/OISecurity.release.xcconfig +0 -16
  342. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-Info.plist +0 -26
  343. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-acknowledgements.markdown +0 -23
  344. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-acknowledgements.plist +0 -79
  345. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-dummy.m +0 -5
  346. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d-umbrella.h +0 -16
  347. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.debug.xcconfig +0 -14
  348. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.modulemap +0 -6
  349. package/ios/Pods/Target Support Files/Pods-RnLiveness3d/Pods-RnLiveness3d.release.xcconfig +0 -14
  350. package/ios/RnLiveness3d-Bridging-Header.h +0 -2
  351. package/ios/RnLiveness3d.m +0 -34
  352. package/ios/RnLiveness3d.xcodeproj/project.pbxproj +0 -337
  353. package/ios/RnLiveness3d.xcodeproj/xcshareddata/xcschemes/RnLiveness3d.xcscheme +0 -80
  354. package/ios/RnLiveness3d.xcworkspace/contents.xcworkspacedata +0 -10
  355. package/ios/RnLiveness3d.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  356. package/ios/info.plist +0 -8
  357. package/lib/commonjs/@types/ArgsType.js +0 -6
  358. package/lib/commonjs/@types/ArgsType.js.map +0 -1
  359. package/lib/commonjs/@types/FontsType.js +0 -2
  360. package/lib/commonjs/@types/FontsType.js.map +0 -1
  361. package/lib/commonjs/@types/ResultType.js +0 -2
  362. package/lib/commonjs/@types/ResultType.js.map +0 -1
  363. package/lib/commonjs/@types/ResultTypes.js +0 -6
  364. package/lib/commonjs/@types/ResultTypes.js.map +0 -1
  365. package/lib/commonjs/@types/TextsType.js +0 -2
  366. package/lib/commonjs/@types/TextsType.js.map +0 -1
  367. package/lib/commonjs/@types/ThemeType.js +0 -2
  368. package/lib/commonjs/@types/ThemeType.js.map +0 -1
  369. package/lib/commonjs/actions/BackButton.js +0 -35
  370. package/lib/commonjs/actions/BackButton.js.map +0 -1
  371. package/lib/commonjs/actions/ContinueButton.js +0 -43
  372. package/lib/commonjs/actions/ContinueButton.js.map +0 -1
  373. package/lib/commonjs/actions/PermissionButton.js +0 -35
  374. package/lib/commonjs/actions/PermissionButton.js.map +0 -1
  375. package/lib/commonjs/assets/fonts/Ubuntu-Bold.ttf +0 -0
  376. package/lib/commonjs/assets/fonts/Ubuntu-BoldItalic.ttf +0 -0
  377. package/lib/commonjs/assets/fonts/Ubuntu-Italic.ttf +0 -0
  378. package/lib/commonjs/assets/fonts/Ubuntu-Light.ttf +0 -0
  379. package/lib/commonjs/assets/fonts/Ubuntu-LightItalic.ttf +0 -0
  380. package/lib/commonjs/assets/fonts/Ubuntu-Medium.ttf +0 -0
  381. package/lib/commonjs/assets/fonts/Ubuntu-MediumItalic.ttf +0 -0
  382. package/lib/commonjs/assets/fonts/Ubuntu-Regular.ttf +0 -0
  383. package/lib/commonjs/assets/images/acessories.png +0 -0
  384. package/lib/commonjs/assets/images/camera.png +0 -0
  385. package/lib/commonjs/assets/images/camera_alt.png +0 -0
  386. package/lib/commonjs/assets/images/face.png +0 -0
  387. package/lib/commonjs/assets/images/illumination.png +0 -0
  388. package/lib/commonjs/assets/images/imgOp.png +0 -0
  389. package/lib/commonjs/assets/images/img_face.png +0 -0
  390. package/lib/commonjs/assets/images/left-arrow-b.png +0 -0
  391. package/lib/commonjs/assets/images/left-arrow.png +0 -0
  392. package/lib/commonjs/assets/images/lightbulb_outline.png +0 -0
  393. package/lib/commonjs/assets/images/padlock.png +0 -0
  394. package/lib/commonjs/assets/images/rigth-arrow.png +0 -0
  395. package/lib/commonjs/assets/images/scan-facial.png +0 -0
  396. package/lib/commonjs/assets/images/wave_bg.png +0 -0
  397. package/lib/commonjs/assets/images/wave_bg2.png +0 -0
  398. package/lib/commonjs/context/Liveness3DContext.js +0 -104
  399. package/lib/commonjs/context/Liveness3DContext.js.map +0 -1
  400. package/lib/commonjs/helpers/Liveness3DHelper.js +0 -34
  401. package/lib/commonjs/helpers/Liveness3DHelper.js.map +0 -1
  402. package/lib/commonjs/index.js +0 -223
  403. package/lib/commonjs/index.js.map +0 -1
  404. package/lib/commonjs/interfaces/Liveness3DHelper.js +0 -6
  405. package/lib/commonjs/interfaces/Liveness3DHelper.js.map +0 -1
  406. package/lib/commonjs/interfaces/OitiBackButtonInterface.js +0 -6
  407. package/lib/commonjs/interfaces/OitiBackButtonInterface.js.map +0 -1
  408. package/lib/commonjs/interfaces/OitiContinueButton.js +0 -6
  409. package/lib/commonjs/interfaces/OitiContinueButton.js.map +0 -1
  410. package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js +0 -6
  411. package/lib/commonjs/interfaces/OitiPermissionButtonInterface.js.map +0 -1
  412. package/lib/commonjs/screens/Liveness3D/InstructionsView.js +0 -209
  413. package/lib/commonjs/screens/Liveness3D/InstructionsView.js.map +0 -1
  414. package/lib/commonjs/screens/PermissionView.js +0 -177
  415. package/lib/commonjs/screens/PermissionView.js.map +0 -1
  416. package/lib/commonjs/utils/continueButton.js +0 -17
  417. package/lib/commonjs/utils/continueButton.js.map +0 -1
  418. package/lib/commonjs/utils/normalize.js +0 -16
  419. package/lib/commonjs/utils/normalize.js.map +0 -1
  420. package/lib/commonjs/utils/permissions.js +0 -30
  421. package/lib/commonjs/utils/permissions.js.map +0 -1
  422. package/lib/commonjs/utils/screenStore.js +0 -12
  423. package/lib/commonjs/utils/screenStore.js.map +0 -1
  424. package/lib/typescript/@types/ArgsType.d.ts +0 -19
  425. package/lib/typescript/@types/ArgsType.d.ts.map +0 -1
  426. package/lib/typescript/@types/FontsType.d.ts +0 -12
  427. package/lib/typescript/@types/FontsType.d.ts.map +0 -1
  428. package/lib/typescript/@types/ResultType.d.ts +0 -13
  429. package/lib/typescript/@types/ResultType.d.ts.map +0 -1
  430. package/lib/typescript/@types/ResultTypes.d.ts +0 -6
  431. package/lib/typescript/@types/ResultTypes.d.ts.map +0 -1
  432. package/lib/typescript/@types/TextsType.d.ts +0 -36
  433. package/lib/typescript/@types/TextsType.d.ts.map +0 -1
  434. package/lib/typescript/@types/ThemeType.d.ts +0 -48
  435. package/lib/typescript/@types/ThemeType.d.ts.map +0 -1
  436. package/lib/typescript/actions/BackButton.d.ts +0 -4
  437. package/lib/typescript/actions/BackButton.d.ts.map +0 -1
  438. package/lib/typescript/actions/ContinueButton.d.ts +0 -4
  439. package/lib/typescript/actions/ContinueButton.d.ts.map +0 -1
  440. package/lib/typescript/actions/PermissionButton.d.ts +0 -4
  441. package/lib/typescript/actions/PermissionButton.d.ts.map +0 -1
  442. package/lib/typescript/context/Liveness3DContext.d.ts +0 -28
  443. package/lib/typescript/context/Liveness3DContext.d.ts.map +0 -1
  444. package/lib/typescript/helpers/Liveness3DHelper.d.ts +0 -4
  445. package/lib/typescript/helpers/Liveness3DHelper.d.ts.map +0 -1
  446. package/lib/typescript/index.d.ts +0 -32
  447. package/lib/typescript/index.d.ts.map +0 -1
  448. package/lib/typescript/interfaces/Liveness3DHelper.d.ts +0 -7
  449. package/lib/typescript/interfaces/Liveness3DHelper.d.ts.map +0 -1
  450. package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts +0 -6
  451. package/lib/typescript/interfaces/OitiBackButtonInterface.d.ts.map +0 -1
  452. package/lib/typescript/interfaces/OitiContinueButton.d.ts +0 -6
  453. package/lib/typescript/interfaces/OitiContinueButton.d.ts.map +0 -1
  454. package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts +0 -6
  455. package/lib/typescript/interfaces/OitiPermissionButtonInterface.d.ts.map +0 -1
  456. package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts +0 -6
  457. package/lib/typescript/screens/Liveness3D/InstructionsView.d.ts.map +0 -1
  458. package/lib/typescript/screens/PermissionView.d.ts +0 -6
  459. package/lib/typescript/screens/PermissionView.d.ts.map +0 -1
  460. package/lib/typescript/utils/continueButton.d.ts +0 -2
  461. package/lib/typescript/utils/continueButton.d.ts.map +0 -1
  462. package/lib/typescript/utils/normalize.d.ts +0 -2
  463. package/lib/typescript/utils/normalize.d.ts.map +0 -1
  464. package/lib/typescript/utils/permissions.d.ts +0 -4
  465. package/lib/typescript/utils/permissions.d.ts.map +0 -1
  466. package/lib/typescript/utils/screenStore.d.ts +0 -5
  467. 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
- @objc(RnLiveness3d)
9
- class RnLiveness3d: NSObject, Liveness3DDelegate {
10
-
11
- var securityManager: SecurityManager?
12
- var resolve:RCTPromiseResolveBlock!
13
- var reject:RCTPromiseRejectBlock!
14
-
15
- func handleLiveness3DValidation(validateModel: Liveness3DSuccess) {
16
- let response: Dictionary<String, Any> = [
17
- "cause": validateModel.cause ?? "",
18
- "codId": String(validateModel.codID ?? 0.0),
19
- "protocol": validateModel.protocolo ?? "",
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 handleLiveness3DError(error: OILiveness3D.Liveness3DError) {
28
- reject("\(error.code)", "\(error.message)", error.type as Error)
21
+
22
+ public func checkCameraPermissionGranted() -> Bool {
23
+ AVCaptureDevice.authorizationStatus(for: AVMediaType.video) == AVAuthorizationStatus.authorized
29
24
  }
30
-
31
- @objc(checkiospermission:withResolver:withRejecter:)
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
- resolve(true)
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
- @objc(checkpermissiongranted:withResolver:withRejecter:)
48
- func checkpermissiongranted(args: Dictionary<String,Any>?, resolve:@escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) -> Void {
49
- if AVCaptureDevice.authorizationStatus(for: AVMediaType.video) == AVAuthorizationStatus.authorized {
50
- resolve(true)
51
- } else {
52
- resolve(false)
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?["appkey"] as? String ?? ""
62
- let ticket = args?["ticket"] as? String ?? nil
63
- let env = args?["environment"] as? String ?? "HML"
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 texts = liveness3DTexts(from: args?["liveness3Dtext"])
74
- let theme = liveness3DTheme(theme: args?["theme"],fonts: args?["fonts"])
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
- ticket: ticket,
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
- AVCaptureDevice.requestAccess(for: AVMediaType.video) { response in
94
- if response {
95
-
96
- let spinnerLoading = SpinnerConfiguration(
97
- backgroundColor: .init(hex: backgroundColor),
98
- loadingColor: .init(hex: loadingColor),
99
- strokeWidth: 10,
100
- scaleFactor: sizeLoading
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
- func textKey(from identifier: String) -> Liveness3DTextKey? {
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: "", size: 14)
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
- public extension UIColor {
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,3 @@
1
+ import { TurboModuleRegistry } from 'react-native';
2
+ export default TurboModuleRegistry.getEnforcing('RnLiveness3d');
3
+ //# sourceMappingURL=NativeRnLiveness3d.js.map
@@ -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 (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); }
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 = _ref => {
6
- let {
7
- children,
8
- ...props
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","_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"}
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 (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); }
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 = _ref => {
7
- let {
8
- children,
9
- ...props
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().then(result => {
18
- result === true && startLiveness();
19
- result === false && setScreen(2);
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","_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"}
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 (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); }
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 = _ref => {
6
- let {
7
- children,
8
- ...props
9
- } = _ref;
5
+ export const PermissionButton = ({
6
+ children,
7
+ ...props
8
+ }) => {
10
9
  const touchableOpacityRef = useRef(null);
11
10
  const {
12
- onAskPermission
11
+ onRequestCameraPermission
13
12
  } = useLiveness3DContext();
14
13
  const handlePress = () => {
15
- onAskPermission();
14
+ onRequestCameraPermission();
16
15
  };
17
16
  return (
18
17
  /*#__PURE__*/
@@ -1 +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"}
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 { askPermission } from '../utils/permissions';
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 = _ref => {
11
- let {
12
- children,
13
- onError,
14
- onSuccess
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).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
- });
39
+ startLiveness3d(options, onSuccess, onError);
53
40
  }
54
41
  }
55
- function onAskPermission() {
56
- askPermission().then(result => {
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
- onAskPermission,
59
+ onRequestCameraPermission,
73
60
  callbackView,
74
61
  setCallbackView
75
62
  };
@@ -1 +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"}
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":[]}