scandit-capacitor-datacapture-barcode 7.1.0-beta.1 → 7.1.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.1.0-beta.1'
20
+ s.dependency "scandit-datacapture-frameworks-barcode", '= 7.1.0'
21
21
  end
@@ -56,7 +56,7 @@ repositories {
56
56
  }
57
57
 
58
58
  dependencies {
59
- def sdk_version = "7.1.0-beta.1"
59
+ def sdk_version = "7.1.0"
60
60
 
61
61
  implementation fileTree(dir: 'libs', include: ['*.jar'])
62
62
  implementation fileTree(dir: 'library', include: ['*.aar'])
package/dist/barcode.js CHANGED
@@ -1,4 +1,4 @@
1
- import { nameForSerialization, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, FactoryMaker, Feedback, Quadrilateral, EventDataParser, BaseController, Brush, Observable, TextAlignment, FontFamily, AimerViewfinder, Anchor, PointWithUnit, CameraSettings, Color, ScanditIcon, CameraController } from 'scandit-capacitor-datacapture-core/dist/core';
1
+ import { nameForSerialization, serializationDefault, NoViewfinder, NoneLocationSelection, DefaultSerializeable, ignoreFromSerialization, FactoryMaker, Feedback, Quadrilateral, EventDataParser, BaseController, Brush, Observable, TextAlignment, FontFamily, AimerViewfinder, Anchor, PointWithUnit, CameraSettings, Color, ScanditIcon, CameraController, DataCaptureContextFeatures } from 'scandit-capacitor-datacapture-core/dist/core';
2
2
 
3
3
  var Symbology;
4
4
  (function (Symbology) {
@@ -4611,7 +4611,9 @@ class BarcodeCheckViewController extends BaseController {
4611
4611
  return this._proxy.pause();
4612
4612
  }
4613
4613
  update() {
4614
- return this._proxy.update();
4614
+ const barcodeCheckView = this.baseView.toJSON().View;
4615
+ const json = JSON.stringify(barcodeCheckView);
4616
+ return this._proxy.update(json);
4615
4617
  }
4616
4618
  }
4617
4619
  __decorate([
@@ -4802,7 +4804,7 @@ __decorate([
4802
4804
  nameForSerialization('isStarted')
4803
4805
  ], BaseBarcodeCheckView.prototype, "_isStarted", void 0);
4804
4806
  __decorate([
4805
- nameForSerialization('barcodeCheckViewSettings')
4807
+ nameForSerialization('viewSettings')
4806
4808
  ], BaseBarcodeCheckView.prototype, "_barcodeCheckViewSettings", void 0);
4807
4809
  __decorate([
4808
4810
  nameForSerialization('cameraSettings')
@@ -5717,12 +5719,15 @@ class BarcodeBatchListenerController {
5717
5719
  this.barcodeBatch.isInListenerCallback = value;
5718
5720
  });
5719
5721
  this.eventEmitter.on(BarcodeBatchListenerEvents.didUpdateSession, (data) => __awaiter(this, void 0, void 0, function* () {
5722
+ var _a;
5720
5723
  const payload = EventDataParser.parse(data);
5721
5724
  if (payload === null) {
5722
5725
  console.error('BarcodeBatchListenerController didUpdateSession payload is null');
5723
5726
  return;
5724
5727
  }
5725
5728
  const session = BarcodeBatchSession.fromJSON(payload);
5729
+ // Read the feature flag from the payload and set it in the DataCaptureContextFeatures.
5730
+ DataCaptureContextFeatures.setIsFeatureSupported("barcode-ar-full", (_a = payload.isBarcodeArFull) !== null && _a !== void 0 ? _a : false);
5726
5731
  yield this.notifyListenersOfDidUpdateSession(session);
5727
5732
  this._proxy.finishDidUpdateSessionCallback(this.barcodeBatch.isEnabled);
5728
5733
  }));