scandit-capacitor-datacapture-barcode 7.0.0-beta.2 → 7.0.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.
|
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
|
|
18
18
|
s.dependency "Capacitor"
|
|
19
19
|
s.dependency "ScanditCapacitorDatacaptureCore", "= #{version}"
|
|
20
|
-
s.dependency "scandit-datacapture-frameworks-barcode", '= 7.0.0
|
|
20
|
+
s.dependency "scandit-datacapture-frameworks-barcode", '= 7.0.0'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.kt
CHANGED
|
@@ -897,7 +897,7 @@ class ScanditBarcodeNative :
|
|
|
897
897
|
}
|
|
898
898
|
|
|
899
899
|
barcodeFindViewHandler.addBarcodeFindViewContainer(container, bridge.activity)
|
|
900
|
-
|
|
900
|
+
barcodeFindViewHandler.render()
|
|
901
901
|
call.resolve()
|
|
902
902
|
} else {
|
|
903
903
|
call.reject("missing parameter for createFindView()")
|
|
@@ -907,7 +907,7 @@ class ScanditBarcodeNative :
|
|
|
907
907
|
@PluginMethod
|
|
908
908
|
fun updateFindView(call: PluginCall) {
|
|
909
909
|
barcodeFindModule.updateBarcodeFindView(
|
|
910
|
-
call.data["
|
|
910
|
+
call.data["View"].toString(),
|
|
911
911
|
CapacitorResult(call)
|
|
912
912
|
)
|
|
913
913
|
}
|
|
@@ -768,9 +768,17 @@ class ScanditCapacitorBarcode: CAPPlugin {
|
|
|
768
768
|
|
|
769
769
|
@objc(updateFindView:)
|
|
770
770
|
func updateFindView(_ call: CAPPluginCall) {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
771
|
+
do {
|
|
772
|
+
if let viewJson = String(
|
|
773
|
+
data: try JSONSerialization.data(withJSONObject: call.options["View"] as! [String: Any]),
|
|
774
|
+
encoding: .utf8)
|
|
775
|
+
{
|
|
776
|
+
barcodeFindModule.updateBarcodeFindView(viewJson: viewJson,
|
|
777
|
+
result: CapacitorResult(call))
|
|
778
|
+
}
|
|
779
|
+
} catch {
|
|
780
|
+
call.reject("Error serializing 'View' to JSON: \(error)")
|
|
781
|
+
}
|
|
774
782
|
}
|
|
775
783
|
|
|
776
784
|
@objc(updateFindMode:)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scandit-capacitor-datacapture-barcode",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
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.0
|
|
27
|
-
"scandit-datacapture-frameworks-barcode": "7.0.0
|
|
28
|
-
"scandit-datacapture-frameworks-core": "7.0.0
|
|
26
|
+
"scandit-capacitor-datacapture-core": "7.0.0",
|
|
27
|
+
"scandit-datacapture-frameworks-barcode": "7.0.0",
|
|
28
|
+
"scandit-datacapture-frameworks-core": "7.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|