scandit-react-native-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.
- package/android/build.gradle +1 -1
- package/dist/core.js +25 -1
- package/dist/core.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/scandit-react-native-datacapture-core.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -68,7 +68,7 @@ if (file( "${rootProject.projectDir}/build-test.gradle").exists()) {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
dependencies {
|
|
71
|
-
def sdk_version = "7.1.
|
|
71
|
+
def sdk_version = "7.1.1"
|
|
72
72
|
|
|
73
73
|
println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
|
|
74
74
|
if (findProject(':scandit-datacapture-frameworks-core') != null) {
|
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
|