idwise-react-native-sdk 5.5.5 → 5.6.2
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/IdwiseReactNativeSdk.podspec +33 -0
- package/LICENSE +1 -1
- package/android/build.gradle +34 -54
- package/android/gradle.properties +6 -6
- package/android/src/main/AndroidManifest.xml +1 -2
- package/android/src/main/java/com/{idwisemobilesdk/IdwiseMobileSdkModule.kt → idwisereactnativesdk/IdwiseReactNativeSdkModule.kt} +47 -36
- package/android/src/main/java/com/idwisereactnativesdk/IdwiseReactNativeSdkPackage.kt +33 -0
- package/ios/IdwiseReactNativeSdk.h +5 -0
- package/ios/{IdwiseMobileSdk.mm → IdwiseReactNativeSdk.mm} +22 -1
- package/ios/{IdwiseMobileSdk.swift → IdwiseReactNativeSdk.swift} +17 -17
- package/lib/module/ApplicantDetailsKeys.js +2 -0
- package/lib/module/ApplicantDetailsKeys.js.map +1 -1
- package/lib/module/IDWise.js +5 -2
- package/lib/module/IDWise.js.map +1 -1
- package/lib/module/IDWiseConstants.js +8 -0
- package/lib/module/IDWiseConstants.js.map +1 -1
- package/lib/module/IDWiseDynamic.js +4 -2
- package/lib/module/IDWiseDynamic.js.map +1 -1
- package/lib/module/IDWiseEventListeners.js +22 -16
- package/lib/module/IDWiseEventListeners.js.map +1 -1
- package/lib/module/NativeIdwiseReactNativeSdk.js +5 -0
- package/lib/module/NativeIdwiseReactNativeSdk.js.map +1 -0
- package/lib/module/index.d.js +10 -0
- package/lib/module/index.d.js.map +1 -0
- package/lib/module/index.js +6 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/package.json +1 -0
- package/package.json +63 -35
- package/src/IDWise.js +3 -2
- package/src/IDWiseDynamic.js +2 -2
- package/src/IDWiseEventListeners.js +8 -2
- package/src/NativeIdwiseReactNativeSdk.ts +20 -0
- package/src/index.d.ts +125 -0
- package/tsconfig.json +7 -8
- package/android/src/main/AndroidManifestNew.xml +0 -2
- package/android/src/main/java/com/idwisemobilesdk/IdwiseMobileSdkPackage.kt +0 -17
- package/idwise-react-native-sdk.podspec +0 -63
- package/ios/IDWiseSDK.xcframework/Info.plist +0 -48
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +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 +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 +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 +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 +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.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 +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 +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Headers/IDWise.h +0 -18
- 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 +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 +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 +0 -31242
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -660
- 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 +0 -660
- 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 +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarMenuScreen.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/ProgressBarView.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 +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/StepCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/_CodeSignature/CodeResources +0 -868
- 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 +0 -118
- 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 +0 -4737
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +0 -1789
- 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 +0 -82
- 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 +0 -2250
- package/ios/IDWiseSDK.xcframework/ios-arm64/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +0 -718
- 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 +0 -96
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/DWARF/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/IDWiseSDK.yml +0 -5220
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/aarch64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseSDK.xcframework/ios-arm64/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/aarch64/ShieldFraud.swiftinterface +0 -170
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Assets.car +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BulletCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/BulletCellRTL.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentTypeTableViewCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Headers/IDWise.h +0 -18
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/MenuCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/MenuWidgetView.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -31242
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -31242
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Modules/IDWiseSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -660
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Mulish-Bold.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Mulish-Light.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/Mulish-Regular.ttf +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProgressBarMenuScreen.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/ProgressBarView.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/StepCell.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/_CodeSignature/CodeResources +0 -923
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/metadata.json +0 -118
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.net +0 -4737
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.shape +0 -1789
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/metadata.json +0 -82
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.net +0 -2250
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.shape +0 -718
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/en.lproj/Localizable.strings +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/IDWiseSDK.framework/journey_image_config.json +0 -96
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/DWARF/IDWiseSDK +0 -0
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/IDWiseSDK.yml +0 -5204
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/IDWiseSDK.yml +0 -5112
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/aarch64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/aarch64/ShieldFraud.swiftinterface +0 -170
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/x86_64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseSDK.framework.dSYM/Contents/Resources/Swift/x86_64/ShieldFraud.swiftinterface +0 -170
- package/lib/commonjs/ApplicantDetailsKeys.js +0 -12
- package/lib/commonjs/ApplicantDetailsKeys.js.map +0 -1
- package/lib/commonjs/IDWise.js +0 -44
- package/lib/commonjs/IDWise.js.map +0 -1
- package/lib/commonjs/IDWiseConstants.js +0 -27
- package/lib/commonjs/IDWiseConstants.js.map +0 -1
- package/lib/commonjs/IDWiseDynamic.js +0 -65
- package/lib/commonjs/IDWiseDynamic.js.map +0 -1
- package/lib/commonjs/IDWiseEventListeners.js +0 -88
- package/lib/commonjs/IDWiseEventListeners.js.map +0 -1
- package/lib/commonjs/index.js +0 -17
- package/lib/commonjs/index.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
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 'IDWise', '5.6.1'
|
|
22
|
+
s.pod_target_xcconfig = {
|
|
23
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
24
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
25
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
|
26
|
+
#"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
|
|
27
|
+
"CODE_SIGNING_ALLOWED" => 'NO',
|
|
28
|
+
'DEFINES_MODULE' => 'YES',
|
|
29
|
+
'SWIFT_VERSION' => '5.0'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
install_modules_dependencies(s)
|
|
33
|
+
end
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
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
|
package/android/build.gradle
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
1
|
buildscript {
|
|
5
|
-
|
|
6
|
-
|
|
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
7
|
google()
|
|
@@ -12,58 +10,24 @@ buildscript {
|
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
dependencies {
|
|
15
|
-
classpath "com.android.tools.build:gradle:7.2
|
|
13
|
+
classpath "com.android.tools.build:gradle:8.7.2"
|
|
16
14
|
// noinspection DifferentKotlinGradleVersion
|
|
17
|
-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$
|
|
15
|
+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
|
|
18
16
|
}
|
|
19
17
|
}
|
|
20
18
|
|
|
21
|
-
allprojects {
|
|
22
|
-
repositories {
|
|
23
|
-
google()
|
|
24
|
-
mavenCentral()
|
|
25
|
-
maven { url 'https://mobile-sdk.idwise.ai/releases/' }
|
|
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
|
-
|
|
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["
|
|
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
|
-
|
|
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,27 +37,40 @@ 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
|
-
|
|
82
|
-
dataBinding true
|
|
83
|
-
}
|
|
50
|
+
|
|
84
51
|
lintOptions {
|
|
85
52
|
disable "GradleCompatible"
|
|
86
53
|
}
|
|
87
54
|
|
|
88
55
|
compileOptions {
|
|
89
|
-
sourceCompatibility JavaVersion.
|
|
90
|
-
targetCompatibility JavaVersion.
|
|
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()
|
|
73
|
+
|
|
97
74
|
maven { url 'https://mobile-sdk.idwise.ai/releases/' }
|
|
98
75
|
}
|
|
99
76
|
|
|
@@ -101,13 +78,16 @@ def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
|
101
78
|
def idwise_sdk_version =project.properties["idwise_sdk_version"]
|
|
102
79
|
|
|
103
80
|
dependencies {
|
|
104
|
-
|
|
105
|
-
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
106
|
-
//noinspection GradleDynamicVersion
|
|
107
|
-
implementation "com.facebook.react:react-native:+"
|
|
81
|
+
implementation "com.facebook.react:react-android"
|
|
108
82
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
109
|
-
implementation 'com.google.code.gson:gson:2.10.1'
|
|
110
83
|
|
|
84
|
+
implementation "com.fasterxml.jackson.core:jackson-databind:2.17.0"
|
|
85
|
+
|
|
111
86
|
implementation "com.idwise:android-sdk:$idwise_sdk_version"
|
|
112
87
|
}
|
|
113
88
|
|
|
89
|
+
react {
|
|
90
|
+
jsRootDir = file("../src/")
|
|
91
|
+
libraryName = "IdwiseReactNativeSdk"
|
|
92
|
+
codegenJavaPackageName = "com.idwisereactnativesdk"
|
|
93
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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.
|
|
7
|
+
idwise_sdk_version=5.6.3
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
package com.
|
|
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
|
|
5
8
|
import androidx.annotation.Nullable
|
|
6
9
|
import com.facebook.react.bridge.*
|
|
7
10
|
import com.facebook.react.modules.core.DeviceEventManagerModule
|
|
8
|
-
import com.
|
|
11
|
+
import com.fasterxml.jackson.databind.ObjectMapper
|
|
9
12
|
import com.idwise.sdk.IDWise
|
|
10
13
|
import com.idwise.sdk.IDWiseDynamic
|
|
11
14
|
import com.idwise.sdk.IDWiseJourneyCallbacks
|
|
@@ -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
|
-
|
|
17
|
-
|
|
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) {
|
|
@@ -45,14 +50,14 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
|
|
|
45
50
|
|
|
46
51
|
IDWise.initialize(clientKey, idwiseTheme) { error ->
|
|
47
52
|
val params: WritableMap = Arguments.createMap()
|
|
48
|
-
params.putString("data",
|
|
53
|
+
params.putString("data",ObjectMapper().writeValueAsString(error))
|
|
49
54
|
sendEvent("onInitializeError", params)
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
@ReactMethod
|
|
54
|
-
fun startJourney(
|
|
55
|
-
|
|
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=
|
|
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,32 +131,32 @@ 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
|
+
|
|
143
148
|
val argsMap = Arguments.createMap()
|
|
144
149
|
|
|
145
150
|
val summaryResponse = JourneySummaryExposed(summary,error)
|
|
146
151
|
|
|
147
|
-
argsMap.putString("data",
|
|
152
|
+
argsMap.putString("data", ObjectMapper().writeValueAsString(summaryResponse))
|
|
148
153
|
sendEvent("onJourneySummary", argsMap)
|
|
149
154
|
|
|
150
155
|
}
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
@ReactMethod
|
|
154
|
-
fun unloadSDK() {
|
|
159
|
+
override fun unloadSDK() {
|
|
155
160
|
UiThreadUtil.runOnUiThread { IDWiseDynamic.unloadSDK() }
|
|
156
161
|
}
|
|
157
162
|
|
|
@@ -167,37 +172,37 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
|
|
|
167
172
|
override fun onJourneyStarted(journeyInfo: JourneyStartedInfo) {
|
|
168
173
|
val params: WritableMap = Arguments.createMap()
|
|
169
174
|
|
|
170
|
-
params.putString("data",
|
|
175
|
+
params.putString("data", ObjectMapper().writeValueAsString(journeyInfo))
|
|
171
176
|
sendEvent("onJourneyStarted", params)
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
override fun onJourneyResumed(journeyInfo: JourneyResumedInfo) {
|
|
175
180
|
val params: WritableMap = Arguments.createMap()
|
|
176
|
-
params.putString("data",
|
|
181
|
+
params.putString("data", ObjectMapper().writeValueAsString(journeyInfo))
|
|
177
182
|
sendEvent("onJourneyResumed", params)
|
|
178
183
|
}
|
|
179
184
|
|
|
180
185
|
override fun onJourneyCompleted(journeyInfo: JourneyCompletedInfo) {
|
|
181
186
|
val params: WritableMap = Arguments.createMap()
|
|
182
|
-
params.putString("data",
|
|
187
|
+
params.putString("data", ObjectMapper().writeValueAsString(journeyInfo))
|
|
183
188
|
sendEvent("onJourneyCompleted", params)
|
|
184
189
|
}
|
|
185
190
|
|
|
186
191
|
override fun onJourneyBlocked(journeyInfo: JourneyBlockedInfo) {
|
|
187
192
|
val params: WritableMap = Arguments.createMap()
|
|
188
|
-
params.putString("data",
|
|
193
|
+
params.putString("data", ObjectMapper().writeValueAsString(journeyInfo))
|
|
189
194
|
sendEvent("onJourneyBlocked", params)
|
|
190
195
|
}
|
|
191
196
|
|
|
192
197
|
override fun onJourneyCancelled(journeyInfo: JourneyCancelledInfo) {
|
|
193
198
|
val params: WritableMap = Arguments.createMap()
|
|
194
|
-
params.putString("data",
|
|
199
|
+
params.putString("data", ObjectMapper().writeValueAsString(journeyInfo))
|
|
195
200
|
sendEvent("onJourneyCancelled", params)
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
override fun onError(error: IDWiseError) {
|
|
199
204
|
val params: WritableMap = Arguments.createMap()
|
|
200
|
-
params.putString("data",
|
|
205
|
+
params.putString("data", ObjectMapper().writeValueAsString(error))
|
|
201
206
|
sendEvent("onJourneyError", params)
|
|
202
207
|
}
|
|
203
208
|
}
|
|
@@ -212,26 +217,25 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
|
|
|
212
217
|
val croppedImageBack = convertImageToBase64String(stepCapturedInfo.croppedImageBack)
|
|
213
218
|
val response = OnStepCapturedInfoExposed(stepCapturedInfo.stepId.toString(),originalImage,croppedImage,originalImageBack,croppedImageBack)
|
|
214
219
|
|
|
215
|
-
params.putString("data",
|
|
220
|
+
params.putString("data", ObjectMapper().writeValueAsString(response))
|
|
216
221
|
sendEvent("onStepCaptured", params)
|
|
217
222
|
}
|
|
218
223
|
|
|
219
224
|
override fun onStepResult(stepInfo:StepResultInfo) {
|
|
220
|
-
val gson = Gson()
|
|
221
225
|
val argsMap: WritableMap = Arguments.createMap()
|
|
222
|
-
argsMap.putString("data",
|
|
226
|
+
argsMap.putString("data", ObjectMapper().writeValueAsString(stepInfo))
|
|
223
227
|
sendEvent("onStepResult", argsMap)
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
override fun onStepSkipped(stepInfo:StepSkippedInfo) {
|
|
227
231
|
val params: WritableMap = Arguments.createMap()
|
|
228
|
-
params.putString("data",
|
|
232
|
+
params.putString("data", ObjectMapper().writeValueAsString(stepInfo))
|
|
229
233
|
sendEvent("onStepSkipped", params)
|
|
230
234
|
}
|
|
231
235
|
|
|
232
236
|
override fun onStepCancelled(stepInfo:StepCancelledInfo) {
|
|
233
237
|
val params: WritableMap = Arguments.createMap()
|
|
234
|
-
params.putString("data",
|
|
238
|
+
params.putString("data", ObjectMapper().writeValueAsString(stepInfo))
|
|
235
239
|
sendEvent("onStepCancelled", params)
|
|
236
240
|
}
|
|
237
241
|
}
|
|
@@ -245,9 +249,6 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
|
|
|
245
249
|
val b = baos.toByteArray()
|
|
246
250
|
return Base64.encodeToString(b, Base64.DEFAULT)
|
|
247
251
|
}
|
|
248
|
-
companion object {
|
|
249
|
-
const val NAME = "IdwiseMobileSdk"
|
|
250
|
-
}
|
|
251
252
|
|
|
252
253
|
private fun recursivelyDeconstructReadableMap(readableMap: ReadableMap):HashMap<String, String> {
|
|
253
254
|
val iterator: ReadableMapKeySetIterator = readableMap.keySetIterator();
|
|
@@ -274,4 +275,14 @@ class IdwiseMobileSdkModule(private val reactContext: ReactApplicationContext) :
|
|
|
274
275
|
val summary:JourneySummary?,
|
|
275
276
|
val error:IDWiseError?
|
|
276
277
|
)
|
|
278
|
+
|
|
279
|
+
// Example method
|
|
280
|
+
// See https://reactnative.dev/docs/native-modules-android
|
|
281
|
+
override fun multiply(a: Double, b: Double): Double {
|
|
282
|
+
return a * b
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
companion object {
|
|
286
|
+
const val NAME = "IdwiseReactNativeSdk"
|
|
287
|
+
}
|
|
277
288
|
}
|
|
@@ -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
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
#import <React/RCTEventEmitter.h>
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
@interface RCT_EXTERN_MODULE(
|
|
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 IDWiseSDK
|
|
3
3
|
import React
|
|
4
4
|
|
|
5
|
-
@objc(
|
|
6
|
-
class
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
310
|
+
IdwiseReactNativeSdk.emitter.sendEvent(withName: "onStepSkipped", body: ["data": jsonResp] as [String: Any])
|
|
311
311
|
}catch{
|
|
312
312
|
print(error)
|
|
313
313
|
}
|