scandit-capacitor-datacapture-barcode 8.6.2 → 8.7.0
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/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.java +11 -7
- package/dist/barcode.js +13989 -5472
- package/dist/barcode.js.map +1 -1
- package/dist/dts/barcode.d.ts +14273 -4329
- package/dist/dts/index.d.ts +1436 -5
- package/dist/index.js +106 -16
- package/dist/index.js.map +1 -1
- package/ios/Sources/ScanditCapacitorBarcode/ScanditBarcodeCapture.swift +11 -10
- package/package.json +3 -2
|
@@ -15,7 +15,7 @@ class ScanditCapacitorBarcode: CAPPlugin, CAPBridgedPlugin {
|
|
|
15
15
|
public let identifier = "ScanditCapacitorBarcode"
|
|
16
16
|
public let jsName = "ScanditBarcodeNative"
|
|
17
17
|
public let pluginMethods: [CAPPluginMethod] = [
|
|
18
|
-
CAPPluginMethod(name: "
|
|
18
|
+
CAPPluginMethod(name: "getDynamicDefaults", returnType: CAPPluginReturnPromise),
|
|
19
19
|
CAPPluginMethod(name: "setBarcodeCountViewPositionAndSize", returnType: CAPPluginReturnPromise),
|
|
20
20
|
CAPPluginMethod(name: "createBarcodeCountView", returnType: CAPPluginReturnPromise),
|
|
21
21
|
CAPPluginMethod(name: "removeBarcodeCountView", returnType: CAPPluginReturnPromise),
|
|
@@ -50,26 +50,27 @@ class ScanditCapacitorBarcode: CAPPlugin, CAPBridgedPlugin {
|
|
|
50
50
|
|
|
51
51
|
override func load() {
|
|
52
52
|
let emitter = CapacitorEventEmitter(with: self)
|
|
53
|
+
let registryEmitter = RegistryEmitter(platformEmitter: emitter)
|
|
53
54
|
DefaultServiceLocator.shared.register(module: barcodeModule)
|
|
54
55
|
|
|
55
|
-
barcodeCaptureModule = BarcodeCaptureModule(emitter:
|
|
56
|
+
barcodeCaptureModule = BarcodeCaptureModule(emitter: registryEmitter)
|
|
56
57
|
DefaultServiceLocator.shared.register(module: barcodeCaptureModule)
|
|
57
58
|
|
|
58
|
-
barcodeBatchModule = BarcodeBatchModule(emitter:
|
|
59
|
+
barcodeBatchModule = BarcodeBatchModule(emitter: registryEmitter, viewFromJsonResolver: nil)
|
|
59
60
|
DefaultServiceLocator.shared.register(module: barcodeBatchModule)
|
|
60
61
|
|
|
61
62
|
barcodeSelectionModule = BarcodeSelectionModule(
|
|
62
|
-
emitter:
|
|
63
|
+
emitter: registryEmitter,
|
|
63
64
|
aimedBrushProvider: FrameworksBarcodeSelectionAimedBrushProvider(
|
|
64
|
-
emitter:
|
|
65
|
+
emitter: registryEmitter
|
|
65
66
|
),
|
|
66
67
|
trackedBrushProvider: FrameworksBarcodeSelectionTrackedBrushProvider(
|
|
67
|
-
emitter:
|
|
68
|
+
emitter: registryEmitter
|
|
68
69
|
)
|
|
69
70
|
)
|
|
70
71
|
DefaultServiceLocator.shared.register(module: barcodeSelectionModule)
|
|
71
72
|
|
|
72
|
-
barcodeCountModule = BarcodeCountModule(emitter:
|
|
73
|
+
barcodeCountModule = BarcodeCountModule(emitter: registryEmitter)
|
|
73
74
|
DefaultServiceLocator.shared.register(module: barcodeCountModule)
|
|
74
75
|
|
|
75
76
|
barcodeFindModule = BarcodeFindModule(emitter: emitter)
|
|
@@ -120,10 +121,10 @@ class ScanditCapacitorBarcode: CAPPlugin, CAPBridgedPlugin {
|
|
|
120
121
|
barcodeArModule.didStop()
|
|
121
122
|
}
|
|
122
123
|
|
|
123
|
-
@objc(
|
|
124
|
-
func
|
|
124
|
+
@objc(getDynamicDefaults:)
|
|
125
|
+
func getDynamicDefaults(_ call: CAPPluginCall) {
|
|
125
126
|
dispatchMain {
|
|
126
|
-
let defaults = self.barcodeModule.
|
|
127
|
+
let defaults = self.barcodeModule.getDynamicDefaults()
|
|
127
128
|
call.resolve(defaults as PluginCallResultData)
|
|
128
129
|
}
|
|
129
130
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scandit-capacitor-datacapture-barcode",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"description": "Scandit Data Capture SDK for Capacitor",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"private": false,
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"types": "dist/dts/index.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
16
|
"jest": "jest",
|
|
17
|
+
"test": "jest --coverage --maxWorkers=12 --passWithNoTests",
|
|
17
18
|
"coverage": "jest --coverage",
|
|
18
19
|
"lint": "eslint ./src",
|
|
19
20
|
"build": "rollup -c rollup.config.js --bundleConfigAsCjs",
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"watch": "tsc -p tsconfig.build.json --watch"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"scandit-capacitor-datacapture-core": "8.
|
|
25
|
+
"scandit-capacitor-datacapture-core": "8.7.0"
|
|
25
26
|
},
|
|
26
27
|
"devDependencies": {
|
|
27
28
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|