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.
- package/LICENSE +20 -0
- package/README.md +48 -0
- package/android/build.gradle +107 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/AndroidManifestNew.xml +2 -0
- package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkModule.kt +205 -0
- package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkPackage.kt +17 -0
- package/idwise-react-native-sdk.podspec +62 -0
- package/ios/IDWiseSDK.xcframework/Info.plist +43 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Headers/IDWise.h +18 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.abi.json +41050 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +465 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.swiftinterface +465 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarMenuScreen.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarMenuScreen.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarView.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarView.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StepCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +978 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +115 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +4737 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +1789 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +79 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +2250 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +718 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/journey_image_config.json +95 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib/runtime.nib +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Headers/IDWise.h +18 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/MenuCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +41043 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +465 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +465 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib/runtime.nib +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarMenuScreen.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarMenuScreen.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarView.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/ProgressBarView.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/objects-13.0+.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib/runtime.nib +0 -0
- 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
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib/runtime.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/StepCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +978 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +115 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +4737 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +1789 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +79 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +2250 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +718 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
- package/ios/IDWiseSDK.xcframework/ios-x86_64-simulator/IDWiseSDK.framework/journey_image_config.json +95 -0
- package/ios/IdwiseMobileSdk-Bridging-Header.h +2 -0
- package/ios/IdwiseMobileSdk.mm +34 -0
- package/ios/IdwiseMobileSdk.swift +237 -0
- package/lib/commonjs/IDWise.js +60 -0
- package/lib/commonjs/IDWise.js.map +1 -0
- package/lib/commonjs/IDWiseConstants.js +25 -0
- package/lib/commonjs/IDWiseConstants.js.map +1 -0
- package/lib/commonjs/IDWiseEventListeners.js +75 -0
- package/lib/commonjs/IDWiseEventListeners.js.map +1 -0
- package/lib/commonjs/index.js +15 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/module/IDWise.js +54 -0
- package/lib/module/IDWise.js.map +1 -0
- package/lib/module/IDWiseConstants.js +19 -0
- package/lib/module/IDWiseConstants.js.map +1 -0
- package/lib/module/IDWiseEventListeners.js +66 -0
- package/lib/module/IDWiseEventListeners.js.map +1 -0
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -0
- package/package.json +159 -0
- package/src/IDWise.js +96 -0
- package/src/IDWiseConstants.js +22 -0
- package/src/IDWiseEventListeners.js +100 -0
- package/src/index.js +4 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
2
|
+
import { IDWiseEvents } from './IDWiseConstants';
|
|
3
|
+
const RNIDWise = NativeModules.IdwiseMobileSdk ? NativeModules.IdwiseMobileSdk : new Proxy({}, {
|
|
4
|
+
get() {
|
|
5
|
+
throw new Error(LINKING_ERROR);
|
|
6
|
+
}
|
|
7
|
+
});
|
|
8
|
+
const eventEmitter = new NativeEventEmitter(RNIDWise);
|
|
9
|
+
const setInitializeEventListeners = idwiseInitializeCallback => {
|
|
10
|
+
console.log('IDWise - setInitializeEventListeners');
|
|
11
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_INITIALIZE_ERRROR);
|
|
12
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_INITIALIZE_ERRROR, event => {
|
|
13
|
+
idwiseInitializeCallback === null || idwiseInitializeCallback === void 0 || idwiseInitializeCallback.onError(event);
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
const setJourneyEventListeners = idwiseJourneyCallback => {
|
|
17
|
+
console.log('IDWise - setJourneyEventListeners');
|
|
18
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_STARTED);
|
|
19
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_RESUMED);
|
|
20
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_FINISHED);
|
|
21
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_CANCELLED);
|
|
22
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_ERROR);
|
|
23
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_STARTED, event => {
|
|
24
|
+
idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onJourneyStarted(event);
|
|
25
|
+
});
|
|
26
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_RESUMED, event => {
|
|
27
|
+
idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onJourneyResumed(event);
|
|
28
|
+
});
|
|
29
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_FINISHED, event => {
|
|
30
|
+
idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onJourneyFinished(event);
|
|
31
|
+
});
|
|
32
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_CANCELLED, event => {
|
|
33
|
+
idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onJourneyCancelled(event);
|
|
34
|
+
});
|
|
35
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_ERROR, event => {
|
|
36
|
+
idwiseJourneyCallback === null || idwiseJourneyCallback === void 0 || idwiseJourneyCallback.onError(event);
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
const setStepEventListeners = idwiseStepCallback => {
|
|
40
|
+
console.log('IDWise - setStepEventListener');
|
|
41
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_STEP_CAPTURED);
|
|
42
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_STEP_RESULT);
|
|
43
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_STEP_CANCELLED);
|
|
44
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_CAPTURED, event => {
|
|
45
|
+
idwiseStepCallback === null || idwiseStepCallback === void 0 || idwiseStepCallback.onStepCaptured(event.stepId, event.capturedImage);
|
|
46
|
+
});
|
|
47
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_RESULT, event => {
|
|
48
|
+
idwiseStepCallback === null || idwiseStepCallback === void 0 || idwiseStepCallback.onStepResult(event.stepId, JSON.parse(event.stepResult));
|
|
49
|
+
});
|
|
50
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_CANCELLED, event => {
|
|
51
|
+
idwiseStepCallback === null || idwiseStepCallback === void 0 || idwiseStepCallback.onStepCancelled(event);
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
const setJourneySummaryEventListener = idwiseJourneySummaryCallback => {
|
|
55
|
+
console.log('IDWise - setJourneySummaryEventListener');
|
|
56
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_SUMMARY);
|
|
57
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR);
|
|
58
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_SUMMARY, event => {
|
|
59
|
+
idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 || idwiseJourneySummaryCallback.onJourneySummary(JSON.parse(event.summary));
|
|
60
|
+
});
|
|
61
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR, event => {
|
|
62
|
+
idwiseJourneySummaryCallback === null || idwiseJourneySummaryCallback === void 0 || idwiseJourneySummaryCallback.onError(JSON.parse(event.error));
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
export { setInitializeEventListeners, setJourneyEventListeners, setJourneySummaryEventListener, setStepEventListeners };
|
|
66
|
+
//# sourceMappingURL=IDWiseEventListeners.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeEventEmitter","NativeModules","IDWiseEvents","RNIDWise","IdwiseMobileSdk","Proxy","get","Error","LINKING_ERROR","eventEmitter","setInitializeEventListeners","idwiseInitializeCallback","console","log","removeAllListeners","EVENT_INITIALIZE_ERRROR","addListener","event","onError","setJourneyEventListeners","idwiseJourneyCallback","EVENT_JOURNEY_STARTED","EVENT_JOURNEY_RESUMED","EVENT_JOURNEY_FINISHED","EVENT_JOURNEY_CANCELLED","EVENT_JOURNEY_ERROR","onJourneyStarted","onJourneyResumed","onJourneyFinished","onJourneyCancelled","setStepEventListeners","idwiseStepCallback","EVENT_STEP_CAPTURED","EVENT_STEP_RESULT","EVENT_STEP_CANCELLED","onStepCaptured","stepId","capturedImage","onStepResult","JSON","parse","stepResult","onStepCancelled","setJourneySummaryEventListener","idwiseJourneySummaryCallback","EVENT_JOURNEY_SUMMARY","EVENT_JOURNEY_SUMMARY_ERROR","onJourneySummary","summary","error"],"sourceRoot":"../../src","sources":["IDWiseEventListeners.js"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAChE,SAASC,YAAY,QAAQ,mBAAmB;AAEhD,MAAMC,QAAQ,GAAGF,aAAa,CAACG,eAAe,GAC1CH,aAAa,CAACG,eAAe,GAC7B,IAAIC,KAAK,CACP,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACC,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAEL,MAAMC,YAAY,GAAG,IAAIT,kBAAkB,CAACG,QAAQ,CAAC;AAErD,MAAMO,2BAA2B,GAAIC,wBAAwB,IAAK;EAChEC,OAAO,CAACC,GAAG,CAAC,sCAAsC,CAAC;EACnDJ,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAACa,uBAAuB,CAAC;EAErEN,YAAY,CAACO,WAAW,CAACd,YAAY,CAACa,uBAAuB,EAAGE,KAAK,IAAK;IACxEN,wBAAwB,aAAxBA,wBAAwB,eAAxBA,wBAAwB,CAAEO,OAAO,CAACD,KAAK,CAAC;EAC1C,CAAC,CAAC;AACJ,CAAC;AAED,MAAME,wBAAwB,GAAIC,qBAAqB,IAAK;EAC1DR,OAAO,CAACC,GAAG,CAAC,mCAAmC,CAAC;EAChDJ,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAACmB,qBAAqB,CAAC;EACnEZ,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAACoB,qBAAqB,CAAC;EACnEb,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAACqB,sBAAsB,CAAC;EACpEd,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAACsB,uBAAuB,CAAC;EACrEf,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAACuB,mBAAmB,CAAC;EAEjEhB,YAAY,CAACO,WAAW,CAACd,YAAY,CAACmB,qBAAqB,EAAGJ,KAAK,IAAK;IACtEG,qBAAqB,aAArBA,qBAAqB,eAArBA,qBAAqB,CAAEM,gBAAgB,CAACT,KAAK,CAAC;EAChD,CAAC,CAAC;EAEFR,YAAY,CAACO,WAAW,CAACd,YAAY,CAACoB,qBAAqB,EAAGL,KAAK,IAAK;IACtEG,qBAAqB,aAArBA,qBAAqB,eAArBA,qBAAqB,CAAEO,gBAAgB,CAACV,KAAK,CAAC;EAChD,CAAC,CAAC;EAEFR,YAAY,CAACO,WAAW,CAACd,YAAY,CAACqB,sBAAsB,EAAGN,KAAK,IAAK;IACvEG,qBAAqB,aAArBA,qBAAqB,eAArBA,qBAAqB,CAAEQ,iBAAiB,CAACX,KAAK,CAAC;EACjD,CAAC,CAAC;EAEFR,YAAY,CAACO,WAAW,CAACd,YAAY,CAACsB,uBAAuB,EAAGP,KAAK,IAAK;IACxEG,qBAAqB,aAArBA,qBAAqB,eAArBA,qBAAqB,CAAES,kBAAkB,CAACZ,KAAK,CAAC;EAClD,CAAC,CAAC;EAEFR,YAAY,CAACO,WAAW,CAACd,YAAY,CAACuB,mBAAmB,EAAGR,KAAK,IAAK;IACpEG,qBAAqB,aAArBA,qBAAqB,eAArBA,qBAAqB,CAAEF,OAAO,CAACD,KAAK,CAAC;EACvC,CAAC,CAAC;AACJ,CAAC;AAED,MAAMa,qBAAqB,GAAIC,kBAAkB,IAAK;EACpDnB,OAAO,CAACC,GAAG,CAAC,+BAA+B,CAAC;EAC5CJ,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAAC8B,mBAAmB,CAAC;EACjEvB,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAAC+B,iBAAiB,CAAC;EAC/DxB,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAACgC,oBAAoB,CAAC;EAElEzB,YAAY,CAACO,WAAW,CAACd,YAAY,CAAC8B,mBAAmB,EAAGf,KAAK,IAAK;IACpEc,kBAAkB,aAAlBA,kBAAkB,eAAlBA,kBAAkB,CAAEI,cAAc,CAAClB,KAAK,CAACmB,MAAM,EAAEnB,KAAK,CAACoB,aAAa,CAAC;EACvE,CAAC,CAAC;EAEF5B,YAAY,CAACO,WAAW,CAACd,YAAY,CAAC+B,iBAAiB,EAAGhB,KAAK,IAAK;IAClEc,kBAAkB,aAAlBA,kBAAkB,eAAlBA,kBAAkB,CAAEO,YAAY,CAC9BrB,KAAK,CAACmB,MAAM,EACZG,IAAI,CAACC,KAAK,CAACvB,KAAK,CAACwB,UAAU,CAC7B,CAAC;EACH,CAAC,CAAC;EAEFhC,YAAY,CAACO,WAAW,CAACd,YAAY,CAACgC,oBAAoB,EAAGjB,KAAK,IAAK;IACrEc,kBAAkB,aAAlBA,kBAAkB,eAAlBA,kBAAkB,CAAEW,eAAe,CAACzB,KAAK,CAAC;EAC5C,CAAC,CAAC;AACJ,CAAC;AAED,MAAM0B,8BAA8B,GAAIC,4BAA4B,IAAK;EACvEhC,OAAO,CAACC,GAAG,CAAC,yCAAyC,CAAC;EACtDJ,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAAC2C,qBAAqB,CAAC;EACnEpC,YAAY,CAACK,kBAAkB,CAACZ,YAAY,CAAC4C,2BAA2B,CAAC;EAEzErC,YAAY,CAACO,WAAW,CAACd,YAAY,CAAC2C,qBAAqB,EAAG5B,KAAK,IAAK;IACtE2B,4BAA4B,aAA5BA,4BAA4B,eAA5BA,4BAA4B,CAAEG,gBAAgB,CAACR,IAAI,CAACC,KAAK,CAACvB,KAAK,CAAC+B,OAAO,CAAC,CAAC;EAC3E,CAAC,CAAC;EAEFvC,YAAY,CAACO,WAAW,CACtBd,YAAY,CAAC4C,2BAA2B,EACvC7B,KAAK,IAAK;IACT2B,4BAA4B,aAA5BA,4BAA4B,eAA5BA,4BAA4B,CAAE1B,OAAO,CAACqB,IAAI,CAACC,KAAK,CAACvB,KAAK,CAACgC,KAAK,CAAC,CAAC;EAChE,CACF,CAAC;AACH,CAAC;AAED,SACEvC,2BAA2B,EAC3BS,wBAAwB,EACxBwB,8BAA8B,EAC9Bb,qBAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["IDWise","IDWiseSDKTheme"],"sourceRoot":"../../src","sources":["index.js"],"mappings":"AAAA,OAAO,KAAKA,MAAM,MAAM,UAAU;AAClC,SAASC,cAAc,QAAQ,mBAAmB;AAElD,eAAe;EAAED,MAAM;EAAEC;AAAe,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "idwise-react-native-sdk",
|
|
3
|
+
"version": "4.5.5",
|
|
4
|
+
"description": "IDWise React Native Bridge",
|
|
5
|
+
"main": "lib/commonjs/index",
|
|
6
|
+
"module": "lib/module/index",
|
|
7
|
+
"types": "lib/typescript/src/index.d.ts",
|
|
8
|
+
"react-native": "src/index",
|
|
9
|
+
"source": "src/index",
|
|
10
|
+
"files": [
|
|
11
|
+
"src",
|
|
12
|
+
"lib",
|
|
13
|
+
"android",
|
|
14
|
+
"ios",
|
|
15
|
+
"cpp",
|
|
16
|
+
"*.podspec",
|
|
17
|
+
"!ios/build",
|
|
18
|
+
"!android/build",
|
|
19
|
+
"!android/gradle",
|
|
20
|
+
"!android/gradlew",
|
|
21
|
+
"!android/gradlew.bat",
|
|
22
|
+
"!android/local.properties",
|
|
23
|
+
"!**/__tests__",
|
|
24
|
+
"!**/__fixtures__",
|
|
25
|
+
"!**/__mocks__",
|
|
26
|
+
"!**/.*"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"example": "yarn workspace idwise-react-native-sdk-example",
|
|
30
|
+
"test": "jest",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib",
|
|
33
|
+
"prepare": "bob build",
|
|
34
|
+
"release": "release-it"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"react-native",
|
|
38
|
+
"ios",
|
|
39
|
+
"android"
|
|
40
|
+
],
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/idwise/idwise-mobile-sdk-react-native"
|
|
44
|
+
},
|
|
45
|
+
"author": "smsibtainrn <smsibtainrn@gmail.com> (https://github.com/smsibtainrn)",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/idwise/idwise-mobile-sdk-react-native/issues"
|
|
49
|
+
},
|
|
50
|
+
"homepage": "https://github.com/idwise/idwise-mobile-sdk-react-native#readme",
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"registry": "https://registry.npmjs.org/"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
56
|
+
"@evilmartians/lefthook": "^1.5.0",
|
|
57
|
+
"@react-native/eslint-config": "^0.72.2",
|
|
58
|
+
"@release-it/conventional-changelog": "^5.0.0",
|
|
59
|
+
"@types/jest": "^28.1.2",
|
|
60
|
+
"@types/react": "~17.0.21",
|
|
61
|
+
"@types/react-native": "0.70.0",
|
|
62
|
+
"commitlint": "^17.0.2",
|
|
63
|
+
"del-cli": "^5.0.0",
|
|
64
|
+
"eslint": "^8.4.1",
|
|
65
|
+
"eslint-config-prettier": "^8.5.0",
|
|
66
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
67
|
+
"jest": "^28.1.1",
|
|
68
|
+
"pod-install": "^0.1.0",
|
|
69
|
+
"prettier": "^2.0.5",
|
|
70
|
+
"react": "18.2.0",
|
|
71
|
+
"react-native": "0.72.6",
|
|
72
|
+
"react-native-builder-bob": "^0.20.0",
|
|
73
|
+
"release-it": "^15.0.0",
|
|
74
|
+
"turbo": "^1.10.7",
|
|
75
|
+
"typescript": "^5.0.2"
|
|
76
|
+
},
|
|
77
|
+
"resolutions": {
|
|
78
|
+
"@types/react": "17.0.21"
|
|
79
|
+
},
|
|
80
|
+
"peerDependencies": {
|
|
81
|
+
"react": "*",
|
|
82
|
+
"react-native": "*"
|
|
83
|
+
},
|
|
84
|
+
"workspaces": [
|
|
85
|
+
"example"
|
|
86
|
+
],
|
|
87
|
+
"packageManager": "yarn@3.6.1",
|
|
88
|
+
"engines": {
|
|
89
|
+
"node": ">= 18.0.0"
|
|
90
|
+
},
|
|
91
|
+
"jest": {
|
|
92
|
+
"preset": "react-native",
|
|
93
|
+
"modulePathIgnorePatterns": [
|
|
94
|
+
"<rootDir>/example/node_modules",
|
|
95
|
+
"<rootDir>/lib/"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"release-it": {
|
|
99
|
+
"git": {
|
|
100
|
+
"commitMessage": "chore: release ${version}",
|
|
101
|
+
"tagName": "v${version}"
|
|
102
|
+
},
|
|
103
|
+
"npm": {
|
|
104
|
+
"publish": true
|
|
105
|
+
},
|
|
106
|
+
"github": {
|
|
107
|
+
"release": true
|
|
108
|
+
},
|
|
109
|
+
"plugins": {
|
|
110
|
+
"@release-it/conventional-changelog": {
|
|
111
|
+
"preset": "angular"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"eslintConfig": {
|
|
116
|
+
"root": true,
|
|
117
|
+
"extends": [
|
|
118
|
+
"@react-native",
|
|
119
|
+
"prettier"
|
|
120
|
+
],
|
|
121
|
+
"rules": {
|
|
122
|
+
"prettier/prettier": [
|
|
123
|
+
"error",
|
|
124
|
+
{
|
|
125
|
+
"quoteProps": "consistent",
|
|
126
|
+
"singleQuote": true,
|
|
127
|
+
"tabWidth": 2,
|
|
128
|
+
"trailingComma": "es5",
|
|
129
|
+
"useTabs": false
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"eslintIgnore": [
|
|
135
|
+
"node_modules/",
|
|
136
|
+
"lib/"
|
|
137
|
+
],
|
|
138
|
+
"prettier": {
|
|
139
|
+
"quoteProps": "consistent",
|
|
140
|
+
"singleQuote": true,
|
|
141
|
+
"tabWidth": 2,
|
|
142
|
+
"trailingComma": "es5",
|
|
143
|
+
"useTabs": false
|
|
144
|
+
},
|
|
145
|
+
"react-native-builder-bob": {
|
|
146
|
+
"source": "src",
|
|
147
|
+
"output": "lib",
|
|
148
|
+
"targets": [
|
|
149
|
+
"commonjs",
|
|
150
|
+
"module",
|
|
151
|
+
[
|
|
152
|
+
"typescript",
|
|
153
|
+
{
|
|
154
|
+
"project": "tsconfig.build.json"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
}
|
package/src/IDWise.js
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { NativeModules, Platform } from 'react-native';
|
|
2
|
+
import {
|
|
3
|
+
setInitializeEventListeners,
|
|
4
|
+
setJourneyEventListeners,
|
|
5
|
+
setJourneySummaryEventListener,
|
|
6
|
+
setStepEventListeners,
|
|
7
|
+
} from './IDWiseEventListeners';
|
|
8
|
+
|
|
9
|
+
const LINKING_ERROR =
|
|
10
|
+
`The package 'idwise-mobile-sdk' doesn't seem to be linked. Make sure: \n\n` +
|
|
11
|
+
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
12
|
+
'- You rebuilt the app after installing the package\n' +
|
|
13
|
+
'- You are not using Expo Go\n';
|
|
14
|
+
|
|
15
|
+
const RNIDWise = NativeModules.IdwiseMobileSdk
|
|
16
|
+
? NativeModules.IdwiseMobileSdk
|
|
17
|
+
: new Proxy(
|
|
18
|
+
{},
|
|
19
|
+
{
|
|
20
|
+
get() {
|
|
21
|
+
throw new Error(LINKING_ERROR);
|
|
22
|
+
},
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
const initialize = (clientKey, theme, callback) => {
|
|
27
|
+
console.log('IDWise - initialize');
|
|
28
|
+
setInitializeEventListeners(callback);
|
|
29
|
+
|
|
30
|
+
RNIDWise.initialize(clientKey, theme);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const startJourney = (
|
|
34
|
+
journeyDefinitionId,
|
|
35
|
+
referenceNo,
|
|
36
|
+
locale,
|
|
37
|
+
journeyCallback
|
|
38
|
+
) => {
|
|
39
|
+
console.log('IDWise - startJourney');
|
|
40
|
+
setJourneyEventListeners(journeyCallback);
|
|
41
|
+
setStepEventListeners(null);
|
|
42
|
+
|
|
43
|
+
RNIDWise.startJourney(journeyDefinitionId, referenceNo, locale);
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const startDynamicJourney = (
|
|
47
|
+
journeyDefinitionId,
|
|
48
|
+
referenceNo,
|
|
49
|
+
locale,
|
|
50
|
+
journeyCallback,
|
|
51
|
+
stepCallback
|
|
52
|
+
) => {
|
|
53
|
+
console.log('IDWise - startDynamicJourney');
|
|
54
|
+
setJourneyEventListeners(journeyCallback);
|
|
55
|
+
setStepEventListeners(stepCallback);
|
|
56
|
+
|
|
57
|
+
RNIDWise.startDynamicJourney(journeyDefinitionId, referenceNo, locale);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const resumeDynamicJourney = (
|
|
61
|
+
journeyDefinitionId,
|
|
62
|
+
journeyId,
|
|
63
|
+
locale,
|
|
64
|
+
journeyCallback,
|
|
65
|
+
stepCallback
|
|
66
|
+
) => {
|
|
67
|
+
console.log('IDWise - resumeDynamicJourney');
|
|
68
|
+
setJourneyEventListeners(journeyCallback);
|
|
69
|
+
setStepEventListeners(stepCallback);
|
|
70
|
+
|
|
71
|
+
RNIDWise.resumeDynamicJourney(journeyDefinitionId, journeyId, locale);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const startStep = (stepId) => RNIDWise.startStep(stepId);
|
|
75
|
+
|
|
76
|
+
const getJourneySummary = (journeyId, callback) => {
|
|
77
|
+
console.log('IDWise - getJourneySummary');
|
|
78
|
+
setJourneySummaryEventListener(callback);
|
|
79
|
+
|
|
80
|
+
RNIDWise.getJourneySummary(journeyId);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
const unloadSDK = () => {
|
|
84
|
+
console.log('IDWise - unloadSDK');
|
|
85
|
+
RNIDWise.unloadSDK();
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const IDWise = {
|
|
89
|
+
initialize,
|
|
90
|
+
startJourney,
|
|
91
|
+
startDynamicJourney,
|
|
92
|
+
resumeDynamicJourney,
|
|
93
|
+
startStep,
|
|
94
|
+
getJourneySummary,
|
|
95
|
+
unloadSDK,
|
|
96
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const IDWiseEvents = {
|
|
2
|
+
EVENT_INITIALIZE_ERRROR: 'onInitializeError',
|
|
3
|
+
|
|
4
|
+
EVENT_JOURNEY_STARTED: 'onJourneyStarted',
|
|
5
|
+
EVENT_JOURNEY_RESUMED: 'onJourneyResumed',
|
|
6
|
+
EVENT_JOURNEY_FINISHED: 'onJourneyFinished',
|
|
7
|
+
EVENT_JOURNEY_CANCELLED: 'onJourneyCancelled',
|
|
8
|
+
EVENT_JOURNEY_ERROR: 'onJourneyError',
|
|
9
|
+
|
|
10
|
+
EVENT_JOURNEY_SUMMARY: 'onJourneySummary',
|
|
11
|
+
EVENT_JOURNEY_SUMMARY_ERROR: 'onJourneySummaryError',
|
|
12
|
+
|
|
13
|
+
EVENT_STEP_CAPTURED: 'onStepCaptured',
|
|
14
|
+
EVENT_STEP_RESULT: 'onStepResult',
|
|
15
|
+
EVENT_STEP_CANCELLED: 'onStepCancelled',
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export const IDWiseSDKTheme = {
|
|
19
|
+
LIGHT: 'LIGHT',
|
|
20
|
+
DARK: 'DARK',
|
|
21
|
+
SYSTEM_DEFAULT: 'SYSTEM_DEFAULT',
|
|
22
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
2
|
+
import { IDWiseEvents } from './IDWiseConstants';
|
|
3
|
+
|
|
4
|
+
const RNIDWise = NativeModules.IdwiseMobileSdk
|
|
5
|
+
? NativeModules.IdwiseMobileSdk
|
|
6
|
+
: new Proxy(
|
|
7
|
+
{},
|
|
8
|
+
{
|
|
9
|
+
get() {
|
|
10
|
+
throw new Error(LINKING_ERROR);
|
|
11
|
+
},
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
const eventEmitter = new NativeEventEmitter(RNIDWise);
|
|
16
|
+
|
|
17
|
+
const setInitializeEventListeners = (idwiseInitializeCallback) => {
|
|
18
|
+
console.log('IDWise - setInitializeEventListeners');
|
|
19
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_INITIALIZE_ERRROR);
|
|
20
|
+
|
|
21
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_INITIALIZE_ERRROR, (event) => {
|
|
22
|
+
idwiseInitializeCallback?.onError(event);
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
const setJourneyEventListeners = (idwiseJourneyCallback) => {
|
|
27
|
+
console.log('IDWise - setJourneyEventListeners');
|
|
28
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_STARTED);
|
|
29
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_RESUMED);
|
|
30
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_FINISHED);
|
|
31
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_CANCELLED);
|
|
32
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_ERROR);
|
|
33
|
+
|
|
34
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_STARTED, (event) => {
|
|
35
|
+
idwiseJourneyCallback?.onJourneyStarted(event);
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_RESUMED, (event) => {
|
|
39
|
+
idwiseJourneyCallback?.onJourneyResumed(event);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_FINISHED, (event) => {
|
|
43
|
+
idwiseJourneyCallback?.onJourneyFinished(event);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_CANCELLED, (event) => {
|
|
47
|
+
idwiseJourneyCallback?.onJourneyCancelled(event);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_ERROR, (event) => {
|
|
51
|
+
idwiseJourneyCallback?.onError(event);
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
const setStepEventListeners = (idwiseStepCallback) => {
|
|
56
|
+
console.log('IDWise - setStepEventListener');
|
|
57
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_STEP_CAPTURED);
|
|
58
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_STEP_RESULT);
|
|
59
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_STEP_CANCELLED);
|
|
60
|
+
|
|
61
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_CAPTURED, (event) => {
|
|
62
|
+
idwiseStepCallback?.onStepCaptured(event.stepId, event.capturedImage);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_RESULT, (event) => {
|
|
66
|
+
idwiseStepCallback?.onStepResult(
|
|
67
|
+
event.stepId,
|
|
68
|
+
JSON.parse(event.stepResult)
|
|
69
|
+
);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_STEP_CANCELLED, (event) => {
|
|
73
|
+
idwiseStepCallback?.onStepCancelled(event);
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const setJourneySummaryEventListener = (idwiseJourneySummaryCallback) => {
|
|
78
|
+
console.log('IDWise - setJourneySummaryEventListener');
|
|
79
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_SUMMARY);
|
|
80
|
+
eventEmitter.removeAllListeners(IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR);
|
|
81
|
+
|
|
82
|
+
eventEmitter.addListener(IDWiseEvents.EVENT_JOURNEY_SUMMARY, (event) => {
|
|
83
|
+
idwiseJourneySummaryCallback?.onJourneySummary(JSON.parse(event.summary));
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
eventEmitter.addListener(
|
|
87
|
+
IDWiseEvents.EVENT_JOURNEY_SUMMARY_ERROR,
|
|
88
|
+
(event) => {
|
|
89
|
+
idwiseJourneySummaryCallback?.onError(JSON.parse(event.error));
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
setInitializeEventListeners,
|
|
96
|
+
setJourneyEventListeners,
|
|
97
|
+
setJourneySummaryEventListener,
|
|
98
|
+
setStepEventListeners
|
|
99
|
+
};
|
|
100
|
+
|
package/src/index.js
ADDED