scandit-capacitor-datacapture-barcode 7.0.0 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt +7 -0
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/find/BarcodeFindViewHandler.kt +1 -1
- package/dist/barcode.js +57 -15
- package/dist/barcode.js.map +1 -1
- package/dist/dts/definitions.d.ts +1 -0
- package/dist/dts/ts/Capacitor/BarcodeFindViewProxy.d.ts +1 -0
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/ios/Plugin/ScanditBarcodeCapture.swift +12 -4
- package/package.json +4 -4
|
@@ -760,10 +760,12 @@ class ScanditCapacitorBarcode: CAPPlugin {
|
|
|
760
760
|
call.reject(CommandError.invalidJSON.toJSONString())
|
|
761
761
|
return
|
|
762
762
|
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
763
|
+
dispatchMainSync {
|
|
764
|
+
barcodeFindModule.addViewToContainer(container: barcodeFindViewHandler.webView,
|
|
765
|
+
jsonString: viewJson,
|
|
766
|
+
result: CapacitorResult(call))
|
|
767
|
+
barcodeFindViewHandler.barcodeFindView = barcodeFindModule.barcodeFindView
|
|
768
|
+
}
|
|
767
769
|
}
|
|
768
770
|
|
|
769
771
|
@objc(updateFindView:)
|
|
@@ -781,6 +783,12 @@ class ScanditCapacitorBarcode: CAPPlugin {
|
|
|
781
783
|
}
|
|
782
784
|
}
|
|
783
785
|
|
|
786
|
+
@objc(removeFindView:)
|
|
787
|
+
func removeFindView(_ call: CAPPluginCall) {
|
|
788
|
+
barcodeFindViewHandler.barcodeFindView = nil
|
|
789
|
+
barcodeFindModule.removeBarcodeFindView(result: CapacitorResult(call))
|
|
790
|
+
}
|
|
791
|
+
|
|
784
792
|
@objc(updateFindMode:)
|
|
785
793
|
func updateFindMode(_ call: CAPPluginCall) {
|
|
786
794
|
let modeJson = call.options["BarcodeFind"] as! String
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scandit-capacitor-datacapture-barcode",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "Scandit Data Capture SDK for Capacitor",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"private": false,
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"watch": "tsc --watch"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"scandit-capacitor-datacapture-core": "7.0.
|
|
27
|
-
"scandit-datacapture-frameworks-barcode": "7.0.
|
|
28
|
-
"scandit-datacapture-frameworks-core": "7.0.
|
|
26
|
+
"scandit-capacitor-datacapture-core": "7.0.2",
|
|
27
|
+
"scandit-datacapture-frameworks-barcode": "7.0.2",
|
|
28
|
+
"scandit-datacapture-frameworks-core": "7.0.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|