react-native-scanbot-barcode-scanner-sdk 7.1.2-rc.2 → 8.0.0-rc.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/LICENSE +1 -1
- package/Libraries.txt +437 -17
- package/README.md +32 -34
- package/RNScanbotBarcodeSDK.podspec +3 -2
- package/android/gradle.properties +3 -3
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule.kt +117 -69
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkPluginResultDelegate.kt +3 -2
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerView.kt +76 -50
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewEvents.kt +24 -1
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/ScanbotBarcodeScannerViewManager.kt +66 -55
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/components/barcode_scanner_view/models/ScanbotBarcodeScannerModels.kt +1 -1
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/extensions/Extensions.kt +19 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.h +8 -7
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerLegacyView.m +92 -221
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.h +12 -8
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerView.mm +147 -317
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewController+Utils.swift +74 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewController.swift +429 -0
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewManager.mm +17 -23
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewOperators.h +95 -0
- package/ios/ScanbotBarcodeSdk.m +58 -76
- package/ios/ScanbotBarcodeSdkPluginResultDelegate.m +2 -6
- package/lib/commonjs/Barcode.js +51 -0
- package/lib/commonjs/Barcode.js.map +1 -0
- package/lib/commonjs/ImageProcessor.js +24 -0
- package/lib/commonjs/ImageProcessor.js.map +1 -0
- package/lib/commonjs/Sdk.js +57 -0
- package/lib/commonjs/Sdk.js.map +1 -0
- package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.js +14 -9
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -0
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +1 -0
- package/lib/commonjs/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +1 -0
- package/lib/commonjs/{component/barcode-camera-view → components}/index.js +3 -3
- package/lib/commonjs/components/index.js.map +1 -0
- package/lib/commonjs/components/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -0
- package/lib/commonjs/impl/BarcodeScannerImpl.js +59 -0
- package/lib/commonjs/impl/BarcodeScannerImpl.js.map +1 -0
- package/lib/commonjs/impl/ImageProcessorImpl.js +20 -0
- package/lib/commonjs/impl/ImageProcessorImpl.js.map +1 -0
- package/lib/commonjs/impl/SdkImpl.js +27 -0
- package/lib/commonjs/impl/SdkImpl.js.map +1 -0
- package/lib/commonjs/impl/index.js +39 -0
- package/lib/commonjs/impl/index.js.map +1 -0
- package/lib/commonjs/impl/scanbotBarcodeSDKModule.js +22 -0
- package/lib/commonjs/impl/scanbotBarcodeSDKModule.js.map +1 -0
- package/lib/commonjs/index.js +18 -162
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types/base/SdkConfiguration.js +106 -0
- package/lib/commonjs/types/base/SdkConfiguration.js.map +1 -0
- package/lib/commonjs/{base/barcodeSDKConfigurations.js → types/base/customTypes.js} +1 -1
- package/lib/commonjs/types/base/customTypes.js.map +1 -0
- package/lib/commonjs/types/base/errors.js +139 -0
- package/lib/commonjs/types/base/errors.js.map +1 -0
- package/lib/commonjs/types/base/index.js +50 -0
- package/lib/commonjs/types/base/index.js.map +1 -0
- package/lib/commonjs/types/base/utils.js +59 -0
- package/lib/commonjs/types/base/utils.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeConfigurationTypes.js +244 -74
- package/lib/commonjs/types/core/barcode/BarcodeConfigurationTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeDocumentTypes.js +62 -10
- package/lib/commonjs/types/core/barcode/BarcodeDocumentTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeScannerTypes.js +39 -28
- package/lib/commonjs/types/core/barcode/BarcodeScannerTypes.js.map +1 -0
- package/lib/commonjs/{barcode → types/core/barcode}/BarcodeTypes.js +31 -12
- package/lib/commonjs/types/core/barcode/BarcodeTypes.js.map +1 -0
- package/lib/commonjs/types/core/barcode/index.js.map +1 -0
- package/lib/commonjs/types/core/camera/Camera.js +23 -0
- package/lib/commonjs/types/core/camera/Camera.js.map +1 -0
- package/lib/commonjs/types/core/camera/index.js +17 -0
- package/lib/commonjs/types/core/camera/index.js.map +1 -0
- package/lib/commonjs/types/core/common/CommonTypes.js +29 -0
- package/lib/commonjs/types/core/common/CommonTypes.js.map +1 -0
- package/lib/commonjs/{utils/json → types/core/common}/JsonSerializationTypes.js +2 -3
- package/lib/commonjs/types/core/common/JsonSerializationTypes.js.map +1 -0
- package/lib/commonjs/types/core/common/index.js +28 -0
- package/lib/commonjs/types/core/common/index.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/BarcodeDocumentModel.js +1131 -160
- package/lib/commonjs/types/core/generic_document/BarcodeDocumentModel.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/CommonFieldType.js +6 -3
- package/lib/commonjs/types/core/generic_document/CommonFieldType.js.map +1 -0
- package/lib/commonjs/{documents → types/core/generic_document}/GenericDocument.js +13 -18
- package/lib/commonjs/types/core/generic_document/GenericDocument.js.map +1 -0
- package/lib/commonjs/types/core/generic_document/index.js.map +1 -0
- package/lib/commonjs/{utils → types/core}/geometry/Geometry.js +4 -8
- package/lib/commonjs/types/core/geometry/Geometry.js.map +1 -0
- package/lib/commonjs/types/core/geometry/index.js +17 -0
- package/lib/commonjs/types/core/geometry/index.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/ImageRefTypes.js +157 -69
- package/lib/commonjs/types/core/image/ImageRefTypes.js.map +1 -0
- package/lib/commonjs/types/core/image/ImageTypes.js +41 -0
- package/lib/commonjs/types/core/image/ImageTypes.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/image.js +54 -50
- package/lib/commonjs/types/core/image/image.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/image}/index.js +0 -11
- package/lib/commonjs/types/core/image/index.js.map +1 -0
- package/lib/commonjs/types/core/index.js +105 -0
- package/lib/commonjs/types/core/index.js.map +1 -0
- package/lib/commonjs/types/core/licensing/LicensingTypes.js +239 -0
- package/lib/commonjs/types/core/licensing/LicensingTypes.js.map +1 -0
- package/lib/commonjs/types/core/licensing/index.js +17 -0
- package/lib/commonjs/types/core/licensing/index.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.js +8 -14
- package/lib/commonjs/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.js +4 -8
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeInfoMapping.js.map +1 -0
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeItemMapper.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.js +17 -19
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.js +3 -6
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeScannerUiResult.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.js +1 -3
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeTextLocalization.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.js +6 -6
- package/lib/commonjs/types/core/ui_v2/barcode/BarcodeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.js +6 -9
- package/lib/commonjs/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.js +11 -14
- package/lib/commonjs/types/core/ui_v2/barcode/MultipleScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.js +4 -6
- package/lib/commonjs/types/core/ui_v2/barcode/SingleScanningModeUseCase.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ActionBarConfiguration.js.map +1 -0
- package/lib/commonjs/types/core/ui_v2/common/BottomBarConfiguration.js +23 -0
- package/lib/commonjs/types/core/ui_v2/common/BottomBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.js +11 -3
- package/lib/commonjs/types/core/ui_v2/common/CameraConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/CameraPermission.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/CameraPermission.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/Common.js +20 -35
- package/lib/commonjs/types/core/ui_v2/common/Common.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.js +1 -0
- package/lib/commonjs/types/core/ui_v2/common/NavigationBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ScanCompletionOverlay.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.js +2 -4
- package/lib/commonjs/types/core/ui_v2/common/ScanbotAlertDialog.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.js +4 -4
- package/lib/commonjs/types/core/ui_v2/common/TopBarConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.js +3 -6
- package/lib/commonjs/types/core/ui_v2/common/UserGuidanceConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.js +14 -19
- package/lib/commonjs/types/core/ui_v2/common/ViewFinderConfiguration.js.map +1 -0
- package/lib/commonjs/{ui_v2 → types/core/ui_v2}/index.js +15 -15
- package/lib/commonjs/types/core/ui_v2/index.js.map +1 -0
- package/lib/commonjs/{imageRef → types/core/utils}/ObjectPoolTypes.js +2 -4
- package/lib/commonjs/types/core/utils/ObjectPoolTypes.js.map +1 -0
- package/lib/commonjs/types/core/utils/index.js +28 -0
- package/lib/commonjs/types/core/utils/index.js.map +1 -0
- package/lib/commonjs/types/core/utils/utils.js +10 -0
- package/lib/commonjs/types/core/utils/utils.js.map +1 -0
- package/lib/commonjs/types/index.js +28 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/module/Barcode.js +45 -0
- package/lib/module/Barcode.js.map +1 -0
- package/lib/module/ImageProcessor.js +19 -0
- package/lib/module/ImageProcessor.js.map +1 -0
- package/lib/module/Sdk.js +51 -0
- package/lib/module/Sdk.js.map +1 -0
- package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.js +10 -4
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraView.js.map +1 -0
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +1 -0
- package/lib/module/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +1 -0
- package/lib/module/components/index.js +4 -0
- package/lib/module/components/index.js.map +1 -0
- package/lib/module/components/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +1 -0
- package/lib/module/impl/BarcodeScannerImpl.js +53 -0
- package/lib/module/impl/BarcodeScannerImpl.js.map +1 -0
- package/lib/module/impl/ImageProcessorImpl.js +15 -0
- package/lib/module/impl/ImageProcessorImpl.js.map +1 -0
- package/lib/module/impl/SdkImpl.js +22 -0
- package/lib/module/impl/SdkImpl.js.map +1 -0
- package/lib/module/impl/index.js +4 -0
- package/lib/module/impl/index.js.map +1 -0
- package/lib/module/impl/scanbotBarcodeSDKModule.js +16 -0
- package/lib/module/impl/scanbotBarcodeSDKModule.js.map +1 -0
- package/lib/module/index.js +5 -119
- package/lib/module/index.js.map +1 -1
- package/lib/module/types/base/SdkConfiguration.js +100 -0
- package/lib/module/types/base/SdkConfiguration.js.map +1 -0
- package/lib/module/types/base/customTypes.js +2 -0
- package/lib/module/types/base/customTypes.js.map +1 -0
- package/lib/module/types/base/errors.js +119 -0
- package/lib/module/types/base/errors.js.map +1 -0
- package/lib/module/types/base/index.js +5 -0
- package/lib/module/types/base/index.js.map +1 -0
- package/lib/module/types/base/utils.js +52 -0
- package/lib/module/types/base/utils.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeConfigurationTypes.js +244 -76
- package/lib/module/types/core/barcode/BarcodeConfigurationTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeDocumentTypes.js +60 -9
- package/lib/module/types/core/barcode/BarcodeDocumentTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeScannerTypes.js +39 -28
- package/lib/module/types/core/barcode/BarcodeScannerTypes.js.map +1 -0
- package/lib/module/{barcode → types/core/barcode}/BarcodeTypes.js +30 -11
- package/lib/module/types/core/barcode/BarcodeTypes.js.map +1 -0
- package/lib/module/types/core/barcode/index.js.map +1 -0
- package/lib/module/types/core/camera/Camera.js +17 -0
- package/lib/module/types/core/camera/Camera.js.map +1 -0
- package/lib/module/types/core/camera/index.js +2 -0
- package/lib/module/types/core/camera/index.js.map +1 -0
- package/lib/module/types/core/common/CommonTypes.js +23 -0
- package/lib/module/types/core/common/CommonTypes.js.map +1 -0
- package/lib/module/{utils/json → types/core/common}/JsonSerializationTypes.js +2 -4
- package/lib/module/types/core/common/JsonSerializationTypes.js.map +1 -0
- package/lib/module/types/core/common/index.js +3 -0
- package/lib/module/types/core/common/index.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/BarcodeDocumentModel.js +1129 -159
- package/lib/module/types/core/generic_document/BarcodeDocumentModel.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/CommonFieldType.js +6 -3
- package/lib/module/types/core/generic_document/CommonFieldType.js.map +1 -0
- package/lib/module/{documents → types/core/generic_document}/GenericDocument.js +13 -18
- package/lib/module/types/core/generic_document/GenericDocument.js.map +1 -0
- package/lib/module/types/core/generic_document/index.js.map +1 -0
- package/lib/module/{utils → types/core}/geometry/Geometry.js +4 -9
- package/lib/module/types/core/geometry/Geometry.js.map +1 -0
- package/lib/module/types/core/geometry/index.js +2 -0
- package/lib/module/types/core/geometry/index.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/ImageRefTypes.js +156 -68
- package/lib/module/types/core/image/ImageRefTypes.js.map +1 -0
- package/lib/module/types/core/image/ImageTypes.js +35 -0
- package/lib/module/types/core/image/ImageTypes.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/image.js +54 -49
- package/lib/module/types/core/image/image.js.map +1 -0
- package/lib/module/{imageRef → types/core/image}/index.js +0 -1
- package/lib/module/types/core/image/index.js.map +1 -0
- package/lib/module/types/core/index.js +10 -0
- package/lib/module/types/core/index.js.map +1 -0
- package/lib/module/types/core/licensing/LicensingTypes.js +233 -0
- package/lib/module/types/core/licensing/LicensingTypes.js.map +1 -0
- package/lib/module/types/core/licensing/index.js +2 -0
- package/lib/module/types/core/licensing/index.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.js +8 -14
- package/lib/module/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.js +4 -9
- package/lib/module/types/core/ui_v2/barcode/BarcodeInfoMapping.js.map +1 -0
- package/lib/module/types/core/ui_v2/barcode/BarcodeItemMapper.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.js +17 -19
- package/lib/module/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.js +3 -7
- package/lib/module/types/core/ui_v2/barcode/BarcodeScannerUiResult.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.js +1 -4
- package/lib/module/types/core/ui_v2/barcode/BarcodeTextLocalization.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.js +6 -6
- package/lib/module/types/core/ui_v2/barcode/BarcodeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.js +6 -9
- package/lib/module/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.js +11 -14
- package/lib/module/types/core/ui_v2/barcode/MultipleScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.js +4 -6
- package/lib/module/types/core/ui_v2/barcode/SingleScanningModeUseCase.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.js +2 -4
- package/lib/module/types/core/ui_v2/common/ActionBarConfiguration.js.map +1 -0
- package/lib/module/types/core/ui_v2/common/BottomBarConfiguration.js +17 -0
- package/lib/module/types/core/ui_v2/common/BottomBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.js +11 -4
- package/lib/module/types/core/ui_v2/common/CameraConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/CameraPermission.js +2 -5
- package/lib/module/types/core/ui_v2/common/CameraPermission.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/Common.js +20 -36
- package/lib/module/types/core/ui_v2/common/Common.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.js +1 -0
- package/lib/module/types/core/ui_v2/common/NavigationBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.js +2 -4
- package/lib/module/types/core/ui_v2/common/ScanCompletionOverlay.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.js +2 -4
- package/lib/module/types/core/ui_v2/common/ScanbotAlertDialog.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.js +4 -4
- package/lib/module/types/core/ui_v2/common/TopBarConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.js +3 -6
- package/lib/module/types/core/ui_v2/common/UserGuidanceConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.js +14 -19
- package/lib/module/types/core/ui_v2/common/ViewFinderConfiguration.js.map +1 -0
- package/lib/module/{ui_v2 → types/core/ui_v2}/index.js +2 -2
- package/lib/module/types/core/ui_v2/index.js.map +1 -0
- package/lib/module/{imageRef → types/core/utils}/ObjectPoolTypes.js +2 -5
- package/lib/module/types/core/utils/ObjectPoolTypes.js.map +1 -0
- package/lib/module/types/core/utils/index.js +3 -0
- package/lib/module/types/core/utils/index.js.map +1 -0
- package/lib/module/types/core/utils/utils.js +8 -0
- package/lib/module/types/core/utils/utils.js.map +1 -0
- package/lib/module/types/index.js +3 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/typescript/src/Barcode.d.ts +47 -0
- package/lib/typescript/src/Barcode.d.ts.map +1 -0
- package/lib/typescript/src/ImageProcessor.d.ts +12 -0
- package/lib/typescript/src/ImageProcessor.d.ts.map +1 -0
- package/lib/typescript/src/Sdk.d.ts +58 -0
- package/lib/typescript/src/Sdk.d.ts.map +1 -0
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraView.d.ts.map +1 -0
- package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts +17 -12
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +1 -0
- package/lib/typescript/src/components/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts.map +1 -0
- package/lib/typescript/src/components/index.d.ts +4 -0
- package/lib/typescript/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts +6 -0
- package/lib/typescript/src/components/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +1 -0
- package/lib/typescript/src/impl/BarcodeScannerImpl.d.ts +2 -0
- package/lib/typescript/src/impl/BarcodeScannerImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/ImageProcessorImpl.d.ts +2 -0
- package/lib/typescript/src/impl/ImageProcessorImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/SdkImpl.d.ts +2 -0
- package/lib/typescript/src/impl/SdkImpl.d.ts.map +1 -0
- package/lib/typescript/src/impl/index.d.ts +4 -0
- package/lib/typescript/src/impl/index.d.ts.map +1 -0
- package/lib/typescript/src/impl/scanbotBarcodeSDKModule.d.ts +2 -0
- package/lib/typescript/src/impl/scanbotBarcodeSDKModule.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +5 -66
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types/base/SdkConfiguration.d.ts +74 -0
- package/lib/typescript/src/types/base/SdkConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/types/base/customTypes.d.ts +15 -0
- package/lib/typescript/src/types/base/customTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/base/errors.d.ts +55 -0
- package/lib/typescript/src/types/base/errors.d.ts.map +1 -0
- package/lib/typescript/src/types/base/index.d.ts +5 -0
- package/lib/typescript/src/types/base/index.d.ts.map +1 -0
- package/lib/typescript/src/types/base/utils.d.ts +3 -0
- package/lib/typescript/src/types/base/utils.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeConfigurationTypes.d.ts +203 -36
- package/lib/typescript/src/types/core/barcode/BarcodeConfigurationTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/barcode/BarcodeDocumentTypes.d.ts +117 -0
- package/lib/typescript/src/types/core/barcode/BarcodeDocumentTypes.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeScannerTypes.d.ts +68 -21
- package/lib/typescript/src/types/core/barcode/BarcodeScannerTypes.d.ts.map +1 -0
- package/lib/typescript/src/{barcode → types/core/barcode}/BarcodeTypes.d.ts +390 -13
- package/lib/typescript/src/types/core/barcode/BarcodeTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/barcode/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/camera/Camera.d.ts +26 -0
- package/lib/typescript/src/types/core/camera/Camera.d.ts.map +1 -0
- package/lib/typescript/src/types/core/camera/index.d.ts +2 -0
- package/lib/typescript/src/types/core/camera/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/common/CommonTypes.d.ts +36 -0
- package/lib/typescript/src/types/core/common/CommonTypes.d.ts.map +1 -0
- package/lib/typescript/src/{utils/json → types/core/common}/JsonSerializationTypes.d.ts +13 -4
- package/lib/typescript/src/types/core/common/JsonSerializationTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/common/index.d.ts +3 -0
- package/lib/typescript/src/types/core/common/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/BarcodeDocumentModel.d.ts +2360 -0
- package/lib/typescript/src/types/core/generic_document/BarcodeDocumentModel.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/CommonFieldType.d.ts +176 -0
- package/lib/typescript/src/types/core/generic_document/CommonFieldType.d.ts.map +1 -0
- package/lib/typescript/src/{documents → types/core/generic_document}/GenericDocument.d.ts +82 -14
- package/lib/typescript/src/types/core/generic_document/GenericDocument.d.ts.map +1 -0
- package/lib/typescript/src/types/core/generic_document/index.d.ts.map +1 -0
- package/lib/typescript/src/{utils → types/core}/geometry/Geometry.d.ts +6 -5
- package/lib/typescript/src/types/core/geometry/Geometry.d.ts.map +1 -0
- package/lib/typescript/src/types/core/geometry/index.d.ts +2 -0
- package/lib/typescript/src/types/core/geometry/index.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/ImageRefTypes.d.ts +208 -40
- package/lib/typescript/src/types/core/image/ImageRefTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/image/ImageTypes.d.ts +63 -0
- package/lib/typescript/src/types/core/image/ImageTypes.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/image.d.ts +6 -10
- package/lib/typescript/src/types/core/image/image.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/image}/index.d.ts +0 -1
- package/lib/typescript/src/types/core/image/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/index.d.ts +10 -0
- package/lib/typescript/src/types/core/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/licensing/LicensingTypes.d.ts +243 -0
- package/lib/typescript/src/types/core/licensing/LicensingTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/licensing/index.d.ts +2 -0
- package/lib/typescript/src/types/core/licensing/index.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.d.ts +27 -10
- package/lib/typescript/src/types/core/ui_v2/barcode/ArTrackingOverlayConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.d.ts +6 -6
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeInfoMapping.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeItemMapper.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.d.ts +14 -14
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeScannerScreenConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeScannerUiResult.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.d.ts +2 -2
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeTextLocalization.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeUseCase.d.ts +8 -0
- package/lib/typescript/src/types/core/ui_v2/barcode/BarcodeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.d.ts +6 -6
- package/lib/typescript/src/types/core/ui_v2/barcode/FindAndPickScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.d.ts +42 -15
- package/lib/typescript/src/types/core/ui_v2/barcode/MultipleScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.d.ts +5 -5
- package/lib/typescript/src/types/core/ui_v2/barcode/SingleScanningModeUseCase.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ActionBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/common/BottomBarConfiguration.d.ts +26 -0
- package/lib/typescript/src/types/core/ui_v2/common/BottomBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.d.ts +25 -5
- package/lib/typescript/src/types/core/ui_v2/common/CameraConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/CameraPermission.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/common/CameraPermission.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/Common.d.ts +55 -24
- package/lib/typescript/src/types/core/ui_v2/common/Common.d.ts.map +1 -0
- package/lib/typescript/src/types/core/ui_v2/common/NavigationBarConfiguration.d.ts +26 -0
- package/lib/typescript/src/types/core/ui_v2/common/NavigationBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ScanCompletionOverlay.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.d.ts +3 -3
- package/lib/typescript/src/types/core/ui_v2/common/ScanbotAlertDialog.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.d.ts +33 -7
- package/lib/typescript/src/types/core/ui_v2/common/TopBarConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.d.ts +4 -4
- package/lib/typescript/src/types/core/ui_v2/common/UserGuidanceConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.d.ts +7 -7
- package/lib/typescript/src/types/core/ui_v2/common/ViewFinderConfiguration.d.ts.map +1 -0
- package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/index.d.ts +2 -2
- package/lib/typescript/src/types/core/ui_v2/index.d.ts.map +1 -0
- package/lib/typescript/src/{imageRef → types/core/utils}/ObjectPoolTypes.d.ts +3 -3
- package/lib/typescript/src/types/core/utils/ObjectPoolTypes.d.ts.map +1 -0
- package/lib/typescript/src/types/core/utils/index.d.ts +3 -0
- package/lib/typescript/src/types/core/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/types/core/utils/utils.d.ts +28 -0
- package/lib/typescript/src/types/core/utils/utils.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +3 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/package.json +13 -13
- package/src/Barcode.ts +67 -0
- package/src/ImageProcessor.ts +18 -0
- package/src/Sdk.ts +53 -0
- package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.tsx +13 -4
- package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.ts +22 -14
- package/src/components/index.ts +3 -0
- package/src/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.ts +3 -0
- package/src/impl/BarcodeScannerImpl.ts +115 -0
- package/src/impl/ImageProcessorImpl.ts +14 -0
- package/src/impl/SdkImpl.ts +28 -0
- package/src/impl/index.ts +3 -0
- package/src/impl/scanbotBarcodeSDKModule.ts +22 -0
- package/src/index.ts +5 -178
- package/src/types/base/SdkConfiguration.ts +120 -0
- package/src/types/base/customTypes.ts +14 -0
- package/src/types/base/errors.ts +158 -0
- package/src/types/base/index.ts +4 -0
- package/src/types/base/utils.ts +53 -0
- package/src/{barcode → types/core/barcode}/BarcodeConfigurationTypes.ts +294 -83
- package/src/types/core/barcode/BarcodeDocumentTypes.ts +218 -0
- package/src/{barcode → types/core/barcode}/BarcodeScannerTypes.ts +91 -44
- package/src/{barcode → types/core/barcode}/BarcodeTypes.ts +315 -19
- package/src/types/core/camera/Camera.ts +33 -0
- package/src/types/core/camera/index.ts +1 -0
- package/src/types/core/common/CommonTypes.ts +43 -0
- package/src/{utils/json → types/core/common}/JsonSerializationTypes.ts +16 -5
- package/src/types/core/common/index.ts +2 -0
- package/src/{documents → types/core/generic_document}/BarcodeDocumentModel.ts +1524 -172
- package/src/{documents → types/core/generic_document}/CommonFieldType.ts +96 -7
- package/src/{documents → types/core/generic_document}/GenericDocument.ts +77 -28
- package/src/{utils → types/core}/geometry/Geometry.ts +6 -8
- package/src/types/core/geometry/index.ts +1 -0
- package/src/{imageRef → types/core/image}/ImageRefTypes.ts +277 -83
- package/src/types/core/image/ImageTypes.ts +78 -0
- package/src/{imageRef → types/core/image}/image.ts +44 -76
- package/src/{imageRef → types/core/image}/index.ts +0 -1
- package/src/types/core/index.ts +9 -0
- package/src/types/core/licensing/LicensingTypes.ts +377 -0
- package/src/types/core/licensing/index.ts +1 -0
- package/src/{ui_v2 → types/core/ui_v2}/barcode/ArTrackingOverlayConfiguration.ts +28 -17
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeInfoMapping.ts +6 -9
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerScreenConfiguration.ts +18 -25
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeScannerUiResult.ts +5 -7
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeTextLocalization.ts +2 -3
- package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeUseCase.ts +6 -5
- package/src/{ui_v2 → types/core/ui_v2}/barcode/FindAndPickScanningModeUseCase.ts +17 -19
- package/src/{ui_v2 → types/core/ui_v2}/barcode/MultipleScanningModeUseCase.ts +50 -25
- package/src/{ui_v2 → types/core/ui_v2}/barcode/SingleScanningModeUseCase.ts +9 -10
- package/src/{ui_v2 → types/core/ui_v2}/common/ActionBarConfiguration.ts +3 -4
- package/src/types/core/ui_v2/common/BottomBarConfiguration.ts +33 -0
- package/src/{ui_v2 → types/core/ui_v2}/common/CameraConfiguration.ts +33 -7
- package/src/{ui_v2 → types/core/ui_v2}/common/CameraPermission.ts +4 -5
- package/src/{ui_v2 → types/core/ui_v2}/common/Common.ts +62 -41
- package/src/{ui_v2 → types/core/ui_v2}/common/NavigationBarConfiguration.ts +19 -2
- package/src/{ui_v2 → types/core/ui_v2}/common/ScanCompletionOverlay.ts +3 -4
- package/src/{ui_v2 → types/core/ui_v2}/common/ScanbotAlertDialog.ts +3 -4
- package/src/{ui_v2 → types/core/ui_v2}/common/TopBarConfiguration.ts +37 -13
- package/src/{ui_v2 → types/core/ui_v2}/common/UserGuidanceConfiguration.ts +4 -6
- package/src/{ui_v2 → types/core/ui_v2}/common/ViewFinderConfiguration.ts +15 -17
- package/src/{ui_v2 → types/core/ui_v2}/index.ts +2 -4
- package/src/{imageRef → types/core/utils}/ObjectPoolTypes.ts +3 -4
- package/src/types/core/utils/index.ts +2 -0
- package/src/types/core/utils/utils.ts +45 -0
- package/src/types/index.ts +2 -0
- package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/extensions/IntExtensions.kt +0 -7
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.h +0 -121
- package/ios/Components/BarcodeScannerView/RNScanbotBarcodeScannerViewControllerWrapper.m +0 -307
- package/lib/commonjs/barcode/BarcodeConfigurationTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeDocumentTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeScannerTypes.js.map +0 -1
- package/lib/commonjs/barcode/BarcodeTypes.js.map +0 -1
- package/lib/commonjs/barcode/index.js.map +0 -1
- package/lib/commonjs/base/barcodeSDKConfigurations.js.map +0 -1
- package/lib/commonjs/base/barcodeSDKTypes.js +0 -2
- package/lib/commonjs/base/barcodeSDKTypes.js.map +0 -1
- package/lib/commonjs/base/index.js +0 -28
- package/lib/commonjs/base/index.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +0 -1
- package/lib/commonjs/component/barcode-camera-view/index.js.map +0 -1
- package/lib/commonjs/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +0 -1
- package/lib/commonjs/documents/BarcodeDocumentModel.js.map +0 -1
- package/lib/commonjs/documents/CommonFieldType.js.map +0 -1
- package/lib/commonjs/documents/GenericDocument.js.map +0 -1
- package/lib/commonjs/documents/index.js.map +0 -1
- package/lib/commonjs/imageRef/ImageRefTypes.js.map +0 -1
- package/lib/commonjs/imageRef/ImageTypes.js +0 -24
- package/lib/commonjs/imageRef/ImageTypes.js.map +0 -1
- package/lib/commonjs/imageRef/ObjectPoolTypes.js.map +0 -1
- package/lib/commonjs/imageRef/image.js.map +0 -1
- package/lib/commonjs/imageRef/index.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeInfoMapping.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeItemMapper.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerConfiguration.js +0 -179
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeScannerUiResult.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeTextLocalization.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/BarcodeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/MultipleScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/barcode/SingleScanningModeUseCase.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ActionBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/CameraConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/CameraPermission.js.map +0 -1
- package/lib/commonjs/ui_v2/common/Common.js.map +0 -1
- package/lib/commonjs/ui_v2/common/NavigationBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ScanCompletionOverlay.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ScanbotAlertDialog.js.map +0 -1
- package/lib/commonjs/ui_v2/common/TopBarConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/UserGuidanceConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/common/ViewFinderConfiguration.js.map +0 -1
- package/lib/commonjs/ui_v2/index.js.map +0 -1
- package/lib/commonjs/utils/geometry/Geometry.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -39
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/json/JsonSerializationTypes.js.map +0 -1
- package/lib/commonjs/utils/utils.js +0 -31
- package/lib/commonjs/utils/utils.js.map +0 -1
- package/lib/module/barcode/BarcodeConfigurationTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeDocumentTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeScannerTypes.js.map +0 -1
- package/lib/module/barcode/BarcodeTypes.js.map +0 -1
- package/lib/module/barcode/index.js.map +0 -1
- package/lib/module/base/barcodeSDKConfigurations.js +0 -2
- package/lib/module/base/barcodeSDKConfigurations.js.map +0 -1
- package/lib/module/base/barcodeSDKTypes.js +0 -2
- package/lib/module/base/barcodeSDKTypes.js.map +0 -1
- package/lib/module/base/index.js +0 -3
- package/lib/module/base/index.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraView.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js.map +0 -1
- package/lib/module/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js.map +0 -1
- package/lib/module/component/barcode-camera-view/index.js +0 -4
- package/lib/module/component/barcode-camera-view/index.js.map +0 -1
- package/lib/module/component/spec/ScanbotBarcodeScannerViewNativeComponent.js.map +0 -1
- package/lib/module/documents/BarcodeDocumentModel.js.map +0 -1
- package/lib/module/documents/CommonFieldType.js.map +0 -1
- package/lib/module/documents/GenericDocument.js.map +0 -1
- package/lib/module/documents/index.js.map +0 -1
- package/lib/module/imageRef/ImageRefTypes.js.map +0 -1
- package/lib/module/imageRef/ImageTypes.js +0 -18
- package/lib/module/imageRef/ImageTypes.js.map +0 -1
- package/lib/module/imageRef/ObjectPoolTypes.js.map +0 -1
- package/lib/module/imageRef/image.js.map +0 -1
- package/lib/module/imageRef/index.js.map +0 -1
- package/lib/module/ui_v2/barcode/ArTrackingOverlayConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeInfoMapping.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeItemMapper.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerConfiguration.js +0 -173
- package/lib/module/ui_v2/barcode/BarcodeScannerConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerScreenConfiguration.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeScannerUiResult.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeTextLocalization.js.map +0 -1
- package/lib/module/ui_v2/barcode/BarcodeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/FindAndPickScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/MultipleScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/barcode/SingleScanningModeUseCase.js.map +0 -1
- package/lib/module/ui_v2/common/ActionBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/CameraConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/CameraPermission.js.map +0 -1
- package/lib/module/ui_v2/common/Common.js.map +0 -1
- package/lib/module/ui_v2/common/NavigationBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/ScanCompletionOverlay.js.map +0 -1
- package/lib/module/ui_v2/common/ScanbotAlertDialog.js.map +0 -1
- package/lib/module/ui_v2/common/TopBarConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/UserGuidanceConfiguration.js.map +0 -1
- package/lib/module/ui_v2/common/ViewFinderConfiguration.js.map +0 -1
- package/lib/module/ui_v2/index.js.map +0 -1
- package/lib/module/utils/geometry/Geometry.js.map +0 -1
- package/lib/module/utils/index.js +0 -4
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/json/JsonSerializationTypes.js.map +0 -1
- package/lib/module/utils/utils.js +0 -22
- package/lib/module/utils/utils.js.map +0 -1
- package/lib/typescript/src/barcode/BarcodeConfigurationTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeDocumentTypes.d.ts +0 -50
- package/lib/typescript/src/barcode/BarcodeDocumentTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeScannerTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/BarcodeTypes.d.ts.map +0 -1
- package/lib/typescript/src/barcode/index.d.ts.map +0 -1
- package/lib/typescript/src/base/barcodeSDKConfigurations.d.ts +0 -60
- package/lib/typescript/src/base/barcodeSDKConfigurations.d.ts.map +0 -1
- package/lib/typescript/src/base/barcodeSDKTypes.d.ts +0 -46
- package/lib/typescript/src/base/barcodeSDKTypes.d.ts.map +0 -1
- package/lib/typescript/src/base/index.d.ts +0 -3
- package/lib/typescript/src/base/index.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraView.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewProperties.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts.map +0 -1
- package/lib/typescript/src/component/barcode-camera-view/index.d.ts +0 -4
- package/lib/typescript/src/component/barcode-camera-view/index.d.ts.map +0 -1
- package/lib/typescript/src/component/spec/ScanbotBarcodeScannerViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/documents/BarcodeDocumentModel.d.ts +0 -1458
- package/lib/typescript/src/documents/BarcodeDocumentModel.d.ts.map +0 -1
- package/lib/typescript/src/documents/CommonFieldType.d.ts +0 -61
- package/lib/typescript/src/documents/CommonFieldType.d.ts.map +0 -1
- package/lib/typescript/src/documents/GenericDocument.d.ts.map +0 -1
- package/lib/typescript/src/documents/index.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ImageRefTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ImageTypes.d.ts +0 -15
- package/lib/typescript/src/imageRef/ImageTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/ObjectPoolTypes.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/image.d.ts.map +0 -1
- package/lib/typescript/src/imageRef/index.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/ArTrackingOverlayConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeInfoMapping.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeItemMapper.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerConfiguration.d.ts +0 -114
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerScreenConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeScannerUiResult.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeTextLocalization.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/BarcodeUseCase.d.ts +0 -8
- package/lib/typescript/src/ui_v2/barcode/BarcodeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/FindAndPickScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/MultipleScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/barcode/SingleScanningModeUseCase.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ActionBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/CameraConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/CameraPermission.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/Common.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/NavigationBarConfiguration.d.ts +0 -13
- package/lib/typescript/src/ui_v2/common/NavigationBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ScanCompletionOverlay.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ScanbotAlertDialog.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/TopBarConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/UserGuidanceConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/common/ViewFinderConfiguration.d.ts.map +0 -1
- package/lib/typescript/src/ui_v2/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/geometry/Geometry.d.ts.map +0 -1
- package/lib/typescript/src/utils/index.d.ts +0 -4
- package/lib/typescript/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/json/JsonSerializationTypes.d.ts.map +0 -1
- package/lib/typescript/src/utils/utils.d.ts +0 -17
- package/lib/typescript/src/utils/utils.d.ts.map +0 -1
- package/src/barcode/BarcodeDocumentTypes.ts +0 -120
- package/src/base/barcodeSDKConfigurations.ts +0 -70
- package/src/base/barcodeSDKTypes.ts +0 -44
- package/src/base/index.ts +0 -2
- package/src/component/barcode-camera-view/index.ts +0 -3
- package/src/imageRef/ImageTypes.ts +0 -23
- package/src/ui_v2/barcode/BarcodeScannerConfiguration.ts +0 -207
- package/src/utils/index.ts +0 -3
- package/src/utils/utils.ts +0 -42
- /package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js +0 -0
- /package/lib/commonjs/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js +0 -0
- /package/lib/commonjs/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.js +0 -0
- /package/lib/commonjs/{barcode → types/core/barcode}/index.js +0 -0
- /package/lib/commonjs/{documents → types/core/generic_document}/index.js +0 -0
- /package/lib/commonjs/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.js +0 -0
- /package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewProperties.js +0 -0
- /package/lib/module/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.js +0 -0
- /package/lib/module/{component → components}/spec/ScanbotBarcodeScannerViewNativeComponent.js +0 -0
- /package/lib/module/{barcode → types/core/barcode}/index.js +0 -0
- /package/lib/module/{documents → types/core/generic_document}/index.js +0 -0
- /package/lib/module/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.js +0 -0
- /package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraView.d.ts +0 -0
- /package/lib/typescript/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.d.ts +0 -0
- /package/lib/typescript/src/{barcode → types/core/barcode}/index.d.ts +0 -0
- /package/lib/typescript/src/{documents → types/core/generic_document}/index.d.ts +0 -0
- /package/lib/typescript/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.d.ts +0 -0
- /package/src/{component → components}/barcode-camera-view/ScanbotBarcodeCameraViewTypes.ts +0 -0
- /package/src/{barcode → types/core/barcode}/index.ts +0 -0
- /package/src/{documents → types/core/generic_document}/index.ts +0 -0
- /package/src/{ui_v2 → types/core/ui_v2}/barcode/BarcodeItemMapper.ts +0 -0
package/README.md
CHANGED
|
@@ -6,26 +6,30 @@
|
|
|
6
6
|
|
|
7
7
|
## Table of contents
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
9
|
+
- [Scanbot React Native Barcode Scanner SDK](#scanbot-react-native-barcode-scanner-sdk)
|
|
10
|
+
- [Table of contents](#table-of-contents)
|
|
11
|
+
- [About the Scanbot Barcode Scanner SDK](#about-the-scanbot-barcode-scanner-sdk)
|
|
12
|
+
- [Supported barcode types](#supported-barcode-types)
|
|
13
|
+
- [Changelog](#changelog)
|
|
14
|
+
- [How to use the SDK](#how-to-use-the-sdk)
|
|
15
|
+
- [Installation](#installation)
|
|
16
|
+
- [Requirements](#requirements)
|
|
17
|
+
- [Install steps](#install-steps)
|
|
18
|
+
- [Expo integration](#expo-integration)
|
|
19
|
+
- [Camera permissions](#camera-permissions)
|
|
20
|
+
- [Android](#android)
|
|
21
|
+
- [iOS](#ios)
|
|
22
|
+
- [SDK initialization](#sdk-initialization)
|
|
23
|
+
- [Barcode scanner setup](#barcode-scanner-setup)
|
|
24
|
+
- [Scanning modes](#scanning-modes)
|
|
25
|
+
- [Single Scanning](#single-scanning)
|
|
26
|
+
- [Multi Scanning](#multi-scanning)
|
|
27
|
+
- [Find \& Pick](#find--pick)
|
|
28
|
+
- [Configuration options](#configuration-options)
|
|
29
|
+
- [UI customization](#ui-customization)
|
|
30
|
+
- [Additional information](#additional-information)
|
|
31
|
+
- [Trial license](#trial-license)
|
|
32
|
+
- [Guides and tutorials](#guides-and-tutorials)
|
|
29
33
|
|
|
30
34
|
## About the Scanbot Barcode Scanner SDK
|
|
31
35
|
|
|
@@ -134,9 +138,9 @@ Initialize the SDK with:
|
|
|
134
138
|
|
|
135
139
|
```ts
|
|
136
140
|
ScanbotBarcodeSDK
|
|
137
|
-
.
|
|
138
|
-
.then(result => console.log(result))
|
|
139
|
-
.catch(err => console.log(err));
|
|
141
|
+
.initialize(new SdkConfiguration({ licenseKey: '' }))
|
|
142
|
+
.then((result) => console.log(result))
|
|
143
|
+
.catch((err) => console.log(err));
|
|
140
144
|
```
|
|
141
145
|
|
|
142
146
|
💡 You can test the SDK without a license key for 60 seconds per app session. Need longer testing? Get your [free trial license key](https://docs.scanbot.io/trial/?utm_source=npmjs.com&utm_medium=referral&utm_campaign=dev_sites).
|
|
@@ -157,7 +161,7 @@ This is the default scanning mode. It is optimized for detecting a single barcod
|
|
|
157
161
|
* start the barcode scanner with the configuration
|
|
158
162
|
*/
|
|
159
163
|
const config = new BarcodeScannerScreenConfiguration();
|
|
160
|
-
const result = await
|
|
164
|
+
const result = await ScanbotBarcode.startScanner(config);
|
|
161
165
|
```
|
|
162
166
|
|
|
163
167
|
<p align="left">
|
|
@@ -170,12 +174,12 @@ The barcode scanner can also be configured to scan multiple barcodes in one go w
|
|
|
170
174
|
|
|
171
175
|
```ts
|
|
172
176
|
/**
|
|
173
|
-
* Instantiate a configuration object of
|
|
177
|
+
* Instantiate a configuration object of BarcodeScannerScreebConfiguration and
|
|
174
178
|
* start the barcode scanner with the configuration
|
|
175
179
|
*/
|
|
176
180
|
const config = new BarcodeScannerScreenConfiguration();
|
|
177
181
|
config.useCase = new MultipleScanningMode();
|
|
178
|
-
const result = await
|
|
182
|
+
const result = await ScanbotBarcode.startScanner(config);
|
|
179
183
|
```
|
|
180
184
|
|
|
181
185
|
<p align="left">
|
|
@@ -208,7 +212,7 @@ config.useCase.expectedBarcodes = [
|
|
|
208
212
|
image: 'https://avatars.githubusercontent.com/u/1454920',
|
|
209
213
|
}),
|
|
210
214
|
];
|
|
211
|
-
const result = await
|
|
215
|
+
const result = await ScanbotBarcode.startScanner(config);
|
|
212
216
|
```
|
|
213
217
|
|
|
214
218
|
<p align="left">
|
|
@@ -256,7 +260,7 @@ config.localization.topBarCancelButton = 'Dismiss';
|
|
|
256
260
|
config.palette.sbColorPrimary = '#000000';
|
|
257
261
|
config.palette.sbColorNegative = '#ff3737';
|
|
258
262
|
|
|
259
|
-
const result = await
|
|
263
|
+
const result = await ScanbotBarcode.startScanner(config);
|
|
260
264
|
```
|
|
261
265
|
|
|
262
266
|
## Additional information
|
|
@@ -269,12 +273,6 @@ To try the React Native Barcode Scanner SDK without the one-minute limit, you ca
|
|
|
269
273
|
|
|
270
274
|
Our pricing model is simple: Unlimited barcode scanning for a flat annual license fee, full support included. There are no tiers, usage charges, or extra fees. [Contact our team](https://scanbot.io/contact-sales/?utm_source=npmjs.com&utm_medium=referral&utm_campaign=dev_sites) to receive your quote.
|
|
271
275
|
|
|
272
|
-
### Free developer support
|
|
273
|
-
|
|
274
|
-
Need help integrating or testing our Barcode Scanner SDK in your React Native project? We offer [free developer support](https://docs.scanbot.io/support/?utm_source=npmjs.com&utm_medium=referral&utm_campaign=dev_sites) via Slack, MS Teams, or email.
|
|
275
|
-
|
|
276
|
-
As a customer, you also get access to a dedicated support Slack or Microsoft Teams channel to talk directly to your Customer Success Manager and our engineers.
|
|
277
|
-
|
|
278
276
|
### Guides and tutorials
|
|
279
277
|
|
|
280
278
|
Do you want to enable your app to scan barcodes or QR codes? Integrating the Scanbot React Native Barcode Scanner plugin into your mobile app takes just a few minutes.
|
|
@@ -15,7 +15,8 @@ Pod::Spec.new do |s|
|
|
|
15
15
|
s.platforms = { :ios => "13.0" }
|
|
16
16
|
s.source = { :http => 'https://download.scanbot.io/barcode-scanner-sdk/react-native/react-native-scanbot-barcode-scanner-sdk-' + package['version'] + '.tgz' }
|
|
17
17
|
|
|
18
|
-
s.source_files = "ios/**/*.{h,m,mm}"
|
|
18
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
19
|
+
s.private_header_files = "ios/**/*.h"
|
|
19
20
|
s.requires_arc = true
|
|
20
21
|
|
|
21
22
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
@@ -40,6 +41,6 @@ Pod::Spec.new do |s|
|
|
|
40
41
|
end
|
|
41
42
|
end
|
|
42
43
|
|
|
43
|
-
s.dependency "
|
|
44
|
+
s.dependency "ScanbotBarcodeSDKNativeWrapper", '8.0.1.0'
|
|
44
45
|
s.ios.vendored_frameworks = 'ScanbotBarcodeSDKWrapper.framework'
|
|
45
46
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
ScanbotBarcodeSdk_sharedLibsVersion=
|
|
2
|
-
ScanbotBarcodeSdk_kotlinVersion=1.
|
|
1
|
+
ScanbotBarcodeSdk_sharedLibsVersion=8.0.1.0
|
|
2
|
+
ScanbotBarcodeSdk_kotlinVersion=2.1.21
|
|
3
3
|
ScanbotBarcodeSdk_minSdkVersion=21
|
|
4
4
|
ScanbotBarcodeSdk_targetSdkVersion=34
|
|
5
|
-
ScanbotBarcodeSdk_compileSdkVersion=
|
|
5
|
+
ScanbotBarcodeSdk_compileSdkVersion=36
|
|
6
6
|
ScanbotBarcodeSdk_ndkversion=26.3.11579264
|
package/android/src/main/java/io/scanbot/barcodesdk/plugin/reactnative/ScanbotBarcodeSdkModule.kt
CHANGED
|
@@ -16,9 +16,10 @@ import io.scanbot.sdk_wrapper.barcode.operations.detection.SBBDetectBarcodes
|
|
|
16
16
|
import io.scanbot.sdk_wrapper.barcode.operations.image_operations.SBBImageOperations
|
|
17
17
|
import io.scanbot.sdk_wrapper.barcode.operations.license.SBBLicenseOperations
|
|
18
18
|
import io.scanbot.sdk_wrapper.barcode.operations.mock.SBBMock
|
|
19
|
-
import io.scanbot.sdk_wrapper.barcode.operations.
|
|
19
|
+
import io.scanbot.sdk_wrapper.barcode.operations.parsing.SBBBarcodeDocumentParser
|
|
20
20
|
import io.scanbot.sdk_wrapper.barcode.operations.setup.SBBSetupOperations
|
|
21
21
|
import io.scanbot.sdk_wrapper.barcode.rtuui.SBBRtuUi
|
|
22
|
+
import io.scanbot.sdk_wrapper.exceptions.SBWrapperError
|
|
22
23
|
import org.json.JSONException
|
|
23
24
|
import org.json.JSONObject
|
|
24
25
|
|
|
@@ -35,7 +36,7 @@ class ScanbotBarcodeSdkModule(reactContext: ReactApplicationContext) :
|
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
@ReactMethod
|
|
38
|
-
fun
|
|
39
|
+
fun initialize(configuration: ReadableMap, promise: Promise) = runOperationWithJSONParam(
|
|
39
40
|
configuration, promise
|
|
40
41
|
) { configurationAsJSON ->
|
|
41
42
|
|
|
@@ -48,7 +49,13 @@ class ScanbotBarcodeSdkModule(reactContext: ReactApplicationContext) :
|
|
|
48
49
|
|
|
49
50
|
it.addActivityEventListener(this)
|
|
50
51
|
} ?: run {
|
|
51
|
-
|
|
52
|
+
SBWrapperError(
|
|
53
|
+
SBWrapperError.OperationError(
|
|
54
|
+
"initialize", "React Native Instance has already disappeared."
|
|
55
|
+
)
|
|
56
|
+
).let { error ->
|
|
57
|
+
promise.reject(error.code.toString(), error.message)
|
|
58
|
+
}
|
|
52
59
|
}
|
|
53
60
|
}
|
|
54
61
|
|
|
@@ -62,7 +69,7 @@ class ScanbotBarcodeSdkModule(reactContext: ReactApplicationContext) :
|
|
|
62
69
|
}
|
|
63
70
|
|
|
64
71
|
@ReactMethod
|
|
65
|
-
fun
|
|
72
|
+
fun cleanupStorage(promise: Promise) {
|
|
66
73
|
SBBSetupOperations.cleanup(ScanbotBarcodeSdkPluginResultDelegate(promise))
|
|
67
74
|
}
|
|
68
75
|
|
|
@@ -81,7 +88,10 @@ class ScanbotBarcodeSdkModule(reactContext: ReactApplicationContext) :
|
|
|
81
88
|
}
|
|
82
89
|
} else {
|
|
83
90
|
SBBRtuUi.startBarcodeScanner(
|
|
84
|
-
currentActivity,
|
|
91
|
+
currentActivity,
|
|
92
|
+
configurationAsJSON,
|
|
93
|
+
ScanbotBarcodeSdkPluginResultDelegate(promise),
|
|
94
|
+
null
|
|
85
95
|
)
|
|
86
96
|
}
|
|
87
97
|
}
|
|
@@ -92,29 +102,36 @@ class ScanbotBarcodeSdkModule(reactContext: ReactApplicationContext) :
|
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
@ReactMethod
|
|
95
|
-
fun
|
|
96
|
-
runOperationWithJSONParam(args, promise) {
|
|
97
|
-
val imageUri = arsAsJSON.getString("imageFileUri")
|
|
98
|
-
val configurationAsJSON = arsAsJSON.getJSONObject("configuration")
|
|
99
|
-
|
|
105
|
+
fun scanBarcodesFromImage(args: ReadableMap, promise: Promise) =
|
|
106
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
100
107
|
SBBDetectBarcodes.detectOnImage(
|
|
101
|
-
|
|
108
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
102
109
|
)
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
@ReactMethod
|
|
106
|
-
fun
|
|
107
|
-
runOperationWithJSONParam(
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
fun scanBarcodesFromPdf(args: ReadableMap, promise: Promise) =
|
|
114
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
115
|
+
SBBDetectBarcodes.detectOnPdf(
|
|
116
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
110
117
|
)
|
|
111
118
|
}
|
|
112
119
|
|
|
113
120
|
@ReactMethod
|
|
114
|
-
fun
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
fun parseBarcodeDocument(args: ReadableMap, promise: Promise) =
|
|
122
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
123
|
+
SBBBarcodeDocumentParser.parseDocument(
|
|
124
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
125
|
+
)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@ReactMethod
|
|
129
|
+
fun readImageData(args: ReadableMap, promise: Promise) {
|
|
130
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
131
|
+
SBBImageOperations.getImageData(
|
|
132
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
133
|
+
)
|
|
134
|
+
}
|
|
118
135
|
}
|
|
119
136
|
|
|
120
137
|
@ReactMethod
|
|
@@ -126,80 +143,93 @@ class ScanbotBarcodeSdkModule(reactContext: ReactApplicationContext) :
|
|
|
126
143
|
//region ImageRefs
|
|
127
144
|
|
|
128
145
|
@ReactMethod
|
|
129
|
-
fun imageRefDeserialize(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
@ReactMethod
|
|
136
|
-
fun imageRefSerialize(uniqueId: String, promise: Promise) {
|
|
137
|
-
SBBImageOperations.imageRefSerialize(
|
|
138
|
-
uniqueId, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
139
|
-
)
|
|
146
|
+
fun imageRefDeserialize(args: ReadableMap, promise: Promise) {
|
|
147
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
148
|
+
SBBImageOperations.imageRefDeserialize(
|
|
149
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
150
|
+
)
|
|
151
|
+
}
|
|
140
152
|
}
|
|
141
153
|
|
|
142
154
|
@ReactMethod
|
|
143
|
-
fun
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
155
|
+
fun imageRefSerialize(args: ReadableMap, promise: Promise) {
|
|
156
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
157
|
+
SBBImageOperations.imageRefSerialize(
|
|
158
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
159
|
+
)
|
|
160
|
+
}
|
|
147
161
|
}
|
|
148
162
|
|
|
149
163
|
@ReactMethod
|
|
150
|
-
fun
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
164
|
+
fun imageRefFromImageFileUri(args: ReadableMap, promise: Promise) {
|
|
165
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
166
|
+
SBBImageOperations.imageRefFromImageFileUri(
|
|
167
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
168
|
+
)
|
|
169
|
+
}
|
|
154
170
|
}
|
|
155
171
|
|
|
156
172
|
@ReactMethod
|
|
157
|
-
fun
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
173
|
+
fun imageRefFromEncodedBuffer(args: ReadableMap, promise: Promise) {
|
|
174
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
175
|
+
SBBImageOperations.imageRefFromEncodedBuffer(
|
|
176
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
177
|
+
)
|
|
178
|
+
}
|
|
161
179
|
}
|
|
162
180
|
|
|
163
181
|
@ReactMethod
|
|
164
|
-
fun imageRefHibernate(
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
182
|
+
fun imageRefHibernate(args: ReadableMap, promise: Promise) {
|
|
183
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
184
|
+
SBBImageOperations.imageRefHibernate(
|
|
185
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
186
|
+
)
|
|
187
|
+
}
|
|
168
188
|
}
|
|
169
189
|
|
|
170
190
|
@ReactMethod
|
|
171
|
-
fun imageRefClear(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
191
|
+
fun imageRefClear(args: ReadableMap, promise: Promise) {
|
|
192
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
193
|
+
SBBImageOperations.imageRefClear(
|
|
194
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
195
|
+
)
|
|
196
|
+
}
|
|
175
197
|
}
|
|
176
198
|
|
|
177
199
|
@ReactMethod
|
|
178
|
-
fun imageRefInfo(
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
200
|
+
fun imageRefInfo(args: ReadableMap, promise: Promise) {
|
|
201
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
202
|
+
SBBImageOperations.imageRefInfo(
|
|
203
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
204
|
+
)
|
|
205
|
+
}
|
|
182
206
|
}
|
|
183
207
|
|
|
184
208
|
@ReactMethod
|
|
185
|
-
fun imageRefSaveImage(
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
209
|
+
fun imageRefSaveImage(args: ReadableMap, promise: Promise) {
|
|
210
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
211
|
+
SBBImageOperations.imageRefSaveImage(
|
|
212
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
213
|
+
)
|
|
214
|
+
}
|
|
189
215
|
}
|
|
190
216
|
|
|
191
217
|
@ReactMethod
|
|
192
|
-
fun imageRefEncodeImage(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
218
|
+
fun imageRefEncodeImage(args: ReadableMap, promise: Promise) {
|
|
219
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
220
|
+
SBBImageOperations.imageRefEncodeImage(
|
|
221
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
222
|
+
)
|
|
223
|
+
}
|
|
196
224
|
}
|
|
197
225
|
|
|
198
226
|
@ReactMethod
|
|
199
|
-
fun imageRefRelease(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
227
|
+
fun imageRefRelease(args: ReadableMap, promise: Promise) {
|
|
228
|
+
runOperationWithJSONParam(args, promise) { argsAsJSON ->
|
|
229
|
+
SBBImageOperations.imageRefRelease(
|
|
230
|
+
argsAsJSON, ScanbotBarcodeSdkPluginResultDelegate(promise)
|
|
231
|
+
)
|
|
232
|
+
}
|
|
203
233
|
}
|
|
204
234
|
|
|
205
235
|
@ReactMethod
|
|
@@ -256,7 +286,13 @@ class ScanbotBarcodeSdkModule(reactContext: ReactApplicationContext) :
|
|
|
256
286
|
try {
|
|
257
287
|
configurationAsJSON = configuration.toJSON()
|
|
258
288
|
} catch (ex: JSONException) {
|
|
259
|
-
|
|
289
|
+
SBWrapperError(
|
|
290
|
+
SBWrapperError.ArgumentError(
|
|
291
|
+
ex.message ?: "Input parameter is not a valid JSON"
|
|
292
|
+
)
|
|
293
|
+
).let { error ->
|
|
294
|
+
promise.reject(error.code.toString(), error.message)
|
|
295
|
+
}
|
|
260
296
|
return
|
|
261
297
|
}
|
|
262
298
|
|
|
@@ -273,14 +309,26 @@ class ScanbotBarcodeSdkModule(reactContext: ReactApplicationContext) :
|
|
|
273
309
|
try {
|
|
274
310
|
configurationAsJSON = configuration.toJSON()
|
|
275
311
|
} catch (ex: JSONException) {
|
|
276
|
-
|
|
312
|
+
SBWrapperError(
|
|
313
|
+
SBWrapperError.ArgumentError(
|
|
314
|
+
ex.message ?: "Input parameter is not a valid JSON"
|
|
315
|
+
)
|
|
316
|
+
).let { error ->
|
|
317
|
+
promise.reject(error.code.toString(), error.message)
|
|
318
|
+
}
|
|
277
319
|
return
|
|
278
320
|
}
|
|
279
321
|
|
|
280
322
|
reactApplicationContext?.currentActivity?.let {
|
|
281
323
|
operation(configurationAsJSON, it)
|
|
282
324
|
} ?: run {
|
|
283
|
-
|
|
325
|
+
SBWrapperError(
|
|
326
|
+
SBWrapperError.OperationError(
|
|
327
|
+
"RTU UI", "ScanbotBarcodeSdkModule is not attached to activity"
|
|
328
|
+
)
|
|
329
|
+
).let { error ->
|
|
330
|
+
promise.reject(error.code.toString(), error.message)
|
|
331
|
+
}
|
|
284
332
|
}
|
|
285
333
|
}
|
|
286
334
|
|
|
@@ -3,6 +3,7 @@ package io.scanbot.barcodesdk.plugin.reactnative
|
|
|
3
3
|
import com.facebook.react.bridge.Promise
|
|
4
4
|
import io.scanbot.barcodesdk.plugin.reactnative.extensions.toWritableArray
|
|
5
5
|
import io.scanbot.barcodesdk.plugin.reactnative.extensions.toWritableMap
|
|
6
|
+
import io.scanbot.sdk_wrapper.exceptions.SBWrapperError
|
|
6
7
|
import io.scanbot.sdk_wrapper.interfaces.SBResultDelegate
|
|
7
8
|
import org.json.JSONArray
|
|
8
9
|
import org.json.JSONObject
|
|
@@ -19,7 +20,7 @@ class ScanbotBarcodeSdkPluginResultDelegate(private val promise: Promise) : SBRe
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
override fun onRejectPromise(error:
|
|
23
|
-
promise.reject(
|
|
23
|
+
override fun onRejectPromise(error: SBWrapperError) {
|
|
24
|
+
promise.reject(error.code.toString(), error.message)
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -22,18 +22,18 @@ import io.scanbot.barcodesdk.plugin.reactnative.components.barcode_scanner_view.
|
|
|
22
22
|
import io.scanbot.barcodesdk.plugin.reactnative.components.barcode_scanner_view.models.PolygonStyleConfig
|
|
23
23
|
import io.scanbot.barcodesdk.plugin.reactnative.components.barcode_scanner_view.models.TextStyleConfig
|
|
24
24
|
import io.scanbot.barcodesdk.plugin.reactnative.extensions.toPx
|
|
25
|
+
import io.scanbot.common.Result
|
|
25
26
|
import io.scanbot.sdk.barcode.BarcodeItem
|
|
27
|
+
import io.scanbot.sdk.barcode.BarcodeScanner
|
|
26
28
|
import io.scanbot.sdk.barcode.BarcodeScannerResult
|
|
27
29
|
import io.scanbot.sdk.barcode.ui.BarcodePolygonsView
|
|
28
|
-
import io.scanbot.sdk.barcode.ui.BarcodePolygonsView.BarcodeStringDelegate
|
|
29
30
|
import io.scanbot.sdk.barcode.ui.BarcodeScannerView
|
|
30
31
|
import io.scanbot.sdk.barcode.ui.IBarcodeScannerFinderViewController
|
|
31
32
|
import io.scanbot.sdk.barcode.ui.IBarcodeScannerSelectionOverlayController
|
|
32
33
|
import io.scanbot.sdk.barcode.ui.IBarcodeScannerViewCallback
|
|
33
34
|
import io.scanbot.sdk.barcode_scanner.ScanbotBarcodeScannerSDK
|
|
34
35
|
import io.scanbot.sdk.camera.CaptureInfo
|
|
35
|
-
import io.scanbot.sdk.
|
|
36
|
-
import io.scanbot.sdk.util.log.LoggerProvider
|
|
36
|
+
import io.scanbot.sdk.image.ImageRef
|
|
37
37
|
import io.scanbot.sdk_wrapper.barcode.extensions.uuid
|
|
38
38
|
|
|
39
39
|
class ScanbotBarcodeScannerView(
|
|
@@ -52,9 +52,25 @@ class ScanbotBarcodeScannerView(
|
|
|
52
52
|
private const val BARCODE_SCANNING_INTERVAL = 0L
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
var initializationError: Throwable =
|
|
56
|
+
Result.ComponentUnavailableError("BarcodeScanner not initialized")
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
var barcodeScanner: BarcodeScanner? = null
|
|
59
|
+
get() {
|
|
60
|
+
if (field == null) {
|
|
61
|
+
sendEvent(BarcodeErrorEvent(initializationError))
|
|
62
|
+
}
|
|
63
|
+
return field
|
|
64
|
+
}
|
|
65
|
+
private set
|
|
66
|
+
|
|
67
|
+
var scannerView: BarcodeScannerView? = null
|
|
68
|
+
get() {
|
|
69
|
+
if (field == null) {
|
|
70
|
+
sendEvent(BarcodeErrorEvent(initializationError))
|
|
71
|
+
}
|
|
72
|
+
return field
|
|
73
|
+
}
|
|
58
74
|
private set
|
|
59
75
|
|
|
60
76
|
var flashState: Boolean = INITIAL_FLASH_STATE
|
|
@@ -80,50 +96,57 @@ class ScanbotBarcodeScannerView(
|
|
|
80
96
|
}
|
|
81
97
|
|
|
82
98
|
init {
|
|
83
|
-
initBarcodeScannerView()
|
|
84
|
-
|
|
85
99
|
layoutParams = ViewGroup.LayoutParams(
|
|
86
100
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
|
87
101
|
ViewGroup.LayoutParams.MATCH_PARENT,
|
|
88
102
|
)
|
|
89
|
-
|
|
90
103
|
setBackgroundColor(Color.BLACK)
|
|
91
104
|
|
|
92
|
-
|
|
105
|
+
initBarcodeScannerView()
|
|
93
106
|
}
|
|
94
107
|
|
|
95
108
|
private fun initBarcodeScannerView() {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
try {
|
|
110
|
+
ScanbotBarcodeScannerSDK(context).createBarcodeScanner().getOrThrow().let {
|
|
111
|
+
barcodeScanner = it
|
|
112
|
+
scannerView = BarcodeScannerView(context).apply {
|
|
113
|
+
initCamera()
|
|
114
|
+
initScanningBehavior(it, { result, _ ->
|
|
115
|
+
try {
|
|
116
|
+
result.getOrThrow().let { barcodeResult ->
|
|
117
|
+
sendEvent(BarcodeScannerResultEvent(barcodeResult))
|
|
118
|
+
addBarcodeItemOverlayViewInitialBinder(barcodeResult)
|
|
119
|
+
}
|
|
120
|
+
} catch (ex: Throwable) {
|
|
121
|
+
sendEvent(BarcodeErrorEvent(ex))
|
|
122
|
+
}
|
|
123
|
+
false
|
|
124
|
+
}, object : IBarcodeScannerViewCallback {
|
|
125
|
+
override fun onCameraOpen() {
|
|
126
|
+
viewController.useFlash(flashState)
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
override fun onPictureTaken(image: ImageRef, captureInfo: CaptureInfo) {
|
|
130
|
+
// NO-OP
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
override fun onSelectionOverlayBarcodeClicked(barcodeItem: BarcodeItem) {
|
|
134
|
+
sendEvent(BarcodeSelectionResultEvent(barcodeItem))
|
|
135
|
+
}
|
|
136
|
+
})
|
|
137
|
+
|
|
138
|
+
viewController.barcodeScanningInterval = BARCODE_SCANNING_INTERVAL
|
|
139
|
+
|
|
140
|
+
configureFinderViewControllerWithDefaults(finderViewController)
|
|
141
|
+
|
|
142
|
+
cameraConfiguration.setPhysicalZoomRange(CameraConfiguration.DEFAULT_ZOOM_RANGE)
|
|
143
|
+
|
|
144
|
+
configureSelectionOverlayControllerWithDefaults(selectionOverlayController)
|
|
104
145
|
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
viewController.useFlash(flashState)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
override fun onPictureTaken(image: ByteArray, captureInfo: CaptureInfo) {
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
override fun onSelectionOverlayBarcodeClicked(barcodeItem: BarcodeItem) {
|
|
116
|
-
sendEvent(BarcodeSelectionResultEvent(barcodeItem))
|
|
117
|
-
}
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
viewController.barcodeScanningInterval = BARCODE_SCANNING_INTERVAL
|
|
121
|
-
|
|
122
|
-
configureFinderViewControllerWithDefaults(finderViewController)
|
|
123
|
-
|
|
124
|
-
cameraConfiguration.setPhysicalZoomRange(CameraConfiguration.DEFAULT_ZOOM_RANGE)
|
|
125
|
-
|
|
126
|
-
configureSelectionOverlayControllerWithDefaults(selectionOverlayController)
|
|
146
|
+
addView(scannerView)
|
|
147
|
+
}
|
|
148
|
+
} catch (ex: Throwable) {
|
|
149
|
+
initializationError = ex
|
|
127
150
|
}
|
|
128
151
|
}
|
|
129
152
|
|
|
@@ -180,11 +203,15 @@ class ScanbotBarcodeScannerView(
|
|
|
180
203
|
|
|
181
204
|
override fun onAttachedToWindow() {
|
|
182
205
|
super.onAttachedToWindow()
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
206
|
+
if (scannerView?.viewController != null) {
|
|
207
|
+
findViewTreeLifecycleOwner()?.let {
|
|
208
|
+
it.lifecycle.addObserver(lifecycleObserver)
|
|
209
|
+
scannerView?.viewController?.setLifecycleOwner(it)
|
|
210
|
+
} ?: run {
|
|
211
|
+
sendEvent(BarcodeErrorEvent(Result.ComponentUnavailableError("No lifecycle owner found")))
|
|
212
|
+
}
|
|
213
|
+
} else {
|
|
214
|
+
sendEvent(BarcodeErrorEvent(Result.ComponentUnavailableError("No scanner view controller found")))
|
|
188
215
|
}
|
|
189
216
|
}
|
|
190
217
|
|
|
@@ -203,11 +230,10 @@ class ScanbotBarcodeScannerView(
|
|
|
203
230
|
layout(left, top, right, bottom)
|
|
204
231
|
}
|
|
205
232
|
|
|
206
|
-
|
|
233
|
+
fun sendEvent(event: BaseEvent) {
|
|
207
234
|
val surfaceId = UIManagerHelper.getSurfaceId(this)
|
|
208
235
|
|
|
209
|
-
|
|
210
|
-
?.dispatchEvent(ComponentEvent(event, surfaceId, id))
|
|
236
|
+
event.send(surfaceId, context as ReactContext, id)
|
|
211
237
|
}
|
|
212
238
|
|
|
213
239
|
private fun requestCameraPermissionIfNotGranted() {
|
|
@@ -228,7 +254,7 @@ class ScanbotBarcodeScannerView(
|
|
|
228
254
|
}
|
|
229
255
|
|
|
230
256
|
fun setOverlayAppearance() {
|
|
231
|
-
scannerView
|
|
257
|
+
scannerView?.selectionOverlayController?.setBarcodeAppearanceDelegate(object :
|
|
232
258
|
BarcodePolygonsView.BarcodeAppearanceDelegate {
|
|
233
259
|
override fun getPolygonStyle(
|
|
234
260
|
defaultStyle: BarcodePolygonsView.BarcodePolygonStyle, barcodeItem: BarcodeItem
|
|
@@ -256,8 +282,8 @@ class ScanbotBarcodeScannerView(
|
|
|
256
282
|
}
|
|
257
283
|
})
|
|
258
284
|
|
|
259
|
-
scannerView
|
|
260
|
-
BarcodeStringDelegate {
|
|
285
|
+
scannerView?.selectionOverlayController?.setBarcodeStringDelegate(object :
|
|
286
|
+
BarcodePolygonsView.BarcodeStringDelegate {
|
|
261
287
|
override fun overrideString(string: String, barcodeItem: BarcodeItem): String {
|
|
262
288
|
val overlayViewConfig = getBarcodeItemOverlayViewBinder(barcodeItem)
|
|
263
289
|
|