idwise-nfc-react-native-sdk 5.5.5 → 5.6.1
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 +36 -0
- package/LICENSE +1 -1
- package/android/build.gradle +35 -59
- 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 -66
- package/ios/IDWiseNFC.xcframework/Info.plist +0 -48
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Assets.car +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BulletCell.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/BulletCellRTL.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentTypeTableViewCell.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Headers/IDWise.h +0 -18
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/IDWiseNFC +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/MenuCell.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/MenuWidgetView.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.abi.json +0 -32578
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -661
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios.swiftinterface +0 -661
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Mulish-Bold.ttf +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Mulish-Light.ttf +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/Mulish-Regular.ttf +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProgressBarMenuScreen.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ProgressBarView.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/RegulaSDKController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/RegulaSDKController.storyboardc/RegulaSDKController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/RegulaSDKController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/SelfieViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/StepCell.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ar.lproj/CustomLocalized.strings +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/ckb.lproj/CustomLocalized.strings +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +0 -118
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.net +0 -4737
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.shape +0 -1789
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/metadata.json +0 -82
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.net +0 -2250
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.shape +0 -718
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/en.lproj/CustomLocalized.strings +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/en.lproj/Localizable.strings +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/journey_image_config.json +0 -96
- package/ios/IDWiseNFC.xcframework/ios-arm64/IDWiseNFC.framework/regula.license +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/DWARF/IDWiseNFC +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Relocations/aarch64/IDWiseNFC.yml +0 -5346
- package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/aarch64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseNFC.xcframework/ios-arm64/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/aarch64/ShieldFraud.swiftinterface +0 -170
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Assets.car +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BlockedJourneyViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BulletCell.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/BulletCellRTL.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/DocumentCategorySelectionViewController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentCategorySelectionViewController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentTypeTableViewCell.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentViewController.storyboardc/HuT-DA-csJ-view-fPz-Uk-RnY.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/DocumentViewController.storyboardc/UIViewController-HuT-DA-csJ.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/ErrorFeedbackViewController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ErrorFeedbackViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/UIViewController-Y6W-OH-hqX.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/FinishJourneyViewContoller.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Headers/IDWise.h +0 -18
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/IDWiseNFC +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/A5G-4b-J84-view-Avi-oP-H2l.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/JourneyIntroductionViewController.storyboardc/UIViewController-A5G-4b-J84.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/MenuCell.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/MenuWidgetView.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -32578
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -661
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -661
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -32578
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -661
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Modules/IDWiseNFC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -661
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Mulish-Bold.ttf +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Mulish-Light.ttf +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/Mulish-Regular.ttf +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/ProcessJourneyViewController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProcessJourneyViewController.storyboardc/yS7-79-T86-view-owr-v5-NaP.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProgressBarMenuScreen.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ProgressBarView.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/RegulaSDKController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/RegulaSDKController.storyboardc/RegulaSDKController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/RegulaSDKController.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/SelfieViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/SelfieViewController.storyboardc/Od6-6k-VCn-view-avu-y3-b61.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/SelfieViewController.storyboardc/UIViewController-Od6-6k-VCn.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/StartJourneyViewController.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/StartJourneyViewController.storyboardc/StartJourneyViewController.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/StartJourneyViewController.storyboardc/eni-V6-pg3-view-IG7-Dw-aVZ.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/StepCell.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Info.plist +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/TokenExpiredVC.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/TokenExpiredVC.storyboardc/Y6W-OH-hqX-view-5EZ-qb-Rvc.nib +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/_CodeSignature/CodeResources +0 -1021
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ar.lproj/CustomLocalized.strings +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/ckb.lproj/CustomLocalized.strings +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/metadata.json +0 -118
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/analytics/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/model/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.net +0 -4737
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.shape +0 -1789
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/model.espresso.weights +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model0/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_detector.mlmodelc/model1/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/analytics/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/metadata.json +0 -82
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/model/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.net +0 -2250
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.shape +0 -718
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/model.espresso.weights +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/document_quality_model.mlmodelc/neural_network_optionals/coremldata.bin +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/en.lproj/CustomLocalized.strings +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/en.lproj/Localizable.strings +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/journey_image_config.json +0 -96
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/IDWiseNFC.framework/regula.license +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/DWARF/IDWiseNFC +0 -0
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Relocations/aarch64/IDWiseNFC.yml +0 -5330
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Relocations/x86_64/IDWiseNFC.yml +0 -5239
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/aarch64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/aarch64/ShieldFraud.swiftinterface +0 -170
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.framework.dSYM/Contents/Resources/Swift/x86_64/FingerprintPro.swiftinterface +0 -237
- package/ios/IDWiseNFC.xcframework/ios-arm64_x86_64-simulator/dSYMs/IDWiseNFC.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,36 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
5
|
+
Pod::Spec.new do |s|
|
|
6
|
+
s.name = "IdwiseReactNativeSdk"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = package["description"]
|
|
9
|
+
s.homepage = package["homepage"]
|
|
10
|
+
s.license = package["license"]
|
|
11
|
+
s.authors = package["author"]
|
|
12
|
+
|
|
13
|
+
s.platforms = { :ios => min_ios_version_supported }
|
|
14
|
+
s.source = { :git => "https://github.com/idwise/idwise_react_native_sdk.git", :tag => "#{s.version}" }
|
|
15
|
+
|
|
16
|
+
s.source_files = "ios/**/*.{h,m,mm,cpp,swift}"
|
|
17
|
+
s.private_header_files = "ios/**/*.h"
|
|
18
|
+
|
|
19
|
+
s.dependency 'FingerprintPro','2.7.0'
|
|
20
|
+
s.dependency 'Shield-Ptr','1.5.49'
|
|
21
|
+
s.dependency 'IDWiseNFC', '5.6.1'
|
|
22
|
+
s.dependency 'DocumentReader', '7.4.3900'
|
|
23
|
+
s.dependency 'DocumentReaderMRZRFID', '7.4.9825'
|
|
24
|
+
|
|
25
|
+
s.pod_target_xcconfig = {
|
|
26
|
+
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
|
|
27
|
+
"OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
|
|
28
|
+
"CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
|
|
29
|
+
#"EXCLUDED_ARCHS[sdk=iphonesimulator*]" => "arm64",
|
|
30
|
+
"CODE_SIGNING_ALLOWED" => 'NO',
|
|
31
|
+
'DEFINES_MODULE' => 'YES',
|
|
32
|
+
'SWIFT_VERSION' => '5.0'
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
install_modules_dependencies(s)
|
|
36
|
+
end
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
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,69 +1,33 @@
|
|
|
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
|
-
maven { url 'https://mobile-sdk.idwise.ai/releases/' }
|
|
10
7
|
google()
|
|
11
8
|
mavenCentral()
|
|
9
|
+
maven { url 'https://mobile-sdk.idwise.ai/releases/' }
|
|
12
10
|
}
|
|
13
11
|
|
|
14
12
|
dependencies {
|
|
15
|
-
classpath "com.android.tools.build:gradle:7.2
|
|
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
|
-
maven { url 'https://mobile-sdk.idwise.ai/releases/' }
|
|
24
|
-
google()
|
|
25
|
-
mavenCentral()
|
|
26
|
-
}
|
|
27
|
-
}*/
|
|
28
|
-
|
|
29
|
-
def isNewArchitectureEnabled() {
|
|
30
|
-
return rootProject.hasProperty("newArchEnabled") && rootProject.getProperty("newArchEnabled") == "true"
|
|
31
|
-
}
|
|
32
19
|
|
|
33
20
|
apply plugin: "com.android.library"
|
|
34
21
|
apply plugin: "kotlin-android"
|
|
35
22
|
|
|
36
|
-
|
|
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,45 +37,57 @@ android {
|
|
|
73
37
|
multiDexEnabled true
|
|
74
38
|
}
|
|
75
39
|
|
|
40
|
+
buildFeatures {
|
|
41
|
+
buildConfig true
|
|
42
|
+
dataBinding true
|
|
43
|
+
}
|
|
44
|
+
|
|
76
45
|
buildTypes {
|
|
77
46
|
release {
|
|
78
47
|
minifyEnabled false
|
|
79
48
|
}
|
|
80
49
|
}
|
|
81
|
-
|
|
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()
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
// url 'https://s01.oss.sonatype.org/content/repositories/staging/'
|
|
100
|
-
// }
|
|
73
|
+
|
|
74
|
+
maven { url 'https://mobile-sdk.idwise.ai/releases/' }
|
|
101
75
|
}
|
|
102
76
|
|
|
103
77
|
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
104
78
|
def idwise_sdk_version =project.properties["idwise_sdk_version"]
|
|
105
79
|
|
|
106
80
|
dependencies {
|
|
107
|
-
|
|
108
|
-
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
109
|
-
//noinspection GradleDynamicVersion
|
|
110
|
-
implementation "com.facebook.react:react-native:+"
|
|
81
|
+
implementation "com.facebook.react:react-android"
|
|
111
82
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
112
|
-
implementation 'com.google.code.gson:gson:2.10.1'
|
|
113
83
|
|
|
84
|
+
implementation "com.fasterxml.jackson.core:jackson-databind:2.17.0"
|
|
114
85
|
implementation "com.idwise:android-sdk:$idwise_sdk_version"
|
|
115
86
|
implementation "com.idwise:nfc:$idwise_sdk_version"
|
|
116
87
|
}
|
|
117
88
|
|
|
89
|
+
react {
|
|
90
|
+
jsRootDir = file("../src/")
|
|
91
|
+
libraryName = "IdwiseReactNativeSdk"
|
|
92
|
+
codegenJavaPackageName = "com.idwisereactnativesdk"
|
|
93
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
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.2
|
|
@@ -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
|
+
*/
|