scandit-react-native-datacapture-core 6.22.0-beta.1 → 6.22.0-beta.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.
@@ -60,7 +60,7 @@ android {
60
60
  }
61
61
 
62
62
  dependencies {
63
- def sdk_version = "6.22.0-beta.1"
63
+ def sdk_version = "6.22.0-beta.2"
64
64
 
65
65
  println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
66
66
  if (findProject(':scandit-datacapture-frameworks-core') != null) {
package/dist/core.js CHANGED
@@ -760,8 +760,9 @@ class CameraController {
760
760
  return CameraController._proxy.switchCameraToDesiredState(desiredState);
761
761
  }
762
762
  subscribeListener() {
763
+ var _a, _b;
763
764
  CameraController._proxy.registerListenerForCameraEvents();
764
- CameraController._proxy.subscribeDidChangeState();
765
+ (_b = (_a = CameraController._proxy).subscribeDidChangeState) === null || _b === void 0 ? void 0 : _b.call(_a);
765
766
  this.eventEmitter.on(FrameSourceListenerEvents.didChangeState, (state) => {
766
767
  this.privateCamera.listeners.forEach(listener => {
767
768
  var _a;
@@ -2029,9 +2030,10 @@ class DataCaptureContextController {
2029
2030
  });
2030
2031
  }
2031
2032
  subscribeListener() {
2033
+ var _a, _b, _c, _d;
2032
2034
  this._proxy.registerListenerForEvents();
2033
- this._proxy.subscribeDidChangeStatus();
2034
- this._proxy.subscribeDidStartObservingContext();
2035
+ (_b = (_a = this._proxy).subscribeDidChangeStatus) === null || _b === void 0 ? void 0 : _b.call(_a);
2036
+ (_d = (_c = this._proxy).subscribeDidStartObservingContext) === null || _d === void 0 ? void 0 : _d.call(_c);
2035
2037
  this.eventEmitter.on(DataCaptureContextEvents.didChangeStatus, (contextStatus) => {
2036
2038
  this.notifyListenersOfDidChangeStatus(contextStatus);
2037
2039
  });
@@ -2458,8 +2460,9 @@ class DataCaptureViewController extends BaseController {
2458
2460
  return this._proxy.removeAllOverlays();
2459
2461
  }
2460
2462
  subscribeListener() {
2463
+ var _a, _b;
2461
2464
  this._proxy.registerListenerForViewEvents();
2462
- this._proxy.subscribeDidChangeSize();
2465
+ (_b = (_a = this._proxy).subscribeDidChangeSize) === null || _b === void 0 ? void 0 : _b.call(_a);
2463
2466
  this.eventEmitter.on(DataCaptureViewEvents.didChangeSize, (payload) => {
2464
2467
  const payloadJSON = JSON.parse(payload);
2465
2468
  const size = Size.fromJSON(payloadJSON.size);