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
|
@@ -1,24 +1,19 @@
|
|
|
1
|
-
|
|
2
1
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
3
|
-
#import "RNScanbotBarcodeScannerView.h"
|
|
4
2
|
|
|
5
|
-
#import
|
|
6
|
-
#import <
|
|
7
|
-
#import <react/renderer/components/RNScanbotBarcodeScannerViewSpec/Props.h>
|
|
8
|
-
#import <react/renderer/components/RNScanbotBarcodeScannerViewSpec/RCTComponentViewHelpers.h>
|
|
3
|
+
#import "RNScanbotBarcodeScannerView.h"
|
|
4
|
+
#import <ScanbotBarcodeScannerSDK/ScanbotBarcodeScannerSDK-Swift.h>
|
|
9
5
|
|
|
10
|
-
#
|
|
11
|
-
#import <
|
|
12
|
-
#
|
|
6
|
+
#if __has_include(<RNScanbotBarcodeSDK/RNScanbotBarcodeSDK-Swift.h>)
|
|
7
|
+
#import <RNScanbotBarcodeSDK/RNScanbotBarcodeSDK-Swift.h>
|
|
8
|
+
#else
|
|
9
|
+
#import "RNScanbotBarcodeSDK-Swift.h"
|
|
10
|
+
#endif
|
|
13
11
|
|
|
14
12
|
using namespace facebook::react;
|
|
15
13
|
|
|
16
|
-
@interface RNScanbotBarcodeScannerView() <RCTScanbotBarcodeScannerViewViewProtocol>
|
|
17
|
-
@property (strong, nonatomic)
|
|
18
|
-
@property (nonatomic) BOOL scanningEnabled;
|
|
14
|
+
@interface RNScanbotBarcodeScannerView() <RCTScanbotBarcodeScannerViewViewProtocol, RNScanbotBarcodeScannerEventDelegate>
|
|
15
|
+
@property (strong, nonatomic) RNScanbotBarcodeScannerViewController *scannerViewController;
|
|
19
16
|
@property (nonatomic) BOOL attached;
|
|
20
|
-
@property (nonatomic) NSString* _Nullable barcodeItemOverlayViewLoadingText;
|
|
21
|
-
@property (atomic) NSMutableDictionary* _Nullable barcodeItemOverlayViewBinders;
|
|
22
17
|
@end
|
|
23
18
|
|
|
24
19
|
@implementation RNScanbotBarcodeScannerView
|
|
@@ -33,38 +28,31 @@ using namespace facebook::react;
|
|
|
33
28
|
if (self = [super initWithFrame:frame]) {
|
|
34
29
|
static const auto defaultProps = std::make_shared<const ScanbotBarcodeScannerViewProps>();
|
|
35
30
|
_props = defaultProps;
|
|
36
|
-
_scanningEnabled = true;
|
|
37
|
-
_barcodeItemOverlayViewLoadingText = nil;
|
|
38
|
-
_barcodeItemOverlayViewBinders = nil;
|
|
39
31
|
self.attached = false;
|
|
40
32
|
|
|
41
|
-
self.scannerViewController = [
|
|
33
|
+
self.scannerViewController = [[RNScanbotBarcodeScannerViewController alloc] init];
|
|
34
|
+
[self.scannerViewController setDefaults];
|
|
42
35
|
self.scannerViewController.delegate = self;
|
|
43
|
-
self.scannerViewController.trackingOverlayController.delegate = self;
|
|
44
36
|
}
|
|
45
|
-
|
|
37
|
+
|
|
46
38
|
return self;
|
|
47
39
|
}
|
|
48
40
|
|
|
49
41
|
- (void)didMoveToWindow {
|
|
50
42
|
[super didMoveToWindow];
|
|
51
|
-
|
|
43
|
+
|
|
52
44
|
if(self.window && !self.attached){
|
|
53
|
-
[[self reactViewController]
|
|
45
|
+
[self.scannerViewController attachControllerWithParentViewController:[self reactViewController] inView:self];
|
|
54
46
|
self.attached = true;
|
|
55
47
|
}
|
|
56
48
|
}
|
|
57
49
|
|
|
58
50
|
- (void)prepareForRecycle {
|
|
59
51
|
self.scannerViewController.delegate = nil;
|
|
60
|
-
self.scannerViewController
|
|
61
|
-
[self.scannerViewController
|
|
62
|
-
|
|
52
|
+
[self.scannerViewController detachController];
|
|
53
|
+
[self.scannerViewController prepareForRecycle];
|
|
63
54
|
self.scannerViewController = nil;
|
|
64
|
-
|
|
65
|
-
self.barcodeItemOverlayViewLoadingText = nil;
|
|
66
|
-
self.barcodeItemOverlayViewBinders = nil;
|
|
67
|
-
|
|
55
|
+
|
|
68
56
|
static const auto defaultProps = std::make_shared<const ScanbotBarcodeScannerViewProps>();
|
|
69
57
|
self.attached = false;
|
|
70
58
|
_props = defaultProps;
|
|
@@ -74,399 +62,241 @@ using namespace facebook::react;
|
|
|
74
62
|
- (void)updateProps:(Props::Shared const &)props oldProps:(Props::Shared const &)oldProps
|
|
75
63
|
{
|
|
76
64
|
if (self.scannerViewController == nil) {
|
|
77
|
-
self.scannerViewController = [
|
|
65
|
+
self.scannerViewController = [[RNScanbotBarcodeScannerViewController alloc] init];
|
|
66
|
+
[self.scannerViewController setDefaults];
|
|
78
67
|
self.scannerViewController.delegate = self;
|
|
79
|
-
self.scannerViewController.trackingOverlayController.delegate = self;
|
|
80
68
|
}
|
|
81
|
-
|
|
69
|
+
|
|
82
70
|
const auto &oldViewProps = *std::static_pointer_cast<ScanbotBarcodeScannerViewProps const>(_props);
|
|
83
71
|
const auto &newViewProps = *std::static_pointer_cast<ScanbotBarcodeScannerViewProps const>(props);
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
SBSDKBaseScannerViewFinderConfiguration *finderConfig = self.scannerViewController.viewFinderConfiguration;
|
|
87
|
-
SBSDKBaseScannerZoomConfiguration *zoomConfig = self.scannerViewController.zoomConfiguration;
|
|
88
|
-
|
|
72
|
+
|
|
73
|
+
// MARK: General settings
|
|
89
74
|
if(oldViewProps.flashEnabled != newViewProps.flashEnabled){
|
|
90
|
-
[
|
|
75
|
+
[self.scannerViewController flashEnabled: newViewProps.flashEnabled];
|
|
91
76
|
}
|
|
92
77
|
if(oldViewProps.scanningEnabled != newViewProps.scanningEnabled){
|
|
93
|
-
self.scanningEnabled
|
|
78
|
+
[self.scannerViewController scanningEnabled: newViewProps.scanningEnabled];
|
|
94
79
|
}
|
|
95
80
|
if(oldViewProps.hardwareButtonsEnabled != newViewProps.hardwareButtonsEnabled){
|
|
96
|
-
[
|
|
81
|
+
[self.scannerViewController hardwareButtonsEnabled: newViewProps.hardwareButtonsEnabled];
|
|
97
82
|
}
|
|
98
|
-
// MARK:
|
|
83
|
+
// MARK: Finder Configuration Props
|
|
99
84
|
if(oldViewProps.finderEnabled != newViewProps.finderEnabled){
|
|
100
|
-
[
|
|
85
|
+
[self.scannerViewController finderEnabled:newViewProps.finderEnabled];
|
|
101
86
|
}
|
|
102
87
|
if(oldViewProps.finderStrokeWidth != newViewProps.finderStrokeWidth){
|
|
103
|
-
[
|
|
88
|
+
[self.scannerViewController finderStrokeWidth:@(newViewProps.finderStrokeWidth)];
|
|
104
89
|
}
|
|
105
90
|
if(oldViewProps.finderStrokeColor != newViewProps.finderStrokeColor){
|
|
106
|
-
[
|
|
91
|
+
[self.scannerViewController finderStrokeColor: RCTUIColorFromSharedColor(newViewProps.finderStrokeColor)];
|
|
107
92
|
}
|
|
108
93
|
if(oldViewProps.finderOverlayColor != newViewProps.finderOverlayColor){
|
|
109
|
-
[
|
|
94
|
+
[self.scannerViewController finderOverlayColor: RCTUIColorFromSharedColor(newViewProps.finderOverlayColor)];
|
|
110
95
|
}
|
|
111
96
|
if(oldViewProps.finderInset != newViewProps.finderInset){
|
|
112
|
-
[
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
right:newViewProps.finderInset.right];
|
|
97
|
+
[self.scannerViewController finderInsetsWithLeft: newViewProps.finderInset.left
|
|
98
|
+
top: newViewProps.finderInset.top
|
|
99
|
+
right: newViewProps.finderInset.right
|
|
100
|
+
bottom: newViewProps.finderInset.bottom];
|
|
117
101
|
}
|
|
118
102
|
if(oldViewProps.finderRequiredAspectRatios != newViewProps.finderRequiredAspectRatios){
|
|
119
|
-
[
|
|
120
|
-
|
|
121
|
-
height:newViewProps.finderRequiredAspectRatios.height];
|
|
103
|
+
[self.scannerViewController finderRequiredAspectRatiosWithWidth:newViewProps.finderRequiredAspectRatios.width
|
|
104
|
+
height:newViewProps.finderRequiredAspectRatios.height];
|
|
122
105
|
}
|
|
123
|
-
// MARK:
|
|
124
|
-
// MARK: CameraConfig Props
|
|
106
|
+
// MARK: Camera Configuration Props
|
|
125
107
|
if(oldViewProps.cameraZoomFactor != newViewProps.cameraZoomFactor){
|
|
126
|
-
[
|
|
108
|
+
[self.scannerViewController cameraZoomFactor:@(newViewProps.cameraZoomFactor)];
|
|
127
109
|
}
|
|
128
110
|
if(oldViewProps.cameraZoomRange != newViewProps.cameraZoomRange){
|
|
129
|
-
[
|
|
130
|
-
|
|
131
|
-
maxZoom:newViewProps.cameraZoomRange.maxZoom];
|
|
111
|
+
[self.scannerViewController cameraZoomRangeWithMinZoom:newViewProps.cameraZoomRange.minZoom
|
|
112
|
+
maxZoom:newViewProps.cameraZoomRange.maxZoom];
|
|
132
113
|
}
|
|
133
114
|
if(![self compareStringProps:oldViewProps.cameraModule withString:newViewProps.cameraModule]){
|
|
134
|
-
[
|
|
115
|
+
[self.scannerViewController cameraDevice:[self toNSString:newViewProps.cameraModule]];
|
|
135
116
|
}
|
|
136
117
|
if(oldViewProps.minFocusDistanceLock != newViewProps.minFocusDistanceLock){
|
|
137
|
-
[
|
|
118
|
+
[self.scannerViewController minFocusDistanceLock:newViewProps.minFocusDistanceLock];
|
|
138
119
|
}
|
|
139
|
-
// MARK: -
|
|
140
120
|
// MARK: Tracking Overlay Config
|
|
141
121
|
if(oldViewProps.overlayEnabled != newViewProps.overlayEnabled){
|
|
142
|
-
[
|
|
122
|
+
[self.scannerViewController overlayEnabled:newViewProps.overlayEnabled];
|
|
143
123
|
}
|
|
144
124
|
if(oldViewProps.overlayPolygonColor != newViewProps.overlayPolygonColor){
|
|
145
|
-
[
|
|
125
|
+
[self.scannerViewController overlayPolygonColor:RCTUIColorFromSharedColor(newViewProps.overlayPolygonColor)];
|
|
146
126
|
}
|
|
147
127
|
if(oldViewProps.overlayStrokeColor != newViewProps.overlayStrokeColor){
|
|
148
|
-
[
|
|
128
|
+
[self.scannerViewController overlayStrokeColor:RCTUIColorFromSharedColor(newViewProps.overlayStrokeColor)];
|
|
149
129
|
}
|
|
150
130
|
if(oldViewProps.overlayTextColor != newViewProps.overlayTextColor){
|
|
151
|
-
[
|
|
131
|
+
[self.scannerViewController overlayTextColor:RCTUIColorFromSharedColor(newViewProps.overlayTextColor)];
|
|
152
132
|
}
|
|
153
133
|
if(oldViewProps.overlayTextContainerColor != newViewProps.overlayTextContainerColor){
|
|
154
|
-
[
|
|
134
|
+
[self.scannerViewController overlayTextContainerColor:RCTUIColorFromSharedColor(newViewProps.overlayTextContainerColor)];
|
|
155
135
|
}
|
|
156
136
|
if(![self compareStringProps:oldViewProps.overlayTextFormat withString:newViewProps.overlayTextFormat]){
|
|
157
|
-
[
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
self.barcodeItemOverlayViewLoadingText = [self toNSString:newViewProps.overlayLoadingTextValue];
|
|
161
|
-
|
|
162
|
-
if(newViewProps.overlayBarcodeItemOverlayViewBinder != oldViewProps.overlayBarcodeItemOverlayViewBinder){
|
|
163
|
-
if (newViewProps.overlayBarcodeItemOverlayViewBinder) {
|
|
164
|
-
if (self.barcodeItemOverlayViewBinders == nil) {
|
|
165
|
-
self.barcodeItemOverlayViewBinders = [[NSMutableDictionary alloc] init];
|
|
166
|
-
}
|
|
167
|
-
} else {
|
|
168
|
-
self.barcodeItemOverlayViewBinders = nil;
|
|
169
|
-
}
|
|
137
|
+
[self.scannerViewController overlayTextFormat:[self toNSString:newViewProps.overlayTextFormat]];
|
|
170
138
|
}
|
|
171
|
-
|
|
139
|
+
if(![self compareStringProps:oldViewProps.overlayLoadingTextValue withString:newViewProps.overlayLoadingTextValue]){
|
|
140
|
+
[self.scannerViewController overlayLoadingTextValue:[self toNSString:newViewProps.overlayLoadingTextValue]];
|
|
141
|
+
}
|
|
142
|
+
if(oldViewProps.overlayBarcodeItemOverlayViewBinder != newViewProps.overlayBarcodeItemOverlayViewBinder){
|
|
143
|
+
[self.scannerViewController overlayViewBinder:newViewProps.overlayBarcodeItemOverlayViewBinder];
|
|
144
|
+
}
|
|
145
|
+
|
|
172
146
|
// MARK: BarcodeScanningConfiguration
|
|
173
147
|
if(oldViewProps.configFormatConfigurations != newViewProps.configFormatConfigurations){
|
|
174
|
-
NSMutableArray<
|
|
175
|
-
|
|
148
|
+
NSMutableArray<NSDictionary *> *formatConfigurations = [[NSMutableArray alloc] initWithCapacity:newViewProps.configExtractedDocumentFormats.size()];
|
|
176
149
|
for(const ScanbotBarcodeScannerViewConfigFormatConfigurationsStruct &item : newViewProps.configFormatConfigurations){
|
|
177
|
-
|
|
178
|
-
@"_type": [self toNSString: item._type],
|
|
179
|
-
@"regexFilter": [self toNSString:item.regexFilter],
|
|
180
|
-
@"minimumSizeScore": [NSNumber numberWithDouble:item.minimumSizeScore],
|
|
181
|
-
@"addAdditionalQuietZone": @(item.addAdditionalQuietZone),
|
|
182
|
-
@"minimum1DQuietZoneSize": [NSNumber numberWithDouble:item.minimum1DQuietZoneSize],
|
|
183
|
-
@"minimumTextLength": [NSNumber numberWithDouble:item.minimumTextLength],
|
|
184
|
-
@"maximumTextLength": [NSNumber numberWithDouble:item.maximumTextLength],
|
|
185
|
-
@"returnStartEnd": @(item.returnStartEnd),
|
|
186
|
-
@"stripCheckDigits": @(item.stripCheckDigits),
|
|
187
|
-
@"checksum": @(item.checksum),
|
|
188
|
-
@"code32": @(item.code32),
|
|
189
|
-
@"code39": @(item.code39),
|
|
190
|
-
@"pzn7": @(item.pzn7),
|
|
191
|
-
@"pzn8": @(item.pzn8),
|
|
192
|
-
@"tryCode39ExtendedMode": @(item.tryCode39ExtendedMode),
|
|
193
|
-
@"useCode39CheckDigit": @(item.useCode39CheckDigit),
|
|
194
|
-
@"gs1Handling": [self toNSString:item.gs1Handling],
|
|
195
|
-
@"iata2of5": @(item.iata2of5),
|
|
196
|
-
@"code25": @(item.code25),
|
|
197
|
-
@"industrial2of5": @(item.industrial2of5),
|
|
198
|
-
@"useIATA2OF5Checksum": @(item.useIATA2OF5Checksum),
|
|
199
|
-
@"checksumAlgorithms": [self vectorStringToNSArray:item.checksumAlgorithms],
|
|
200
|
-
@"ean8": @(item.ean8),
|
|
201
|
-
@"ean13": @(item.ean13),
|
|
202
|
-
@"upca": @(item.upca),
|
|
203
|
-
@"upce": @(item.upce),
|
|
204
|
-
@"extensions": [self toNSString: item.extensions],
|
|
205
|
-
@"minimumValue": [NSNumber numberWithDouble:item.minimumValue],
|
|
206
|
-
@"allowNarrowBarsOnly": @(item.allowNarrowBarsOnly),
|
|
207
|
-
@"allowWideBarsOnly": @(item.allowWideBarsOnly),
|
|
208
|
-
@"strictMode": @(item.strictMode),
|
|
209
|
-
@"qr": @(item.qr),
|
|
210
|
-
@"microQr": @(item.microQr),
|
|
211
|
-
@"rmqr": @(item.rmqr),
|
|
212
|
-
@"australiaPostCustomerFormat": [self toNSString:item.australiaPostCustomerFormat],
|
|
213
|
-
@"formats": [self vectorStringToNSArray:item.formats],
|
|
214
|
-
@"minimumNumberOfRequiredFramesWithEqualRecognitionResult": [NSNumber numberWithInt:item.minimumNumberOfRequiredFramesWithEqualRecognitionResult],
|
|
215
|
-
@"minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless": [NSNumber numberWithInt:item.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless]
|
|
216
|
-
}
|
|
217
|
-
options:NSJSONWritingSortedKeys
|
|
218
|
-
error:nil];
|
|
219
|
-
if(jsonData != nil){
|
|
220
|
-
NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
|
|
221
|
-
[formatConfigurations addObject:[SBSDKBarcodeFormatConfigurationBase fromJsonWithJson:jsonString]];
|
|
222
|
-
}
|
|
150
|
+
[formatConfigurations addObject:[self dictionaryFromFormatConfigurationStruct: item]];
|
|
223
151
|
}
|
|
224
|
-
|
|
225
|
-
|
|
152
|
+
|
|
153
|
+
[self.scannerViewController configFormatConfigurations:formatConfigurations];
|
|
226
154
|
}
|
|
227
155
|
if(oldViewProps.configExtractedDocumentFormats != newViewProps.configExtractedDocumentFormats){
|
|
228
156
|
NSMutableArray<NSString *> *formats = [[NSMutableArray alloc] initWithCapacity:newViewProps.configExtractedDocumentFormats.size()];
|
|
229
157
|
for (const std::string &str : newViewProps.configExtractedDocumentFormats) {
|
|
230
158
|
[formats addObject:[self toNSString:str]];
|
|
231
159
|
}
|
|
232
|
-
|
|
233
|
-
[
|
|
234
|
-
formats:formats];
|
|
160
|
+
|
|
161
|
+
[self.scannerViewController configExtractedDocumentFormats:formats];
|
|
235
162
|
}
|
|
236
163
|
if(oldViewProps.configOnlyAcceptDocuments != newViewProps.configOnlyAcceptDocuments){
|
|
237
|
-
[
|
|
238
|
-
value:newViewProps.configOnlyAcceptDocuments];
|
|
164
|
+
[self.scannerViewController configOnlyAcceptDocuments:newViewProps.configOnlyAcceptDocuments];
|
|
239
165
|
}
|
|
240
166
|
if(oldViewProps.configEngineMode != newViewProps.configEngineMode){
|
|
241
|
-
[
|
|
242
|
-
value:[self toNSString:newViewProps.configEngineMode]];
|
|
167
|
+
[self.scannerViewController configEngineMode:[self toNSString:newViewProps.configEngineMode]];
|
|
243
168
|
}
|
|
244
169
|
if(oldViewProps.configReturnBarcodeImage != newViewProps.configReturnBarcodeImage){
|
|
245
|
-
[
|
|
246
|
-
value:newViewProps.configReturnBarcodeImage];
|
|
170
|
+
[self.scannerViewController configReturnBarcodeImage:newViewProps.configReturnBarcodeImage];
|
|
247
171
|
}
|
|
248
172
|
if(oldViewProps.configOptimizedForOverlays != newViewProps.configOptimizedForOverlays){
|
|
249
|
-
[
|
|
250
|
-
value:newViewProps.configOptimizedForOverlays];
|
|
173
|
+
[self.scannerViewController configOptimizedForOverlays:newViewProps.configOptimizedForOverlays];
|
|
251
174
|
}
|
|
252
175
|
if(oldViewProps.configAccumulation != newViewProps.configAccumulation){
|
|
253
|
-
[
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
[self.scannerViewController setConfiguration:configuration];
|
|
260
|
-
self.scannerViewController.viewFinderConfiguration = finderConfig;
|
|
261
|
-
self.scannerViewController.zoomConfiguration = zoomConfig;
|
|
262
|
-
|
|
263
|
-
[super updateProps:props oldProps:oldProps];
|
|
264
|
-
}
|
|
176
|
+
[self.scannerViewController configAccumulationConfigurationWithAccumulationTime:newViewProps.configAccumulation.accumulationTime
|
|
177
|
+
removeUnconnectedResults:newViewProps.configAccumulation.removeUnconnectedResults
|
|
178
|
+
method:[self toNSString:newViewProps.configAccumulation.method]];
|
|
179
|
+
}
|
|
265
180
|
|
|
266
|
-
|
|
267
|
-
{
|
|
268
|
-
[self.scannerViewController freezeCamera];
|
|
269
|
-
}
|
|
270
|
-
- (void)unfreezeCamera
|
|
271
|
-
{
|
|
272
|
-
[self.scannerViewController unfreezeCamera];
|
|
181
|
+
[super updateProps:props oldProps:oldProps];
|
|
273
182
|
}
|
|
274
183
|
|
|
275
|
-
|
|
276
|
-
[RNScanbotBarcodeScannerViewControllerWrapper updateBarcodeItemOverlayViewBinderInDictionary:self.barcodeItemOverlayViewBinders
|
|
277
|
-
barcodeItemUuid:barcodeItemUuid
|
|
278
|
-
barcodeItemOverlayViewConfigJson:bindingConfigJson];
|
|
279
|
-
}
|
|
184
|
+
//MARK: Commands
|
|
280
185
|
|
|
281
186
|
- (void)handleCommand:(nonnull const NSString *)commandName
|
|
282
|
-
args:(nonnull const NSArray *)args
|
|
283
|
-
{
|
|
187
|
+
args:(nonnull const NSArray *)args {
|
|
284
188
|
RCTScanbotBarcodeScannerViewHandleCommand(self, commandName, args);
|
|
285
189
|
}
|
|
286
190
|
|
|
287
|
-
- (void)
|
|
288
|
-
|
|
289
|
-
if (_eventEmitter == nullptr) return;
|
|
290
|
-
if(codes.count == 0) return;
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
NSString *result = [RNScanbotBarcodeScannerViewControllerWrapper jsonFromResultOrNil:codes];
|
|
294
|
-
if (result != nil){
|
|
295
|
-
const auto &eventEmitter = std::dynamic_pointer_cast<const facebook::react::ScanbotBarcodeScannerViewEventEmitter>(_eventEmitter);
|
|
296
|
-
eventEmitter->onBarcodeScannerResult(facebook::react::ScanbotBarcodeScannerViewEventEmitter::OnBarcodeScannerResult{.result = std::string([result UTF8String])});
|
|
297
|
-
|
|
298
|
-
[RNScanbotBarcodeScannerViewControllerWrapper addBarcodeItemOverlayViewInitialBinderInDictionary:self.barcodeItemOverlayViewBinders
|
|
299
|
-
loadingText:self.barcodeItemOverlayViewLoadingText
|
|
300
|
-
barcodes:codes];
|
|
301
|
-
}
|
|
191
|
+
- (void)freezeCamera {
|
|
192
|
+
[self.scannerViewController freezeCamera];
|
|
302
193
|
}
|
|
303
194
|
|
|
304
|
-
- (void)
|
|
305
|
-
|
|
306
|
-
if (_eventEmitter == nullptr) return;
|
|
307
|
-
|
|
308
|
-
NSString *result = [RNScanbotBarcodeScannerViewControllerWrapper jsonFromBarcodeOrNil:barcode];
|
|
309
|
-
if(result != nil){
|
|
310
|
-
const auto &eventEmitter = std::dynamic_pointer_cast<const facebook::react::ScanbotBarcodeScannerViewEventEmitter>(_eventEmitter);
|
|
311
|
-
eventEmitter->onSelectBarcodeResult(facebook::react::ScanbotBarcodeScannerViewEventEmitter::OnSelectBarcodeResult{.result = std::string([result UTF8String])});
|
|
312
|
-
}
|
|
313
|
-
|
|
195
|
+
- (void)unfreezeCamera {
|
|
196
|
+
[self.scannerViewController unfreezeCamera];
|
|
314
197
|
}
|
|
315
198
|
|
|
316
|
-
-
|
|
317
|
-
|
|
318
|
-
proposedStyle:(SBSDKBarcodeTrackedViewPolygonStyle *)proposedStyle {
|
|
319
|
-
if (self.barcodeItemOverlayViewBinders != nil) {
|
|
320
|
-
NSDictionary *barcodeItemOverlayViewBinding = [self.barcodeItemOverlayViewBinders objectForKey:[barcode uuid]];
|
|
321
|
-
|
|
322
|
-
return [RNScanbotBarcodeScannerViewControllerWrapper scannedBarcodePolygonStyle:barcode
|
|
323
|
-
barcodeItemOverlayViewBinding:barcodeItemOverlayViewBinding
|
|
324
|
-
proposedStyle:proposedStyle];
|
|
325
|
-
} else {
|
|
326
|
-
return proposedStyle;
|
|
327
|
-
}
|
|
199
|
+
-(void)bindBarcodeItemOverlayView:(NSString *)barcodeItemUuid bindingConfig:(NSString *)bindingConfig{
|
|
200
|
+
[self.scannerViewController bindBarcodeItemOverlayViewWithBarcodeID:barcodeItemUuid bindingConfigJson:bindingConfig];
|
|
328
201
|
}
|
|
329
202
|
|
|
330
|
-
|
|
331
|
-
textStyleFor:(SBSDKBarcodeItem *)barcode
|
|
332
|
-
proposedStyle:(SBSDKBarcodeTrackedViewTextStyle *)proposedStyle{
|
|
333
|
-
if (self.barcodeItemOverlayViewBinders != nil) {
|
|
334
|
-
NSDictionary *barcodeItemOverlayViewBinding = [self.barcodeItemOverlayViewBinders objectForKey:[barcode uuid]];
|
|
335
|
-
|
|
336
|
-
return [RNScanbotBarcodeScannerViewControllerWrapper scannedBarcodeOverlayViewTextStyle:barcode
|
|
337
|
-
barcodeItemOverlayViewBinding:barcodeItemOverlayViewBinding
|
|
338
|
-
proposedStyle:proposedStyle];
|
|
339
|
-
} else {
|
|
340
|
-
return proposedStyle;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
203
|
+
//MARK: Delegate Events
|
|
343
204
|
|
|
344
|
-
- (
|
|
345
|
-
|
|
346
|
-
NSString * _Nonnull barcodeItemUuid = [barcode uuid];
|
|
347
|
-
NSDictionary * _Nullable barcodeItemOverlayViewBinding = nil;
|
|
348
|
-
|
|
349
|
-
if (self.barcodeItemOverlayViewBinders != nil) {
|
|
350
|
-
barcodeItemOverlayViewBinding = [self.barcodeItemOverlayViewBinders objectForKey:barcodeItemUuid];
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
return [RNScanbotBarcodeScannerViewControllerWrapper scannedBarcodeOverlayViewText:barcodeItemUuid
|
|
354
|
-
proposedString:proposedString
|
|
355
|
-
barcodeItemOverlayViewBinding:barcodeItemOverlayViewBinding];
|
|
356
|
-
}
|
|
205
|
+
- (void)onScannedBarcode:(NSString *)barcode {
|
|
206
|
+
if (_eventEmitter == nullptr) return;
|
|
357
207
|
|
|
358
|
-
|
|
359
|
-
|
|
208
|
+
const auto &eventEmitter = std::dynamic_pointer_cast<const facebook::react::ScanbotBarcodeScannerViewEventEmitter>(_eventEmitter);
|
|
209
|
+
eventEmitter->onBarcodeScannerResult(facebook::react::ScanbotBarcodeScannerViewEventEmitter::OnBarcodeScannerResult{.result = std::string([barcode UTF8String])});
|
|
360
210
|
}
|
|
361
211
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
}
|
|
212
|
+
- (void)onSelectedBarcode:(NSString *)barcode {
|
|
213
|
+
if (_eventEmitter == nullptr) return;
|
|
365
214
|
|
|
366
|
-
|
|
367
|
-
|
|
215
|
+
const auto &eventEmitter = std::dynamic_pointer_cast<const facebook::react::ScanbotBarcodeScannerViewEventEmitter>(_eventEmitter);
|
|
216
|
+
eventEmitter->onSelectBarcodeResult(facebook::react::ScanbotBarcodeScannerViewEventEmitter::OnSelectBarcodeResult{.result = std::string([barcode UTF8String])});
|
|
368
217
|
}
|
|
369
218
|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
}
|
|
219
|
+
- (void)onError:(NSString * _Nonnull)errorMessage errorCode:(NSInteger)errorCode {
|
|
220
|
+
if (_eventEmitter == nullptr) return;
|
|
373
221
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
if(v1[i] != v2[i]){
|
|
380
|
-
return true;
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
return false;
|
|
222
|
+
const auto &eventEmitter = std::dynamic_pointer_cast<const facebook::react::ScanbotBarcodeScannerViewEventEmitter>(_eventEmitter);
|
|
223
|
+
eventEmitter->onError(facebook::react::ScanbotBarcodeScannerViewEventEmitter::OnError{
|
|
224
|
+
.message = std::string([errorMessage UTF8String]),
|
|
225
|
+
.code = (int)errorCode
|
|
226
|
+
});
|
|
385
227
|
}
|
|
386
228
|
|
|
387
|
-
bool operator!=(std::vector<ScanbotBarcodeScannerViewConfigFormatConfigurationsStruct> const &v1, std::vector<ScanbotBarcodeScannerViewConfigFormatConfigurationsStruct> const &v2){
|
|
388
|
-
|
|
389
|
-
if(v1.size() != v2.size()) return true;
|
|
390
|
-
|
|
391
|
-
for(int i = 0; i< v1.size(); i++){
|
|
392
|
-
if(
|
|
393
|
-
v1[i]._type != v2[i]._type ||
|
|
394
|
-
v1[i].regexFilter != v2[i].regexFilter ||
|
|
395
|
-
v1[i].minimumSizeScore != v2[i].minimumSizeScore ||
|
|
396
|
-
v1[i].addAdditionalQuietZone != v2[i].addAdditionalQuietZone ||
|
|
397
|
-
v1[i].minimum1DQuietZoneSize != v2[i].minimum1DQuietZoneSize ||
|
|
398
|
-
v1[i].minimumTextLength != v2[i].minimumTextLength ||
|
|
399
|
-
v1[i].maximumTextLength != v2[i].maximumTextLength ||
|
|
400
|
-
v1[i].returnStartEnd != v2[i].returnStartEnd ||
|
|
401
|
-
v1[i].stripCheckDigits != v2[i].stripCheckDigits ||
|
|
402
|
-
v1[i].checksum != v2[i].checksum ||
|
|
403
|
-
v1[i].code32 != v2[i].code32 ||
|
|
404
|
-
v1[i].code39 != v2[i].code39 ||
|
|
405
|
-
v1[i].pzn7 != v2[i].pzn7 ||
|
|
406
|
-
v1[i].pzn8 != v2[i].pzn8 ||
|
|
407
|
-
v1[i].tryCode39ExtendedMode != v2[i].tryCode39ExtendedMode ||
|
|
408
|
-
v1[i].useCode39CheckDigit != v2[i].useCode39CheckDigit ||
|
|
409
|
-
v1[i].gs1Handling != v2[i].gs1Handling ||
|
|
410
|
-
v1[i].iata2of5 != v2[i].iata2of5 ||
|
|
411
|
-
v1[i].code25 != v2[i].code25 ||
|
|
412
|
-
v1[i].industrial2of5 != v2[i].industrial2of5 ||
|
|
413
|
-
v1[i].useIATA2OF5Checksum != v2[i].useIATA2OF5Checksum ||
|
|
414
|
-
v1[i].checksumAlgorithms != v2[i].checksumAlgorithms ||
|
|
415
|
-
v1[i].ean8 != v2[i].ean8 ||
|
|
416
|
-
v1[i].ean13 != v2[i].ean13 ||
|
|
417
|
-
v1[i].upca != v2[i].upca ||
|
|
418
|
-
v1[i].upce != v2[i].upce ||
|
|
419
|
-
v1[i].extensions != v2[i].extensions ||
|
|
420
|
-
v1[i].minimumValue != v2[i].minimumValue ||
|
|
421
|
-
v1[i].allowNarrowBarsOnly != v2[i].allowNarrowBarsOnly ||
|
|
422
|
-
v1[i].allowWideBarsOnly != v2[i].allowWideBarsOnly ||
|
|
423
|
-
v1[i].strictMode != v2[i].strictMode ||
|
|
424
|
-
v1[i].qr != v2[i].qr ||
|
|
425
|
-
v1[i].microQr != v2[i].microQr ||
|
|
426
|
-
v1[i].rmqr != v2[i].rmqr ||
|
|
427
|
-
v1[i].minimumValue != v2[i].minimumValue ||
|
|
428
|
-
v1[i].allowNarrowBarsOnly != v2[i].allowNarrowBarsOnly ||
|
|
429
|
-
v1[i].allowWideBarsOnly != v2[i].allowWideBarsOnly ||
|
|
430
|
-
v1[i].strictMode != v2[i].strictMode ||
|
|
431
|
-
v1[i].qr != v2[i].qr ||
|
|
432
|
-
v1[i].australiaPostCustomerFormat != v2[i].australiaPostCustomerFormat ||
|
|
433
|
-
v1[i].formats != v2[i].formats
|
|
434
|
-
){
|
|
435
|
-
return true;
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
return false;
|
|
440
|
-
|
|
441
|
-
}
|
|
442
|
-
bool operator!=(ScanbotBarcodeScannerViewConfigAccumulationStruct const &i, ScanbotBarcodeScannerViewConfigAccumulationStruct const &j) {
|
|
443
|
-
return i.accumulationTime != j.accumulationTime ||
|
|
444
|
-
i.method != j.method ||
|
|
445
|
-
i.removeUnconnectedResults != j.removeUnconnectedResults;
|
|
446
|
-
}
|
|
447
229
|
|
|
448
|
-
|
|
230
|
+
//MARK: Utils
|
|
231
|
+
|
|
232
|
+
- (nonnull NSString*)toNSString:(const std::string) value {
|
|
449
233
|
return [[NSString alloc] initWithCString:value.c_str() encoding:NSUTF8StringEncoding];
|
|
450
234
|
}
|
|
451
235
|
|
|
452
|
-
- (NSArray*)vectorStringToNSArray:(std::vector<std::string>) vector {
|
|
236
|
+
- (nonnull NSArray*)vectorStringToNSArray:(const std::vector<std::string>) vector {
|
|
453
237
|
NSMutableArray* nsArray = [NSMutableArray array];
|
|
454
|
-
|
|
238
|
+
|
|
455
239
|
for (auto const& value : vector) {
|
|
456
240
|
[nsArray addObject:[self toNSString:value]];
|
|
457
241
|
}
|
|
458
|
-
|
|
242
|
+
|
|
459
243
|
return nsArray;
|
|
460
244
|
}
|
|
461
245
|
|
|
462
|
-
- (BOOL)compareStringProps:(std::string)oldProp withString:(std::string)newProp {
|
|
246
|
+
- (BOOL)compareStringProps:(const std::string)oldProp withString:(const std::string)newProp {
|
|
463
247
|
return [[self toNSString:oldProp] isEqualToString:[self toNSString:newProp]];
|
|
464
248
|
}
|
|
465
249
|
|
|
250
|
+
- (nonnull NSDictionary *)dictionaryFromFormatConfigurationStruct:(const ScanbotBarcodeScannerViewConfigFormatConfigurationsStruct &)item {
|
|
251
|
+
return @{
|
|
252
|
+
@"_type": [self toNSString: item._type],
|
|
253
|
+
@"regexFilter": [self toNSString:item.regexFilter],
|
|
254
|
+
@"minimumSizeScore": [NSNumber numberWithDouble:item.minimumSizeScore],
|
|
255
|
+
@"addAdditionalQuietZone": @(item.addAdditionalQuietZone),
|
|
256
|
+
@"minimum1DQuietZoneSize": [NSNumber numberWithDouble:item.minimum1DQuietZoneSize],
|
|
257
|
+
@"minimumTextLength": [NSNumber numberWithDouble:item.minimumTextLength],
|
|
258
|
+
@"maximumTextLength": [NSNumber numberWithDouble:item.maximumTextLength],
|
|
259
|
+
@"enableOneDBlurScanner": @(item.enableOneDBlurScanner),
|
|
260
|
+
@"returnStartEnd": @(item.returnStartEnd),
|
|
261
|
+
@"stripCheckDigits": @(item.stripCheckDigits),
|
|
262
|
+
@"checksum": @(item.checksum),
|
|
263
|
+
@"code32": @(item.code32),
|
|
264
|
+
@"code39": @(item.code39),
|
|
265
|
+
@"pzn7": @(item.pzn7),
|
|
266
|
+
@"pzn8": @(item.pzn8),
|
|
267
|
+
@"tryCode39ExtendedMode": @(item.tryCode39ExtendedMode),
|
|
268
|
+
@"useCode39CheckDigit": @(item.useCode39CheckDigit),
|
|
269
|
+
@"gs1Handling": [self toNSString:item.gs1Handling],
|
|
270
|
+
@"iata2of5": @(item.iata2of5),
|
|
271
|
+
@"code25": @(item.code25),
|
|
272
|
+
@"industrial2of5": @(item.industrial2of5),
|
|
273
|
+
@"useIATA2OF5Checksum": @(item.useIATA2OF5Checksum),
|
|
274
|
+
@"checksumAlgorithms": [self vectorStringToNSArray:item.checksumAlgorithms],
|
|
275
|
+
@"ean8": @(item.ean8),
|
|
276
|
+
@"ean13": @(item.ean13),
|
|
277
|
+
@"upca": @(item.upca),
|
|
278
|
+
@"upce": @(item.upce),
|
|
279
|
+
@"extensions": [self toNSString: item.extensions],
|
|
280
|
+
@"minimumValue": [NSNumber numberWithDouble:item.minimumValue],
|
|
281
|
+
@"allowNarrowBarsOnly": @(item.allowNarrowBarsOnly),
|
|
282
|
+
@"allowWideBarsOnly": @(item.allowWideBarsOnly),
|
|
283
|
+
@"strictMode": @(item.strictMode),
|
|
284
|
+
@"qr": @(item.qr),
|
|
285
|
+
@"microQr": @(item.microQr),
|
|
286
|
+
@"rmqr": @(item.rmqr),
|
|
287
|
+
@"australiaPostCustomerFormat": [self toNSString:item.australiaPostCustomerFormat],
|
|
288
|
+
@"formats": [self vectorStringToNSArray:item.formats],
|
|
289
|
+
@"minimumNumberOfRequiredFramesWithEqualRecognitionResult": [NSNumber numberWithInt:item.minimumNumberOfRequiredFramesWithEqualRecognitionResult],
|
|
290
|
+
@"minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless": [NSNumber numberWithInt:item.minimumNumberOfRequiredFramesWithEqualRecognitionResultExtensionless],
|
|
291
|
+
@"oneDConfirmationMode": [self toNSString: item.oneDConfirmationMode]
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
|
|
466
295
|
@end
|
|
467
296
|
|
|
468
297
|
Class<RCTComponentViewProtocol> ScanbotBarcodeScannerViewCls(void)
|
|
469
298
|
{
|
|
470
299
|
return RNScanbotBarcodeScannerView.class;
|
|
471
300
|
}
|
|
301
|
+
|
|
472
302
|
#endif
|