idwise-nfc-react-native-sdk 5.5.5 → 5.6.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 (222) hide show
  1. package/IdwiseReactNativeSdk.podspec +36 -0
  2. package/LICENSE +1 -1
  3. package/android/build.gradle +35 -59
  4. package/android/gradle.properties +6 -6
  5. package/android/src/main/AndroidManifest.xml +1 -2
  6. package/android/src/main/java/com/{idwisemobilesdk/IdwiseMobileSdkModule.kt → idwisereactnativesdk/IdwiseReactNativeSdkModule.kt} +33 -21
  7. package/android/src/main/java/com/idwisereactnativesdk/IdwiseReactNativeSdkPackage.kt +33 -0
  8. package/ios/IdwiseReactNativeSdk.h +5 -0
  9. package/ios/{IdwiseMobileSdk.mm → IdwiseReactNativeSdk.mm} +22 -1
  10. package/ios/{IdwiseMobileSdk.swift → IdwiseReactNativeSdk.swift} +17 -17
  11. package/lib/module/ApplicantDetailsKeys.js +2 -0
  12. package/lib/module/ApplicantDetailsKeys.js.map +1 -1
  13. package/lib/module/IDWise.js +5 -2
  14. package/lib/module/IDWise.js.map +1 -1
  15. package/lib/module/IDWiseConstants.js +8 -0
  16. package/lib/module/IDWiseConstants.js.map +1 -1
  17. package/lib/module/IDWiseDynamic.js +4 -2
  18. package/lib/module/IDWiseDynamic.js.map +1 -1
  19. package/lib/module/IDWiseEventListeners.js +22 -16
  20. package/lib/module/IDWiseEventListeners.js.map +1 -1
  21. package/lib/module/NativeIdwiseReactNativeSdk.js +5 -0
  22. package/lib/module/NativeIdwiseReactNativeSdk.js.map +1 -0
  23. package/lib/module/index.d.js +10 -0
  24. package/lib/module/index.d.js.map +1 -0
  25. package/lib/module/index.js +6 -3
  26. package/lib/module/index.js.map +1 -1
  27. package/lib/module/package.json +1 -0
  28. package/package.json +63 -35
  29. package/src/IDWise.js +3 -2
  30. package/src/IDWiseDynamic.js +2 -2
  31. package/src/IDWiseEventListeners.js +8 -2
  32. package/src/NativeIdwiseReactNativeSdk.ts +20 -0
  33. package/src/index.d.ts +125 -0
  34. package/tsconfig.json +7 -8
  35. package/android/src/main/AndroidManifestNew.xml +0 -2
  36. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkPackage.kt +0 -17
  37. package/idwise-react-native-sdk.podspec +0 -66
  38. package/ios/IDWiseNFC.xcframework/Info.plist +0 -48
  39. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Assets.car +0 -0
  40. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
  41. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
  42. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  43. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BulletCell.nib +0 -0
  44. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BulletCellRTL.nib +0 -0
  45. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib +0 -0
  46. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
  47. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  48. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentTypeTableViewCell.nib +0 -0
  49. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib +0 -0
  50. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentViewController.storyboardc/Info.plist +0 -0
  51. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib +0 -0
  52. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib +0 -0
  53. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
  54. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  55. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
  56. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
  57. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  58. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Headers/IDWise.h +0 -18
  59. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/IDWiseNFC +0 -0
  60. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Info.plist +0 -0
  61. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib +0 -0
  62. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
  63. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib +0 -0
  64. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/MenuCell.nib +0 -0
  65. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/MenuWidgetView.nib +0 -0
  66. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.abi.json +0 -32578
  67. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -661
  68. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  69. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface +0 -661
  70. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Mulish-Bold.ttf +0 -0
  71. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Mulish-Light.ttf +0 -0
  72. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Mulish-Regular.ttf +0 -0
  73. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
  74. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib +0 -0
  75. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
  76. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProgressBarMenuScreen.nib +0 -0
  77. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProgressBarView.nib +0 -0
  78. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/RegulaSDKController.storyboardc/Info.plist +0 -0
  79. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/RegulaSDKController.storyboardc/RegulaSDKController.nib +0 -0
  80. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/RegulaSDKController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  81. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/SelfieViewController.storyboardc/Info.plist +0 -0
  82. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  83. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
  84. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
  85. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib +0 -0
  86. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  87. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/StepCell.nib +0 -0
  88. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
  89. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
  90. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  91. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ar.lproj/CustomLocalized.strings +0 -0
  92. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ckb.lproj/CustomLocalized.strings +0 -0
  93. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
  94. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  95. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +0 -118
  96. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
  97. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  98. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
  99. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.net +0 -4737
  100. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.shape +0 -1789
  101. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
  102. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
  103. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
  104. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
  105. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  106. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/metadata.json +0 -82
  107. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
  108. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.net +0 -2250
  109. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.shape +0 -718
  110. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
  111. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
  112. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/en.lproj/CustomLocalized.strings +0 -0
  113. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/en.lproj/Localizable.strings +0 -0
  114. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/journey_image_config.json +0 -96
  115. package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/regula.license +0 -0
  116. package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Info.plist +0 -20
  117. package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/DWARF/IDWiseNFC +0 -0
  118. package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Relocations/aarch64/IDWiseNFC.yml +0 -5346
  119. package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/aarch64/FingerprintPro.swiftinterface +0 -237
  120. package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/aarch64/ShieldFraud.swiftinterface +0 -170
  121. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Assets.car +0 -0
  122. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
  123. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
  124. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  125. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BulletCell.nib +0 -0
  126. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BulletCellRTL.nib +0 -0
  127. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib +0 -0
  128. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
  129. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  130. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentTypeTableViewCell.nib +0 -0
  131. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib +0 -0
  132. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentViewController.storyboardc/Info.plist +0 -0
  133. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib +0 -0
  134. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib +0 -0
  135. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
  136. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  137. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
  138. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
  139. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  140. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Headers/IDWise.h +0 -18
  141. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/IDWiseNFC +0 -0
  142. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Info.plist +0 -0
  143. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib +0 -0
  144. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
  145. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib +0 -0
  146. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/MenuCell.nib +0 -0
  147. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/MenuWidgetView.nib +0 -0
  148. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -32578
  149. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -661
  150. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  151. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -661
  152. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -32578
  153. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -661
  154. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  155. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -661
  156. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Mulish-Bold.ttf +0 -0
  157. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Mulish-Light.ttf +0 -0
  158. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Mulish-Regular.ttf +0 -0
  159. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
  160. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib +0 -0
  161. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
  162. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProgressBarMenuScreen.nib +0 -0
  163. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProgressBarView.nib +0 -0
  164. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/RegulaSDKController.storyboardc/Info.plist +0 -0
  165. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/RegulaSDKController.storyboardc/RegulaSDKController.nib +0 -0
  166. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/RegulaSDKController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  167. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/SelfieViewController.storyboardc/Info.plist +0 -0
  168. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  169. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
  170. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
  171. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib +0 -0
  172. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
  173. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/StepCell.nib +0 -0
  174. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
  175. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
  176. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
  177. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/_CodeSignature/CodeResources +0 -1021
  178. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ar.lproj/CustomLocalized.strings +0 -0
  179. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ckb.lproj/CustomLocalized.strings +0 -0
  180. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
  181. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  182. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +0 -118
  183. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
  184. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  185. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
  186. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.net +0 -4737
  187. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.shape +0 -1789
  188. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
  189. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
  190. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
  191. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
  192. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  193. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/metadata.json +0 -82
  194. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
  195. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.net +0 -2250
  196. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.shape +0 -718
  197. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
  198. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
  199. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/en.lproj/CustomLocalized.strings +0 -0
  200. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/en.lproj/Localizable.strings +0 -0
  201. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/journey_image_config.json +0 -96
  202. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/regula.license +0 -0
  203. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Info.plist +0 -20
  204. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/DWARF/IDWiseNFC +0 -0
  205. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Relocations/aarch64/IDWiseNFC.yml +0 -5330
  206. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Relocations/x86_64/IDWiseNFC.yml +0 -5239
  207. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/aarch64/FingerprintPro.swiftinterface +0 -237
  208. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/aarch64/ShieldFraud.swiftinterface +0 -170
  209. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/x86_64/FingerprintPro.swiftinterface +0 -237
  210. package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/x86_64/ShieldFraud.swiftinterface +0 -170
  211. package/lib/commonjs/ApplicantDetailsKeys.js +0 -12
  212. package/lib/commonjs/ApplicantDetailsKeys.js.map +0 -1
  213. package/lib/commonjs/IDWise.js +0 -44
  214. package/lib/commonjs/IDWise.js.map +0 -1
  215. package/lib/commonjs/IDWiseConstants.js +0 -27
  216. package/lib/commonjs/IDWiseConstants.js.map +0 -1
  217. package/lib/commonjs/IDWiseDynamic.js +0 -65
  218. package/lib/commonjs/IDWiseDynamic.js.map +0 -1
  219. package/lib/commonjs/IDWiseEventListeners.js +0 -88
  220. package/lib/commonjs/IDWiseEventListeners.js.map +0 -1
  221. package/lib/commonjs/index.js +0 -17
  222. package/lib/commonjs/index.js.map +0 -1
@@ -0,0 +1,36 @@
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = "IdwiseReactNativeSdk"
7
+ s.version = package["version"]
8
+ s.summary = package["description"]
9
+ s.homepage = package["homepage"]
10
+ s.license = package["license"]
11
+ s.authors = package["author"]
12
+
13
+ s.platforms = { :ios => min_ios_version_supported }
14
+ s.source = { :git => "https://github.com/idwise/idwise_react_native_sdk.git", :tag => "#{s.version}" }
15
+
16
+ s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
17
+ s.private_header_files = "ios/**/*.h"
18
+
19
+ s.dependency 'FingerprintPro','2.7.0'
20
+ s.dependency 'Shield-Ptr','1.5.49'
21
+ s.dependency 'IDWiseNFC', '5.6.1'
22
+ s.dependency 'DocumentReader', '7.4.3900'
23
+ s.dependency 'DocumentReaderMRZRFID', '7.4.9825'
24
+
25
+ s.pod_target_xcconfig = {
26
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
27
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
28
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
29
+ #"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
30
+ "CODE_SIGNING_ALLOWED" => 'NO',
31
+ 'DEFINES_MODULE' => 'YES',
32
+ 'SWIFT_VERSION' => '5.0'
33
+ }
34
+
35
+ install_modules_dependencies(s)
36
+ end
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 smsibtainrn
3
+ Copyright (c) 2025 Waqar Khan
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
6
6
  in the Software without restriction, including without limitation the rights
@@ -1,69 +1,33 @@
1
-
2
-
3
-
4
1
  buildscript {
5
- // Buildscript is evaluated before everything else so we can't use getExtOrDefault
6
- def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["IdwiseMobileSdk_kotlinVersion"]
2
+ ext.getExtOrDefault = {name ->
3
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties['IdwiseReactNativeSdk_' + name]
4
+ }
7
5
 
8
6
  repositories {
9
- maven { url 'https://mobile-sdk.idwise.ai/releases/' }
10
7
  google()
11
8
  mavenCentral()
9
+ maven { url 'https://mobile-sdk.idwise.ai/releases/' }
12
10
  }
13
11
 
14
12
  dependencies {
15
- classpath "com.android.tools.build:gradle:7.2.1"
13
+ classpath "com.android.tools.build:gradle:8.7.2"
16
14
  // noinspection DifferentKotlinGradleVersion
17
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
18
16
  }
19
17
  }
20
18
 
21
- /*allprojects {
22
- repositories {
23
- maven { url 'https://mobile-sdk.idwise.ai/releases/' }
24
- google()
25
- mavenCentral()
26
- }
27
- }*/
28
-
29
- def isNewArchitectureEnabled() {
30
- return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
31
- }
32
19
 
33
20
  apply plugin: "com.android.library"
34
21
  apply plugin: "kotlin-android"
35
22
 
36
- if (isNewArchitectureEnabled()) {
37
- apply plugin: "com.facebook.react"
38
- }
39
-
40
- def getExtOrDefault(name) {
41
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["IdwiseMobileSdk_" + name]
42
- }
23
+ apply plugin: "com.facebook.react"
43
24
 
44
25
  def getExtOrIntegerDefault(name) {
45
- return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["IdwiseMobileSdk_" + name]).toInteger()
46
- }
47
-
48
- def supportsNamespace() {
49
- def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
50
- def major = parsed[0].toInteger()
51
- def minor = parsed[1].toInteger()
52
-
53
- // Namespace support was added in 7.3.0
54
- return (major == 7 && minor >= 3) || major >= 8
26
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["IdwiseReactNativeSdk_" + name]).toInteger()
55
27
  }
56
28
 
57
29
  android {
58
- if (supportsNamespace()) {
59
- namespace "com.idwisemobilesdk"
60
-
61
- sourceSets {
62
- main {
63
- manifest.srcFile "src/main/AndroidManifestNew.xml"
64
- }
65
- }
66
- }
30
+ namespace "com.idwisereactnativesdk"
67
31
 
68
32
  compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
69
33
 
@@ -73,45 +37,57 @@ android {
73
37
  multiDexEnabled true
74
38
  }
75
39
 
40
+ buildFeatures {
41
+ buildConfig true
42
+ dataBinding true
43
+ }
44
+
76
45
  buildTypes {
77
46
  release {
78
47
  minifyEnabled false
79
48
  }
80
49
  }
81
- buildFeatures {
82
- dataBinding true
83
- }
50
+
84
51
  lintOptions {
85
52
  disable "GradleCompatible"
86
53
  }
87
54
 
88
55
  compileOptions {
89
- sourceCompatibility JavaVersion.VERSION_17
90
- targetCompatibility JavaVersion.VERSION_17
56
+ sourceCompatibility JavaVersion.VERSION_1_8
57
+ targetCompatibility JavaVersion.VERSION_1_8
58
+ }
59
+
60
+ sourceSets {
61
+ main {
62
+ java.srcDirs += [
63
+ "generated/java",
64
+ "generated/jni"
65
+ ]
66
+ }
91
67
  }
92
68
  }
93
69
 
94
70
  repositories {
95
71
  mavenCentral()
96
72
  google()
97
- //maven{
98
- // name 'Staging'
99
- // url 'https://s01.oss.sonatype.org/content/repositories/staging/'
100
- // }
73
+
74
+ maven { url 'https://mobile-sdk.idwise.ai/releases/' }
101
75
  }
102
76
 
103
77
  def kotlin_version = getExtOrDefault("kotlinVersion")
104
78
  def idwise_sdk_version =project.properties["idwise_sdk_version"]
105
79
 
106
80
  dependencies {
107
- // For < 0.71, this will be from the local maven repo
108
- // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
109
- //noinspection GradleDynamicVersion
110
- implementation "com.facebook.react:react-native:+"
81
+ implementation "com.facebook.react:react-android"
111
82
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
112
- implementation 'com.google.code.gson:gson:2.10.1'
113
83
 
84
+ implementation 'com.google.code.gson:gson:2.10.1'
114
85
  implementation "com.idwise:android-sdk:$idwise_sdk_version"
115
86
  implementation "com.idwise:nfc:$idwise_sdk_version"
116
87
  }
117
88
 
89
+ react {
90
+ jsRootDir = file("../src/")
91
+ libraryName = "IdwiseReactNativeSdk"
92
+ codegenJavaPackageName = "com.idwisereactnativesdk"
93
+ }
@@ -1,7 +1,7 @@
1
- IdwiseMobileSdk_kotlinVersion=1.9.20
2
- IdwiseMobileSdk_minSdkVersion=21
3
- IdwiseMobileSdk_targetSdkVersion=31
4
- IdwiseMobileSdk_compileSdkVersion=31
5
- IdwiseMobileSdk_ndkversion=21.4.7075529
1
+ IdwiseReactNativeSdk_kotlinVersion=2.0.21
2
+ IdwiseReactNativeSdk_minSdkVersion=24
3
+ IdwiseReactNativeSdk_targetSdkVersion=34
4
+ IdwiseReactNativeSdk_compileSdkVersion=35
5
+ IdwiseReactNativeSdk_ndkVersion=27.1.12297006
6
6
  # Idwise SDK version
7
- idwise_sdk_version=5.5.3
7
+ idwise_sdk_version=5.6.0
@@ -1,3 +1,2 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
- package="com.idwisemobilesdk">
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
3
2
  </manifest>
@@ -1,4 +1,7 @@
1
- package com.idwisemobilesdk
1
+ package com.idwisereactnativesdk
2
+
3
+ import com.facebook.react.bridge.ReactApplicationContext
4
+ import com.facebook.react.module.annotations.ReactModule
2
5
 
3
6
  import android.graphics.Bitmap
4
7
  import android.util.Base64
@@ -13,13 +16,15 @@ import com.idwise.sdk.IDWiseStepCallbacks
13
16
  import com.idwise.sdk.data.models.*
14
17
  import java.io.ByteArrayOutputStream
15
18
 
16
- class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
17
- ReactContextBaseJavaModule(reactContext) {
19
+ @ReactModule(name = IdwiseReactNativeSdkModule.NAME)
20
+ class IdwiseReactNativeSdkModule(private val reactContext: ReactApplicationContext) :
21
+ NativeIdwiseReactNativeSdkSpec(reactContext) {
18
22
 
19
23
  override fun getName(): String {
20
24
  return NAME
21
25
  }
22
26
 
27
+
23
28
  private fun sendEvent(eventName: String, @Nullable params: WritableMap) {
24
29
  reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java)
25
30
  .emit(eventName, params)
@@ -27,7 +32,7 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
27
32
 
28
33
 
29
34
  @ReactMethod(isBlockingSynchronousMethod = true)
30
- fun isDeviceBlocked(): Boolean {
35
+ override fun isDeviceBlocked(): Boolean {
31
36
  if(currentActivity == null){
32
37
  return false
33
38
  }else{
@@ -36,7 +41,7 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
36
41
  }
37
42
 
38
43
  @ReactMethod
39
- fun initialize(clientKey: String, theme: String) {
44
+ override fun initialize(clientKey: String, theme: String) {
40
45
  val idwiseTheme: IDWiseTheme = try {
41
46
  IDWiseTheme.valueOf(theme!!)
42
47
  } catch (e: Exception) {
@@ -51,8 +56,8 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
51
56
  }
52
57
 
53
58
  @ReactMethod
54
- fun startJourney(
55
- journeyTemplateId: String,
59
+ override fun startJourney(
60
+ flowId: String,
56
61
  referenceNo: String?,
57
62
  locale: String?,
58
63
  applicantDetails: ReadableMap?
@@ -63,12 +68,12 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
63
68
  }
64
69
 
65
70
  currentActivity?.let { activity ->
66
- IDWise.startJourney(context=activity, flowId=journeyTemplateId, referenceNo=referenceNo, locale=locale, applicantDetails=deconstructedMap, journeyCallbacks=journeyCallback)
71
+ IDWise.startJourney(context=activity, flowId=flowId, referenceNo=referenceNo, locale=locale, applicantDetails=deconstructedMap, journeyCallbacks=journeyCallback)
67
72
  }
68
73
  }
69
74
 
70
75
  @ReactMethod
71
- fun startDynamicJourney(
76
+ override fun startDynamicJourney(
72
77
  journeyTemplateId: String,
73
78
  referenceNo: String?,
74
79
  locale: String?,
@@ -88,10 +93,10 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
88
93
  }
89
94
 
90
95
  @ReactMethod
91
- fun resumeDynamicJourney(
96
+ override fun resumeDynamicJourney(
92
97
  journeyTemplateId: String,
93
98
  journeyId: String,
94
- locale: String
99
+ locale: String?
95
100
  ) {
96
101
  currentActivity?.let { activity ->
97
102
  IDWiseDynamic.resumeJourney(
@@ -102,10 +107,10 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
102
107
  }
103
108
 
104
109
  @ReactMethod
105
- fun resumeJourney(
110
+ override fun resumeJourney(
106
111
  journeyTemplateId: String,
107
112
  journeyId: String,
108
- locale: String
113
+ locale: String?
109
114
  ) {
110
115
  currentActivity?.let { activity ->
111
116
  IDWise.resumeJourney(
@@ -116,7 +121,7 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
116
121
  }
117
122
 
118
123
  @ReactMethod
119
- fun startStep(stepId: String) {
124
+ override fun startStep(stepId: String) {
120
125
  currentActivity?.let { activity -> IDWiseDynamic.startStep(activity, stepId) }
121
126
  }
122
127
 
@@ -126,18 +131,18 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
126
131
  }*/
127
132
 
128
133
  @ReactMethod
129
- fun finishDynamicJourney() {
134
+ override fun finishDynamicJourney() {
130
135
  IDWiseDynamic.finishJourney()
131
136
  }
132
137
 
133
138
 
134
139
  @ReactMethod
135
- fun skipStep(stepId: String) {
140
+ override fun skipStep(stepId: String) {
136
141
  IDWiseDynamic.skipStep(stepId)
137
142
  }
138
143
 
139
144
  @ReactMethod
140
- fun getJourneySummary() {
145
+ override fun getJourneySummary() {
141
146
  IDWiseDynamic.getJourneySummary() { summary, error ->
142
147
  val gson = Gson()
143
148
  val argsMap = Arguments.createMap()
@@ -151,7 +156,7 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
151
156
  }
152
157
 
153
158
  @ReactMethod
154
- fun unloadSDK() {
159
+ override fun unloadSDK() {
155
160
  UiThreadUtil.runOnUiThread { IDWiseDynamic.unloadSDK() }
156
161
  }
157
162
 
@@ -245,9 +250,6 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
245
250
  val b = baos.toByteArray()
246
251
  return Base64.encodeToString(b, Base64.DEFAULT)
247
252
  }
248
- companion object {
249
- const val NAME = "IdwiseMobileSdk"
250
- }
251
253
 
252
254
  private fun recursivelyDeconstructReadableMap(readableMap: ReadableMap):HashMap<String, String> {
253
255
  val iterator: ReadableMapKeySetIterator = readableMap.keySetIterator();
@@ -274,4 +276,14 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
274
276
  val summary:JourneySummary?,
275
277
  val error:IDWiseError?
276
278
  )
279
+
280
+ // Example method
281
+ // See https://reactnative.dev/docs/native-modules-android
282
+ override fun multiply(a: Double, b: Double): Double {
283
+ return a * b
284
+ }
285
+
286
+ companion object {
287
+ const val NAME = "IdwiseReactNativeSdk"
288
+ }
277
289
  }
@@ -0,0 +1,33 @@
1
+ package com.idwisereactnativesdk
2
+
3
+ import com.facebook.react.BaseReactPackage
4
+ import com.facebook.react.bridge.NativeModule
5
+ import com.facebook.react.bridge.ReactApplicationContext
6
+ import com.facebook.react.module.model.ReactModuleInfo
7
+ import com.facebook.react.module.model.ReactModuleInfoProvider
8
+ import java.util.HashMap
9
+
10
+ class IdwiseReactNativeSdkPackage : BaseReactPackage() {
11
+ override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
12
+ return if (name == IdwiseReactNativeSdkModule.NAME) {
13
+ IdwiseReactNativeSdkModule(reactContext)
14
+ } else {
15
+ null
16
+ }
17
+ }
18
+
19
+ override fun getReactModuleInfoProvider(): ReactModuleInfoProvider {
20
+ return ReactModuleInfoProvider {
21
+ val moduleInfos: MutableMap<String, ReactModuleInfo> = HashMap()
22
+ moduleInfos[IdwiseReactNativeSdkModule.NAME] = ReactModuleInfo(
23
+ IdwiseReactNativeSdkModule.NAME,
24
+ IdwiseReactNativeSdkModule.NAME,
25
+ false, // canOverrideExistingModule
26
+ false, // needsEagerInit
27
+ false, // isCxxModule
28
+ true // isTurboModule
29
+ )
30
+ moduleInfos
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,5 @@
1
+ #import <IdwiseReactNativeSdkSpec/IdwiseReactNativeSdkSpec.h>
2
+
3
+ @interface IdwiseReactNativeSdk : NSObject <NativeIdwiseReactNativeSdkSpec>
4
+
5
+ @end
@@ -3,7 +3,7 @@
3
3
  #import <React/RCTEventEmitter.h>
4
4
 
5
5
 
6
- @interface RCT_EXTERN_MODULE(IdwiseMobileSdk,RCTEventEmitter)
6
+ @interface RCT_EXTERN_MODULE(IdwiseReactNativeSdk,RCTEventEmitter)
7
7
 
8
8
  RCT_EXTERN_METHOD(initialize:(NSString *)clientKey
9
9
  :(NSString *)theme)
@@ -36,3 +36,24 @@ RCT_EXTERN_METHOD(supportedEvents)
36
36
  }
37
37
 
38
38
  @end
39
+
40
+
41
+ /*#import "IdwiseReactNativeSdk.h"
42
+
43
+ @implementation IdwiseReactNativeSdk
44
+ RCT_EXPORT_MODULE()
45
+
46
+ - (NSNumber *)multiply:(double)a b:(double)b {
47
+ NSNumber *result = @(a * b);
48
+
49
+ return result;
50
+ }
51
+
52
+ - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
53
+ (const facebook::react::ObjCTurboModule::InitParams &)params
54
+ {
55
+ return std::make_shared<facebook::react::NativeIdwiseReactNativeSdkSpecJSI>(params);
56
+ }
57
+
58
+ @end
59
+ */
@@ -2,8 +2,8 @@ import Foundation
2
2
  import IDWiseNFC
3
3
  import React
4
4
 
5
- @objc(IdwiseMobileSdk)
6
- class IdwiseMobileSdk: RCTEventEmitter {
5
+ @objc(IdwiseReactNativeSdk)
6
+ class IdwiseReactNativeSdk: RCTEventEmitter {
7
7
 
8
8
  public static var emitter: RCTEventEmitter!
9
9
 
@@ -19,7 +19,7 @@ class IdwiseMobileSdk: RCTEventEmitter {
19
19
 
20
20
  override init() {
21
21
  super.init()
22
- IdwiseMobileSdk.emitter = self
22
+ IdwiseReactNativeSdk.emitter = self
23
23
  }
24
24
 
25
25
  @objc func initialize(_ clientKey: String, _ theme: String) {
@@ -35,7 +35,7 @@ class IdwiseMobileSdk: RCTEventEmitter {
35
35
  let jsonData = try JSONEncoder().encode(error)
36
36
  let jsonString = String(data: jsonData, encoding: String.Encoding.utf8)
37
37
 
38
- IdwiseMobileSdk.emitter.sendEvent(
38
+ IdwiseReactNativeSdk.emitter.sendEvent(
39
39
  withName: "onInitializeError",
40
40
  body: ["data": jsonString] as [String: Any])
41
41
  } catch {
@@ -147,7 +147,7 @@ class IdwiseMobileSdk: RCTEventEmitter {
147
147
 
148
148
  let jsonData = try JSONEncoder().encode(responseSummary)
149
149
  let jsonString = String(data: jsonData, encoding: String.Encoding.utf8)
150
- IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneySummary", body: ["data": jsonString] as [String: Any])
150
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onJourneySummary", body: ["data": jsonString] as [String: Any])
151
151
 
152
152
  } catch {
153
153
  print(error)
@@ -180,13 +180,13 @@ class IdwiseMobileSdk: RCTEventEmitter {
180
180
 
181
181
  }
182
182
 
183
- extension IdwiseMobileSdk: IDWiseJourneyCallbacks {
183
+ extension IdwiseReactNativeSdk: IDWiseJourneyCallbacks {
184
184
  public func onJourneyResumed(journeyResumedInfo: JourneyResumedInfo) {
185
185
  do{
186
186
  let jsonEncoder = JSONEncoder()
187
187
  let jsonData = try jsonEncoder.encode(journeyResumedInfo)
188
188
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
189
- IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneyResumed", body: ["data": jsonResp] as [String: Any])
189
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onJourneyResumed", body: ["data": jsonResp] as [String: Any])
190
190
  }catch{
191
191
  print(error)
192
192
  }
@@ -199,7 +199,7 @@ extension IdwiseMobileSdk: IDWiseJourneyCallbacks {
199
199
  let jsonEncoder = JSONEncoder()
200
200
  let jsonData = try jsonEncoder.encode(error)
201
201
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
202
- IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneyError", body: ["data": jsonResp] as [String: Any])
202
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onJourneyError", body: ["data": jsonResp] as [String: Any])
203
203
  } catch{
204
204
  print(error)
205
205
  }
@@ -213,7 +213,7 @@ extension IdwiseMobileSdk: IDWiseJourneyCallbacks {
213
213
  let jsonData = try jsonEncoder.encode(journeyStartedInfo)
214
214
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
215
215
 
216
- IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneyStarted", body: ["data": jsonResp] as [String: Any])
216
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onJourneyStarted", body: ["data": jsonResp] as [String: Any])
217
217
  } catch {
218
218
  print(error)
219
219
  }
@@ -225,7 +225,7 @@ extension IdwiseMobileSdk: IDWiseJourneyCallbacks {
225
225
  let jsonEncoder = JSONEncoder()
226
226
  let jsonData = try jsonEncoder.encode(journeyCompletedInfo)
227
227
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
228
- IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneyCompleted", body: ["data": jsonResp] as [String: Any])
228
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onJourneyCompleted", body: ["data": jsonResp] as [String: Any])
229
229
  }catch{
230
230
  print(error)
231
231
  }
@@ -236,7 +236,7 @@ extension IdwiseMobileSdk: IDWiseJourneyCallbacks {
236
236
  let jsonEncoder = JSONEncoder()
237
237
  let jsonData = try jsonEncoder.encode(journeyCancelledInfo)
238
238
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
239
- IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneyCancelled", body: ["data": jsonResp] as [String: Any])
239
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onJourneyCancelled", body: ["data": jsonResp] as [String: Any])
240
240
  }catch{
241
241
  print(error)
242
242
  }
@@ -248,7 +248,7 @@ extension IdwiseMobileSdk: IDWiseJourneyCallbacks {
248
248
  let jsonEncoder = JSONEncoder()
249
249
  let jsonData = try jsonEncoder.encode(journeyBlockedInfo)
250
250
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
251
- IdwiseMobileSdk.emitter.sendEvent(withName: "onJourneyBlocked", body: ["data": jsonResp] as [String: Any])
251
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onJourneyBlocked", body: ["data": jsonResp] as [String: Any])
252
252
  }catch{
253
253
  print(error)
254
254
  }
@@ -256,7 +256,7 @@ extension IdwiseMobileSdk: IDWiseJourneyCallbacks {
256
256
 
257
257
  }
258
258
 
259
- extension IdwiseMobileSdk: IDWiseStepCallbacks {
259
+ extension IdwiseReactNativeSdk: IDWiseStepCallbacks {
260
260
 
261
261
  public func onStepCaptured(stepCapturedInfo:StepCapturedInfo) {
262
262
  do{
@@ -271,7 +271,7 @@ extension IdwiseMobileSdk: IDWiseStepCallbacks {
271
271
  let jsonData = try jsonEncoder.encode(captureResponse)
272
272
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
273
273
 
274
- IdwiseMobileSdk.emitter.sendEvent(withName: "onStepCaptured", body: ["data": jsonResp] as [String: Any])
274
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onStepCaptured", body: ["data": jsonResp] as [String: Any])
275
275
  }catch{
276
276
  print(error)
277
277
  }
@@ -283,7 +283,7 @@ extension IdwiseMobileSdk: IDWiseStepCallbacks {
283
283
  let jsonEncoder = JSONEncoder()
284
284
  let jsonData = try jsonEncoder.encode(stepResultInfo)
285
285
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
286
- IdwiseMobileSdk.emitter.sendEvent(withName: "onStepResult", body: ["data": jsonResp] as [String: Any])
286
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onStepResult", body: ["data": jsonResp] as [String: Any])
287
287
  }catch{
288
288
  print(error)
289
289
  }
@@ -296,7 +296,7 @@ extension IdwiseMobileSdk: IDWiseStepCallbacks {
296
296
  let jsonEncoder = JSONEncoder()
297
297
  let jsonData = try jsonEncoder.encode(stepCancelledInfo)
298
298
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
299
- IdwiseMobileSdk.emitter.sendEvent(withName: "onStepCancelled", body: ["data": jsonResp] as [String: Any])
299
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onStepCancelled", body: ["data": jsonResp] as [String: Any])
300
300
  }catch{
301
301
  print(error)
302
302
  }
@@ -307,7 +307,7 @@ extension IdwiseMobileSdk: IDWiseStepCallbacks {
307
307
  let jsonEncoder = JSONEncoder()
308
308
  let jsonData = try jsonEncoder.encode(stepSkippedInfo)
309
309
  let jsonResp = String(data: jsonData, encoding: String.Encoding.utf8)
310
- IdwiseMobileSdk.emitter.sendEvent(withName: "onStepSkipped", body: ["data": jsonResp] as [String: Any])
310
+ IdwiseReactNativeSdk.emitter.sendEvent(withName: "onStepSkipped", body: ["data": jsonResp] as [String: Any])
311
311
  }catch{
312
312
  print(error)
313
313
  }
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  export default {
2
4
  FULL_NAME: 'full_name',
3
5
  BIRTH_DATE: 'birth_date',
@@ -1 +1 @@
1
- {"version":3,"names":["FULL_NAME","BIRTH_DATE","SEX"],"sourceRoot":"../../src","sources":["ApplicantDetailsKeys.js"],"mappings":"AAAA,eAAe;EACbA,SAAS,EAAE,WAAW;EACtBC,UAAU,EAAE,YAAY;EACxBC,GAAG,EAAE;AACP,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["FULL_NAME","BIRTH_DATE","SEX"],"sourceRoot":"../../src","sources":["ApplicantDetailsKeys.js"],"mappings":";;AAAA,eAAe;EACbA,SAAS,EAAE,WAAW;EACtBC,UAAU,EAAE,YAAY;EACxBC,GAAG,EAAE;AACP,CAAC","ignoreList":[]}
@@ -1,10 +1,13 @@
1
+ "use strict";
2
+
1
3
  import { NativeModules, Platform } from 'react-native';
2
- import { setInitializeEventListeners, setJourneyEventListeners, setStepEventListeners } from './IDWiseEventListeners';
4
+ import IdwiseReactNativeSdk from "./NativeIdwiseReactNativeSdk.js";
5
+ import { setInitializeEventListeners, setJourneyEventListeners, setStepEventListeners } from "./IDWiseEventListeners.js";
3
6
  const LINKING_ERROR = `The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
4
7
  ios: "- You have run 'pod install'\n",
5
8
  default: ''
6
9
  }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
7
- const RNIDWise = NativeModules.IdwiseMobileSdk ? NativeModules.IdwiseMobileSdk : new Proxy({}, {
10
+ const RNIDWise = IdwiseReactNativeSdk ? IdwiseReactNativeSdk : new Proxy({}, {
8
11
  get() {
9
12
  throw new Error(LINKING_ERROR);
10
13
  }
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","Platform","setInitializeEventListeners","setJourneyEventListeners","setStepEventListeners","LINKING_ERROR","select","ios","default","RNIDWise","IdwiseMobileSdk","Proxy","get","Error","initialize","clientKey","theme","callback","console","log","isDeviceBlocked","startJourney","journeyDefinitionId","referenceNo","locale","applicantDetails","journeyCallback","resumeJourney","journeyId","IDWise"],"sourceRoot":"../../src","sources":["IDWise.js"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,SACEC,2BAA2B,EAC3BC,wBAAwB,EACxBC,qBAAqB,QAChB,wBAAwB;AAE/B,MAAMC,aAAa,GACjB,4EAA4E,GAC5EJ,QAAQ,CAACK,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,QAAQ,GAAGT,aAAa,CAACU,eAAe,GAC1CV,aAAa,CAACU,eAAe,GAC7B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACR,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMS,UAAU,GAAGA,CAACC,SAAS,EAAEC,KAAK,EAAEC,QAAQ,KAAK;EACjDC,OAAO,CAACC,GAAG,CAAC,qBAAqB,CAAC;EAClCjB,2BAA2B,CAACe,QAAQ,CAAC;EAErCR,QAAQ,CAACK,UAAU,CAACC,SAAS,EAAEC,KAAK,CAAC;AACvC,CAAC;AAED,MAAMI,eAAe,GAAGA,CAAA,KAAM;EAC5BF,OAAO,CAACC,GAAG,CAAC,0BAA0B,CAAC;EAEvC,OAAOV,QAAQ,CAACW,eAAe,CAAC,CAAC;AACnC,CAAC;AAED,MAAMC,YAAY,GAAGA,CACnBC,mBAAmB,EACnBC,WAAW,EACXC,MAAM,EACNC,gBAAgB,EAChBC,eAAe,KACZ;EACHR,OAAO,CAACC,GAAG,CAAC,uBAAuB,CAAC;EACpChB,wBAAwB,CAACuB,eAAe,CAAC;EACzCtB,qBAAqB,CAAC,IAAI,CAAC;EAE3BK,QAAQ,CAACY,YAAY,CACnBC,mBAAmB,EACnBC,WAAW,EACXC,MAAM,EACNC,gBACF,CAAC;AACH,CAAC;AAED,MAAME,aAAa,GAAGA,CACpBL,mBAAmB,EACnBM,SAAS,EACTJ,MAAM,EACNE,eAAe,KACZ;EACHR,OAAO,CAACC,GAAG,CAAC,wBAAwB,CAAC;EACrChB,wBAAwB,CAACuB,eAAe,CAAC;EAEzCjB,QAAQ,CAACkB,aAAa,CAACL,mBAAmB,EAAEM,SAAS,EAAEJ,MAAM,CAAC;AAChE,CAAC;AAED,OAAO,MAAMK,MAAM,GAAG;EACpBf,UAAU;EACVO,YAAY;EACZM,aAAa;EACbP;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","Platform","IdwiseReactNativeSdk","setInitializeEventListeners","setJourneyEventListeners","setStepEventListeners","LINKING_ERROR","select","ios","default","RNIDWise","Proxy","get","Error","initialize","clientKey","theme","callback","console","log","isDeviceBlocked","startJourney","journeyDefinitionId","referenceNo","locale","applicantDetails","journeyCallback","resumeJourney","journeyId","IDWise"],"sourceRoot":"../../src","sources":["IDWise.js"],"mappings":";;AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,OAAOC,oBAAoB,MAAM,iCAA8B;AAC/D,SACEC,2BAA2B,EAC3BC,wBAAwB,EACxBC,qBAAqB,QAChB,2BAAwB;AAE/B,MAAMC,aAAa,GACjB,4EAA4E,GAC5EL,QAAQ,CAACM,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,QAAQ,GAAGR,oBAAoB,GACjCA,oBAAoB,GACpB,IAAIS,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMQ,UAAU,GAAGA,CAACC,SAAS,EAAEC,KAAK,EAAEC,QAAQ,KAAK;EACjDC,OAAO,CAACC,GAAG,CAAC,qBAAqB,CAAC;EAClChB,2BAA2B,CAACc,QAAQ,CAAC;EAErCP,QAAQ,CAACI,UAAU,CAACC,SAAS,EAAEC,KAAK,CAAC;AACvC,CAAC;AAED,MAAMI,eAAe,GAAGA,CAAA,KAAM;EAC5BF,OAAO,CAACC,GAAG,CAAC,0BAA0B,CAAC;EAEvC,OAAOT,QAAQ,CAACU,eAAe,CAAC,CAAC;AACnC,CAAC;AAED,MAAMC,YAAY,GAAGA,CACnBC,mBAAmB,EACnBC,WAAW,EACXC,MAAM,EACNC,gBAAgB,EAChBC,eAAe,KACZ;EACHR,OAAO,CAACC,GAAG,CAAC,uBAAuB,CAAC;EACpCf,wBAAwB,CAACsB,eAAe,CAAC;EACzCrB,qBAAqB,CAAC,IAAI,CAAC;EAE3BK,QAAQ,CAACW,YAAY,CACnBC,mBAAmB,EACnBC,WAAW,EACXC,MAAM,EACNC,gBACF,CAAC;AACH,CAAC;AAED,MAAME,aAAa,GAAGA,CACpBL,mBAAmB,EACnBM,SAAS,EACTJ,MAAM,EACNE,eAAe,KACZ;EACHR,OAAO,CAACC,GAAG,CAAC,wBAAwB,CAAC;EACrCf,wBAAwB,CAACsB,eAAe,CAAC;EAEzChB,QAAQ,CAACiB,aAAa,CAACL,mBAAmB,EAAEM,SAAS,EAAEJ,MAAM,CAAC;AAChE,CAAC;AAED,OAAO,MAAMK,MAAM,GAAG;EACpBf,UAAU;EACVO,YAAY;EACZM,aAAa;EACbP;AACF,CAAC","ignoreList":[]}
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  export const IDWiseEvents = {
2
4
  EVENT_INITIALIZE_ERRROR: 'onInitializeError',
3
5
  EVENT_JOURNEY_STARTED: 'onJourneyStarted',
@@ -18,4 +20,10 @@ export const IDWiseTheme = {
18
20
  DARK: 'DARK',
19
21
  SYSTEM_DEFAULT: 'SYSTEM_DEFAULT'
20
22
  };
23
+ export const ApplicantDetailsKeys = {
24
+ FULL_NAME: 'full_name',
25
+ BIRTH_DATE: 'birth_date',
26
+ SEX: 'sex',
27
+ ADDRESS: 'address'
28
+ };
21
29
  //# sourceMappingURL=IDWiseConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["IDWiseEvents","EVENT_INITIALIZE_ERRROR","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_BLOCKED","EVENT_JOURNEY_ERROR","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SUMMARY_ERROR","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","EVENT_STEP_SKIPPED","IDWiseTheme","LIGHT","DARK","SYSTEM_DEFAULT"],"sourceRoot":"../../src","sources":["IDWiseConstants.js"],"mappings":"AAAA,OAAO,MAAMA,YAAY,GAAG;EAC1BC,uBAAuB,EAAE,mBAAmB;EAE5CC,qBAAqB,EAAE,kBAAkB;EACzCC,qBAAqB,EAAE,kBAAkB;EACzCC,sBAAsB,EAAE,oBAAoB;EAC5CC,uBAAuB,EAAE,oBAAoB;EAC7CC,qBAAqB,EAAE,kBAAkB;EACzCC,mBAAmB,EAAE,gBAAgB;EAErCC,qBAAqB,EAAE,kBAAkB;EACzCC,2BAA2B,EAAE,uBAAuB;EAEpDC,mBAAmB,EAAE,gBAAgB;EACrCC,iBAAiB,EAAE,cAAc;EACjCC,oBAAoB,EAAE,iBAAiB;EACvCC,kBAAkB,EAAE;AACtB,CAAC;AAED,OAAO,MAAMC,WAAW,GAAG;EACzBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,cAAc,EAAE;AAClB,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["IDWiseEvents","EVENT_INITIALIZE_ERRROR","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_BLOCKED","EVENT_JOURNEY_ERROR","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SUMMARY_ERROR","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","EVENT_STEP_SKIPPED","IDWiseTheme","LIGHT","DARK","SYSTEM_DEFAULT","ApplicantDetailsKeys","FULL_NAME","BIRTH_DATE","SEX","ADDRESS"],"sourceRoot":"../../src","sources":["IDWiseConstants.js"],"mappings":";;AAAA,OAAO,MAAMA,YAAY,GAAG;EAC1BC,uBAAuB,EAAE,mBAAmB;EAE5CC,qBAAqB,EAAE,kBAAkB;EACzCC,qBAAqB,EAAE,kBAAkB;EACzCC,sBAAsB,EAAE,oBAAoB;EAC5CC,uBAAuB,EAAE,oBAAoB;EAC7CC,qBAAqB,EAAE,kBAAkB;EACzCC,mBAAmB,EAAE,gBAAgB;EAErCC,qBAAqB,EAAE,kBAAkB;EACzCC,2BAA2B,EAAE,uBAAuB;EAEpDC,mBAAmB,EAAE,gBAAgB;EACrCC,iBAAiB,EAAE,cAAc;EACjCC,oBAAoB,EAAE,iBAAiB;EACvCC,kBAAkB,EAAE;AACtB,CAAC;AAED,OAAO,MAAMC,WAAW,GAAG;EACzBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE,MAAM;EACZC,cAAc,EAAE;AAClB,CAAC;AAED,OAAO,MAAMC,oBAAoB,GAAG;EAClCC,SAAS,EAAE,WAAW;EACtBC,UAAU,EAAE,YAAY;EACxBC,GAAG,EAAE,KAAK;EACVC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}