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-beta.2'
20
+ s.dependency "scandit-datacapture-frameworks-barcode", '= 7.0.0'
21
21
  end
@@ -56,7 +56,7 @@ repositories {
56
56
  }
57
57
 
58
58
  dependencies {
59
- def sdk_version = "7.0.0-beta.2"
59
+ def sdk_version = "7.0.0"
60
60
 
61
61
  implementation fileTree(dir: 'libs', include: ['*.jar'])
62
62
  implementation fileTree(dir: 'library', include: ['*.aar'])
@@ -897,7 +897,7 @@ class ScanditBarcodeNative :
897
897
  }
898
898
 
899
899
  barcodeFindViewHandler.addBarcodeFindViewContainer(container, bridge.activity)
900
- barcodeCountViewHandler.render()
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["BarcodeFindView"].toString(),
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
- let viewJson = call.options["BarcodeFindView"] as! String
772
- barcodeFindModule.updateBarcodeFindView(viewJson: viewJson,
773
- result: CapacitorResult(call))
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-beta.2",
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-beta.2",
27
- "scandit-datacapture-frameworks-barcode": "7.0.0-beta.2",
28
- "scandit-datacapture-frameworks-core": "7.0.0-beta.2"
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",