idwise-react-native-sdk 4.5.5

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 (196) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +48 -0
  3. package/android/build.gradle +107 -0
  4. package/android/gradle.properties +5 -0
  5. package/android/src/main/AndroidManifest.xml +3 -0
  6. package/android/src/main/AndroidManifestNew.xml +2 -0
  7. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +205 -0
  8. package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkPackage.kt +17 -0
  9. package/idwise-react-native-sdk.podspec +62 -0
  10. package/ios/IDWiseSDK.xcframework/Info.plist +43 -0
  11. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
  12. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCell.nib +0 -0
  13. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
  14. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/objects-13.0+.nib +0 -0
  15. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/runtime.nib +0 -0
  16. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
  17. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  18. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  19. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
  20. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/objects-13.0+.nib +0 -0
  21. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
  22. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
  23. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/objects-13.0+.nib +0 -0
  24. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/runtime.nib +0 -0
  25. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/objects-13.0+.nib +0 -0
  26. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/runtime.nib +0 -0
  27. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
  28. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  29. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  30. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
  31. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/objects-13.0+.nib +0 -0
  32. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/runtime.nib +0 -0
  33. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  34. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  35. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Headers/IDWise.h +18 -0
  36. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/IDWiseSDK +0 -0
  37. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Info.plist +0 -0
  38. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib +0 -0
  39. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
  40. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
  41. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/objects-13.0+.nib +0 -0
  42. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/runtime.nib +0 -0
  43. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuCell.nib +0 -0
  44. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
  45. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +41050 -0
  46. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +465 -0
  47. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  48. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +465 -0
  49. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
  50. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
  51. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
  52. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
  53. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/objects-13.0+.nib +0 -0
  54. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/runtime.nib +0 -0
  55. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib +0 -0
  56. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
  57. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarMenuScreen.nib/objects-13.0+.nib +0 -0
  58. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarMenuScreen.nib/runtime.nib +0 -0
  59. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarView.nib/objects-13.0+.nib +0 -0
  60. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarView.nib/runtime.nib +0 -0
  61. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
  62. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  63. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
  64. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
  65. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/objects-13.0+.nib +0 -0
  66. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/runtime.nib +0 -0
  67. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  68. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  69. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StepCell.nib +0 -0
  70. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +978 -0
  71. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
  72. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  73. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +115 -0
  74. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
  75. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  76. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
  77. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +4737 -0
  78. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +1789 -0
  79. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
  80. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
  81. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
  82. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
  83. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  84. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +79 -0
  85. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
  86. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +2250 -0
  87. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +718 -0
  88. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
  89. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
  90. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
  91. package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/journey_image_config.json +95 -0
  92. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
  93. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCell.nib +0 -0
  94. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
  95. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/objects-13.0+.nib +0 -0
  96. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/runtime.nib +0 -0
  97. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
  98. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  99. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  100. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
  101. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/objects-13.0+.nib +0 -0
  102. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
  103. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
  104. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/objects-13.0+.nib +0 -0
  105. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/runtime.nib +0 -0
  106. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/objects-13.0+.nib +0 -0
  107. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/runtime.nib +0 -0
  108. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
  109. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  110. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  111. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
  112. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/objects-13.0+.nib +0 -0
  113. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/runtime.nib +0 -0
  114. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
  115. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
  116. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Headers/IDWise.h +18 -0
  117. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
  118. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
  119. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib +0 -0
  120. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
  121. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
  122. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/objects-13.0+.nib +0 -0
  123. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/runtime.nib +0 -0
  124. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/MenuCell.nib +0 -0
  125. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
  126. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +41043 -0
  127. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +465 -0
  128. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  129. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +465 -0
  130. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
  131. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
  132. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
  133. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
  134. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/objects-13.0+.nib +0 -0
  135. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/runtime.nib +0 -0
  136. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib +0 -0
  137. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
  138. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarMenuScreen.nib/objects-13.0+.nib +0 -0
  139. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarMenuScreen.nib/runtime.nib +0 -0
  140. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarView.nib/objects-13.0+.nib +0 -0
  141. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarView.nib/runtime.nib +0 -0
  142. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
  143. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
  144. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
  145. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
  146. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/objects-13.0+.nib +0 -0
  147. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/runtime.nib +0 -0
  148. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
  149. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
  150. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StepCell.nib +0 -0
  151. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +978 -0
  152. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
  153. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
  154. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +115 -0
  155. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
  156. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
  157. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
  158. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +4737 -0
  159. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +1789 -0
  160. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
  161. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
  162. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
  163. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
  164. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
  165. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +79 -0
  166. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
  167. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +2250 -0
  168. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +718 -0
  169. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
  170. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
  171. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
  172. package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/journey_image_config.json +95 -0
  173. package/ios/IdwiseMobileSdk-Bridging-Header.h +2 -0
  174. package/ios/IdwiseMobileSdk.mm +34 -0
  175. package/ios/IdwiseMobileSdk.swift +237 -0
  176. package/lib/commonjs/IDWise.js +60 -0
  177. package/lib/commonjs/IDWise.js.map +1 -0
  178. package/lib/commonjs/IDWiseConstants.js +25 -0
  179. package/lib/commonjs/IDWiseConstants.js.map +1 -0
  180. package/lib/commonjs/IDWiseEventListeners.js +75 -0
  181. package/lib/commonjs/IDWiseEventListeners.js.map +1 -0
  182. package/lib/commonjs/index.js +15 -0
  183. package/lib/commonjs/index.js.map +1 -0
  184. package/lib/module/IDWise.js +54 -0
  185. package/lib/module/IDWise.js.map +1 -0
  186. package/lib/module/IDWiseConstants.js +19 -0
  187. package/lib/module/IDWiseConstants.js.map +1 -0
  188. package/lib/module/IDWiseEventListeners.js +66 -0
  189. package/lib/module/IDWiseEventListeners.js.map +1 -0
  190. package/lib/module/index.js +7 -0
  191. package/lib/module/index.js.map +1 -0
  192. package/package.json +159 -0
  193. package/src/IDWise.js +96 -0
  194. package/src/IDWiseConstants.js +22 -0
  195. package/src/IDWiseEventListeners.js +100 -0
  196. package/src/index.js +4 -0
package/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 smsibtainrn
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ <p align="center">
2
+ <img alt="idwise-react-native-sdk" src="https://www.idwise.com/wp-content/uploads/2022/09/IDWise-Logo.svg" width="300">
3
+ </p>
4
+ <p align="center">
5
+ Next-Gen Identity Verification Suite<br/>
6
+ <a href="https://www.idwise.com/">idwise.com</a>
7
+ </p>
8
+
9
+ ---
10
+
11
+ [![Version][version-badge]][package]
12
+
13
+ <p align="center"><i>IDWise React Native SDK, a package having a bridge implementation which provides an ease with the integration of IDWise Native Android and iOS SDKs.</i></p>
14
+
15
+ ## Getting Started
16
+
17
+ Refer to the [getting started guide](https://docs.idwise.com/docs/integration-with-idwise) for instructions.
18
+
19
+ ## Documentation
20
+
21
+ Check the sdk and their usage in our [documentation](https://docs.idwise.com/docs/react-native-documentation).
22
+
23
+ ## Try it out
24
+
25
+ 🧑‍💻 The source code for the examples are under the [/example](/example) folder.
26
+
27
+ 📲 You can also try out components in our [demo apps](https://github.com/idwise/idwise-react-native-sdk-samples) available in the both stores Android and iOS.
28
+
29
+ ## Installation
30
+
31
+ ```sh
32
+ npm install idwise-react-native-sdk
33
+ ```
34
+
35
+ OR
36
+
37
+ ```sh
38
+ yarn add idwise-react-native-sdk
39
+ ```
40
+
41
+ <!-- badges -->
42
+
43
+ [version-badge]: https://img.shields.io/npm/v/idwise-react-native-sdk.svg?style=flat-square
44
+ [package]: https://www.npmjs.com/package/idwise-react-native-sdk
45
+
46
+ ## Contributing
47
+
48
+ See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
@@ -0,0 +1,107 @@
1
+ buildscript {
2
+ // Buildscript is evaluated before everything else so we can't use getExtOrDefault
3
+ def kotlin_version = rootProject.ext.has("kotlinVersion") ? rootProject.ext.get("kotlinVersion") : project.properties["IdwiseMobileSdk_kotlinVersion"]
4
+
5
+ repositories {
6
+ maven { url 'https://mobile-sdk.idwise.ai/releases/' }
7
+ google()
8
+ mavenCentral()
9
+ }
10
+
11
+ dependencies {
12
+ classpath "com.android.tools.build:gradle:7.2.1"
13
+ // noinspection DifferentKotlinGradleVersion
14
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
15
+ }
16
+ }
17
+
18
+ /*allprojects {
19
+ repositories {
20
+ maven { url 'https://mobile-sdk.idwise.ai/releases/' }
21
+ google()
22
+ mavenCentral()
23
+ }
24
+ }*/
25
+
26
+ def isNewArchitectureEnabled() {
27
+ return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
28
+ }
29
+
30
+ apply plugin: "com.android.library"
31
+ apply plugin: "kotlin-android"
32
+
33
+ if (isNewArchitectureEnabled()) {
34
+ apply plugin: "com.facebook.react"
35
+ }
36
+
37
+ def getExtOrDefault(name) {
38
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : project.properties["IdwiseMobileSdk_" + name]
39
+ }
40
+
41
+ def getExtOrIntegerDefault(name) {
42
+ return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["IdwiseMobileSdk_" + name]).toInteger()
43
+ }
44
+
45
+ def supportsNamespace() {
46
+ def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
47
+ def major = parsed[0].toInteger()
48
+ def minor = parsed[1].toInteger()
49
+
50
+ // Namespace support was added in 7.3.0
51
+ return (major == 7 && minor >= 3) || major >= 8
52
+ }
53
+
54
+ android {
55
+ if (supportsNamespace()) {
56
+ namespace "com.idwisemobilesdk"
57
+
58
+ sourceSets {
59
+ main {
60
+ manifest.srcFile "src/main/AndroidManifestNew.xml"
61
+ }
62
+ }
63
+ }
64
+
65
+ compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")
66
+
67
+ defaultConfig {
68
+ minSdkVersion getExtOrIntegerDefault("minSdkVersion")
69
+ targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
70
+ multiDexEnabled true
71
+ }
72
+
73
+ buildTypes {
74
+ release {
75
+ minifyEnabled false
76
+ }
77
+ }
78
+ buildFeatures {
79
+ dataBinding true
80
+ }
81
+ lintOptions {
82
+ disable "GradleCompatible"
83
+ }
84
+
85
+ compileOptions {
86
+ sourceCompatibility JavaVersion.VERSION_1_8
87
+ targetCompatibility JavaVersion.VERSION_1_8
88
+ }
89
+ }
90
+
91
+ repositories {
92
+ mavenCentral()
93
+ google()
94
+ }
95
+
96
+ def kotlin_version = getExtOrDefault("kotlinVersion")
97
+
98
+ dependencies {
99
+ // For < 0.71, this will be from the local maven repo
100
+ // For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
101
+ //noinspection GradleDynamicVersion
102
+ implementation "com.facebook.react:react-native:+"
103
+ implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
104
+ implementation 'com.google.code.gson:gson:2.10.1'
105
+ implementation 'com.idwise:android-sdk:4.5.5'
106
+ }
107
+
@@ -0,0 +1,5 @@
1
+ IdwiseMobileSdk_kotlinVersion=1.7.0
2
+ IdwiseMobileSdk_minSdkVersion=21
3
+ IdwiseMobileSdk_targetSdkVersion=31
4
+ IdwiseMobileSdk_compileSdkVersion=31
5
+ IdwiseMobileSdk_ndkversion=21.4.7075529
@@ -0,0 +1,3 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.idwisemobilesdk">
3
+ </manifest>
@@ -0,0 +1,2 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
2
+ </manifest>
@@ -0,0 +1,205 @@
1
+ package com.idwisemobilesdk
2
+
3
+ import android.graphics.Bitmap
4
+ import android.util.Base64
5
+ import androidx.annotation.Nullable
6
+ import com.facebook.react.bridge.*
7
+ import com.facebook.react.modules.core.DeviceEventManagerModule
8
+ import com.google.gson.Gson
9
+ import com.idwise.sdk.IDWise
10
+ import com.idwise.sdk.IDWiseSDKCallback
11
+ import com.idwise.sdk.IDWiseSDKStepCallback
12
+ import com.idwise.sdk.data.models.IDWiseSDKError
13
+ import com.idwise.sdk.data.models.IDWiseSDKTheme
14
+ import com.idwise.sdk.data.models.JourneyInfo
15
+ import com.idwise.sdk.data.models.StepResult
16
+ import java.io.ByteArrayOutputStream
17
+
18
+ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
19
+ ReactContextBaseJavaModule(reactContext) {
20
+
21
+ override fun getName(): String {
22
+ return NAME
23
+ }
24
+
25
+ private fun sendEvent(eventName: String, @Nullable params: WritableMap) {
26
+ reactContext.getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter::class.java)
27
+ .emit(eventName, params)
28
+ }
29
+
30
+ @ReactMethod
31
+ fun initialize(clientKey: String, theme: String) {
32
+ val idwiseTheme: IDWiseSDKTheme = try {
33
+ IDWiseSDKTheme.valueOf(theme!!)
34
+ } catch (e: Exception) {
35
+ IDWiseSDKTheme.SYSTEM_DEFAULT
36
+ }
37
+
38
+ IDWise.initialize(clientKey, idwiseTheme) { error ->
39
+ val params: WritableMap = Arguments.createMap()
40
+ error?.errorCode?.let { code -> params.putInt("errorCode", code) }
41
+ params.putString("errorMessage", error?.message)
42
+ sendEvent("onInitializeError", params)
43
+ }
44
+ }
45
+
46
+ @ReactMethod
47
+ fun startJourney(
48
+ journeyTemplateId: String,
49
+ referenceNo: String?,
50
+ locale: String
51
+ ) {
52
+ currentActivity?.let { activity ->
53
+ IDWise.startJourney(activity, journeyTemplateId, referenceNo, locale, journeyCallback)
54
+ }
55
+ }
56
+
57
+ @ReactMethod
58
+ fun startDynamicJourney(
59
+ journeyTemplateId: String,
60
+ referenceNo: String?,
61
+ locale: String
62
+ ) {
63
+ currentActivity?.let { activity ->
64
+ IDWise.startDynamicJourney(
65
+ activity, journeyTemplateId, referenceNo, locale,
66
+ journeyCallback, stepCallback
67
+ )
68
+ }
69
+ }
70
+
71
+ @ReactMethod
72
+ fun resumeDynamicJourney(
73
+ journeyTemplateId: String,
74
+ journeyId: String,
75
+ locale: String
76
+ ) {
77
+ currentActivity?.let { activity ->
78
+ IDWise.resumeDynamicJourney(
79
+ activity, journeyTemplateId, journeyId, locale,
80
+ journeyCallback, stepCallback
81
+ )
82
+ }
83
+ }
84
+
85
+ @ReactMethod
86
+ fun startStep(stepId: String) {
87
+ currentActivity?.let { activity -> IDWise.startStep(activity, stepId) }
88
+ }
89
+
90
+ @ReactMethod
91
+ fun startStepFromFileUpload(stepId: String, data: ByteArray) {
92
+ currentActivity?.let { activity -> IDWise.startStepFromFileUpload(activity, stepId, data) }
93
+ }
94
+
95
+ @ReactMethod
96
+ fun getJourneySummary(journeyId: String) {
97
+ IDWise.getJourneySummary(journeyId) { summary, error ->
98
+ val gson = Gson()
99
+ val argsMap = Arguments.createMap()
100
+
101
+ summary?.let {
102
+ argsMap.putString("summary", gson.toJson(summary))
103
+ sendEvent("onJourneySummary", argsMap)
104
+ }
105
+
106
+ error?.let {
107
+ argsMap.putString("error", gson.toJson(error))
108
+ sendEvent("onJourneySummaryError", argsMap)
109
+ }
110
+ }
111
+ }
112
+
113
+ @ReactMethod
114
+ fun unloadSDK() {
115
+ UiThreadUtil.runOnUiThread { IDWise.unloadSDK() }
116
+ }
117
+
118
+ @ReactMethod
119
+ fun addListener(eventName: String?) {
120
+ }
121
+
122
+ @ReactMethod
123
+ fun removeListeners(count: Integer?) {
124
+ }
125
+
126
+ val journeyCallback = object : IDWiseSDKCallback {
127
+ override fun onJourneyStarted(journeyInfo: JourneyInfo) {
128
+ val params: WritableMap = Arguments.createMap()
129
+ params.putString("journeyId", journeyInfo.journeyId)
130
+ sendEvent("onJourneyStarted", params)
131
+ }
132
+
133
+ override fun onJourneyResumed(journeyInfo: JourneyInfo) {
134
+ val params: WritableMap = Arguments.createMap()
135
+ params.putString("journeyId", journeyInfo.journeyId)
136
+ sendEvent("onJourneyResumed", params)
137
+ }
138
+
139
+ override fun onJourneyCompleted(journeyInfo: JourneyInfo, isCompleted: Boolean) {
140
+ val params: WritableMap = Arguments.createMap()
141
+ params.putString("journeyId", journeyInfo.journeyId)
142
+ sendEvent("onJourneyFinished", params)
143
+ }
144
+
145
+ override fun onJourneyCancelled(journeyInfo: JourneyInfo?) {
146
+ val params: WritableMap = Arguments.createMap()
147
+ params.putString("journeyId", journeyInfo?.journeyId)
148
+ sendEvent("onJourneyCancelled", params)
149
+ }
150
+
151
+ override fun onError(error: IDWiseSDKError) {
152
+ val params: WritableMap = Arguments.createMap()
153
+ params.putInt("errorCode", error.errorCode)
154
+ params.putString("errorMessage", error.message)
155
+ sendEvent("onJourneyError", params)
156
+ }
157
+ }
158
+
159
+ val stepCallback = object : IDWiseSDKStepCallback {
160
+ override fun onStepCaptured(stepId: String, bitmap: Bitmap?, croppedBitmap: Bitmap?) {
161
+ val bitmapString = convertImageToBase64String(croppedBitmap)
162
+ val params: WritableMap = Arguments.createMap()
163
+ params.putString("stepId", stepId)
164
+ params.putString("capturedImage", bitmapString)
165
+ sendEvent("onStepCaptured", params)
166
+ }
167
+
168
+ override fun onStepResult(stepId: String, stepResult: StepResult?) {
169
+ val gson = Gson()
170
+ val argsMap = Arguments.createMap()
171
+
172
+ argsMap.putString("stepId", stepId)
173
+ stepResult?.let {
174
+ argsMap.putString("stepResult", gson.toJson(stepResult))
175
+ }
176
+
177
+ sendEvent("onStepResult", argsMap)
178
+ }
179
+
180
+ override fun onStepConfirmed(stepId: String) {
181
+ /**
182
+ * No need to implement this as for latest version it's not being required.
183
+ */
184
+ }
185
+
186
+ override fun onStepCancelled(stepId: String) {
187
+ val params: WritableMap = Arguments.createMap()
188
+ params.putString("stepId", stepId)
189
+ sendEvent("onStepCancelled", params)
190
+ }
191
+ }
192
+
193
+
194
+ fun convertImageToBase64String(bitmap: Bitmap?): String {
195
+ if (bitmap == null || bitmap.isRecycled) return ""
196
+
197
+ val baos = ByteArrayOutputStream()
198
+ bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos)
199
+ val b = baos.toByteArray()
200
+ return Base64.encodeToString(b, Base64.DEFAULT)
201
+ }
202
+ companion object {
203
+ const val NAME = "IdwiseMobileSdk"
204
+ }
205
+ }
@@ -0,0 +1,17 @@
1
+ package com.idwisemobilesdk
2
+
3
+ import com.facebook.react.ReactPackage
4
+ import com.facebook.react.bridge.NativeModule
5
+ import com.facebook.react.bridge.ReactApplicationContext
6
+ import com.facebook.react.uimanager.ViewManager
7
+
8
+
9
+ class IdwiseMobileSdkPackage : ReactPackage {
10
+ override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
11
+ return listOf(IdwiseMobileSdkModule(reactContext))
12
+ }
13
+
14
+ override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
15
+ return emptyList()
16
+ }
17
+ }
@@ -0,0 +1,62 @@
1
+ require "json"
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
+ folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
+
6
+ Pod::Spec.new do |s|
7
+ s.name = "idwise-react-native-sdk"
8
+ s.version = package["version"]
9
+ s.summary = package["description"]
10
+ s.homepage = package["homepage"]
11
+ s.license = package["license"]
12
+ s.authors = package["author"]
13
+
14
+ s.platforms = { :ios => "11.0" }
15
+ s.source = { :git => "https://github.com/idwise/idwise-mobile-sdk-react-native.git", :tag => "#{s.version}" }
16
+
17
+ s.source_files = "ios/**/*.{h,m,mm,swift}"
18
+ s.static_framework = true
19
+
20
+ s.pod_target_xcconfig = {
21
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
22
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
23
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
24
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
25
+ "CODE_SIGNING_ALLOWED" => 'NO'
26
+ }
27
+
28
+
29
+ s.preserve_paths = 'ios/IDWiseSDK.xcframework/**/*'
30
+ s.xcconfig = { 'OTHER_LDFLAGS' => '-framework IDWiseSDK' }
31
+ s.vendored_frameworks = 'ios/IDWiseSDK.xcframework'
32
+ s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
33
+
34
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
35
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
36
+ if respond_to?(:install_modules_dependencies, true)
37
+ install_modules_dependencies(s)
38
+ else
39
+ s.dependency "React-Core"
40
+
41
+
42
+ # Don't install the dependencies when we run `pod install` in the old architecture.
43
+ if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
44
+ s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
45
+ s.pod_target_xcconfig = {
46
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
47
+ "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
48
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
49
+ "EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
50
+ "CODE_SIGNING_ALLOWED" => 'NO'
51
+ }
52
+ s.dependency "React-Codegen"
53
+ s.dependency "RCT-Folly"
54
+ s.dependency "RCTRequired"
55
+ s.dependency "RCTTypeSafety"
56
+ s.dependency "ReactCommon/turbomodule/core"
57
+
58
+
59
+
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>IDWiseSDK.framework/IDWiseSDK</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64</string>
12
+ <key>LibraryPath</key>
13
+ <string>IDWiseSDK.framework</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ </array>
18
+ <key>SupportedPlatform</key>
19
+ <string>ios</string>
20
+ </dict>
21
+ <dict>
22
+ <key>BinaryPath</key>
23
+ <string>IDWiseSDK.framework/IDWiseSDK</string>
24
+ <key>LibraryIdentifier</key>
25
+ <string>ios-x86_64-simulator</string>
26
+ <key>LibraryPath</key>
27
+ <string>IDWiseSDK.framework</string>
28
+ <key>SupportedArchitectures</key>
29
+ <array>
30
+ <string>x86_64</string>
31
+ </array>
32
+ <key>SupportedPlatform</key>
33
+ <string>ios</string>
34
+ <key>SupportedPlatformVariant</key>
35
+ <string>simulator</string>
36
+ </dict>
37
+ </array>
38
+ <key>CFBundlePackageType</key>
39
+ <string>XFWK</string>
40
+ <key>XCFrameworkFormatVersion</key>
41
+ <string>1.0</string>
42
+ </dict>
43
+ </plist>
@@ -0,0 +1,18 @@
1
+ //
2
+ // IDWise_ios_sdk.h
3
+ // IDWise_ios_sdk
4
+ //
5
+ // Created by Hussein Alshlash on 10.04.2021.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ //! Project version number for IDWise_ios_sdk.
11
+ FOUNDATION_EXPORT double IDWiseVersionNumber;
12
+
13
+ //! Project version string for IDWise_ios_sdk.
14
+ FOUNDATION_EXPORT const unsigned char IDWiseVersionString[];
15
+
16
+ // In this header, you should import all the public headers of your framework using statements like #import <IDWise_ios_sdk/PublicHeader.h>
17
+
18
+