scandit-capacitor-datacapture-core 7.1.0-beta.2 → 7.1.1

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.
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.swift_version = "5.7"
17
17
 
18
18
  s.dependency "Capacitor"
19
- s.dependency "scandit-datacapture-frameworks-core", '= 7.1.0-beta.2'
19
+ s.dependency "scandit-datacapture-frameworks-core", '= 7.1.1'
20
20
  end
@@ -56,7 +56,7 @@ repositories {
56
56
  }
57
57
 
58
58
  dependencies {
59
- def sdk_version = "7.1.0-beta.2"
59
+ def sdk_version = "7.1.1"
60
60
 
61
61
  implementation fileTree(dir: 'libs', include: ['*.jar'])
62
62
 
package/dist/core.js CHANGED
@@ -377,6 +377,18 @@ class FactoryMaker {
377
377
  }
378
378
  return item.instance;
379
379
  }
380
+ static createInstance(clsName) {
381
+ var _a;
382
+ const item = FactoryMaker.instances.get(clsName);
383
+ if (item === null || item === undefined) {
384
+ throw new Error(`Trying to get a non existing instance for ${clsName}`);
385
+ }
386
+ const proxyInstance = (_a = item.builder) === null || _a === void 0 ? void 0 : _a.call(item);
387
+ if (proxyInstance === undefined) {
388
+ throw new Error(`item.builder?.() returned undefined for ${clsName}`);
389
+ }
390
+ return proxyInstance;
391
+ }
380
392
  }
381
393
  FactoryMaker.instances = new Map();
382
394
 
@@ -436,6 +448,18 @@ class BaseController {
436
448
  this.eventEmitter.emit(event, payload);
437
449
  }
438
450
  }
451
+ class BaseNewController {
452
+ get _proxy() {
453
+ return this._cachedProxy;
454
+ }
455
+ constructor(proxyName) {
456
+ this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
457
+ this._cachedProxy = FactoryMaker.createInstance(proxyName);
458
+ }
459
+ emit(event, payload) {
460
+ this.eventEmitter.emit(event, payload);
461
+ }
462
+ }
439
463
  class BaseNativeProxy {
440
464
  constructor() {
441
465
  this.eventEmitter = FactoryMaker.getInstance('EventEmitter');
@@ -3225,5 +3249,5 @@ var Expiration;
3225
3249
 
3226
3250
  createEventEmitter();
3227
3251
 
3228
- export { AdvancedNativeProxy, AimerViewfinder, Anchor, BaseController, BaseDataCaptureView, BaseNativeProxy, Brush, Camera, CameraController, CameraPosition, CameraSettings, Color, ContextStatus, ControlImage, DataCaptureContext, DataCaptureContextEvents, DataCaptureContextFeatures, DataCaptureContextSettings, DataCaptureViewController, DataCaptureViewEvents, DefaultSerializeable, Direction, EventDataParser, EventEmitter, Expiration, FactoryMaker, Feedback, FocusGestureStrategy, FocusRange, FontFamily, FrameSourceListenerEvents, FrameSourceState, HTMLElementState, HtmlElementPosition, HtmlElementSize, ImageBuffer, ImageFrameSource, LicenseInfo, LogoStyle, MarginsWithUnit, MeasureUnit, NoViewfinder, NoneLocationSelection, NumberWithUnit, Observable, OpenSourceSoftwareLicenseInfo, Orientation, Point, PointWithUnit, PrivateFocusGestureDeserializer, PrivateFrameData, PrivateZoomGestureDeserializer, Quadrilateral, RadiusLocationSelection, Rect, RectWithUnit, RectangularLocationSelection, RectangularViewfinder, RectangularViewfinderAnimation, RectangularViewfinderLineStyle, RectangularViewfinderStyle, ScanIntention, ScanditIcon, ScanditIconBuilder, ScanditIconShape, ScanditIconType, Size, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, SizingMode, Sound, SwipeToZoom, TapToFocus, TextAlignment, TorchState, TorchSwitchControl, Vibration, VibrationType, VideoResolution, WaveFormVibration, ZoomSwitchControl, createAdvancedNativeProxy, getCoreDefaults, ignoreFromSerialization, ignoreFromSerializationIfNull, loadCoreDefaults, nameForSerialization, serializationDefault };
3252
+ export { AdvancedNativeProxy, AimerViewfinder, Anchor, BaseController, BaseDataCaptureView, BaseNativeProxy, BaseNewController, Brush, Camera, CameraController, CameraPosition, CameraSettings, Color, ContextStatus, ControlImage, DataCaptureContext, DataCaptureContextEvents, DataCaptureContextFeatures, DataCaptureContextSettings, DataCaptureViewController, DataCaptureViewEvents, DefaultSerializeable, Direction, EventDataParser, EventEmitter, Expiration, FactoryMaker, Feedback, FocusGestureStrategy, FocusRange, FontFamily, FrameSourceListenerEvents, FrameSourceState, HTMLElementState, HtmlElementPosition, HtmlElementSize, ImageBuffer, ImageFrameSource, LicenseInfo, LogoStyle, MarginsWithUnit, MeasureUnit, NoViewfinder, NoneLocationSelection, NumberWithUnit, Observable, OpenSourceSoftwareLicenseInfo, Orientation, Point, PointWithUnit, PrivateFocusGestureDeserializer, PrivateFrameData, PrivateZoomGestureDeserializer, Quadrilateral, RadiusLocationSelection, Rect, RectWithUnit, RectangularLocationSelection, RectangularViewfinder, RectangularViewfinderAnimation, RectangularViewfinderLineStyle, RectangularViewfinderStyle, ScanIntention, ScanditIcon, ScanditIconBuilder, ScanditIconShape, ScanditIconType, Size, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, SizingMode, Sound, SwipeToZoom, TapToFocus, TextAlignment, TorchState, TorchSwitchControl, Vibration, VibrationType, VideoResolution, WaveFormVibration, ZoomSwitchControl, createAdvancedNativeProxy, getCoreDefaults, ignoreFromSerialization, ignoreFromSerializationIfNull, loadCoreDefaults, nameForSerialization, serializationDefault };
3229
3253
  //# sourceMappingURL=core.js.map