scandit-react-native-datacapture-core 6.25.0-beta.2 → 6.26.0-beta.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.
@@ -25,7 +25,7 @@ buildscript {
25
25
  if (ext.has("kotlinVersion")) {
26
26
  ext.kotlinVersion()
27
27
  } else {
28
- ext.safeExtGet("kotlinVersion", "1.7.21")
28
+ ext.safeExtGet("kotlinVersion", "1.8.22")
29
29
  }
30
30
  }
31
31
 
@@ -63,8 +63,12 @@ android {
63
63
  }
64
64
  }
65
65
 
66
+ if (file( "${rootProject.projectDir}/build-test.gradle").exists()) {
67
+ apply from: "${rootProject.projectDir}/build-test.gradle"
68
+ }
69
+
66
70
  dependencies {
67
- def sdk_version = "6.25.0-beta.2"
71
+ def sdk_version = "6.26.0-beta.1"
68
72
 
69
73
  println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
70
74
  if (findProject(':scandit-datacapture-frameworks-core') != null) {
@@ -49,10 +49,6 @@ abstract class ScanditViewGroupManager<T> : ViewGroupManager<T>() where T : View
49
49
  if (containers.size == 0) {
50
50
  cancelMeasureAndLayout()
51
51
  }
52
- fragmentsCache.remove(view)?.let {
53
- it.onDestroyView()
54
- it.onDestroy()
55
- }
56
52
  }
57
53
 
58
54
  protected fun disposeInternal() {
package/dist/core.js CHANGED
@@ -596,8 +596,9 @@ class ImageFrameSourceController {
596
596
  return this._proxy.switchCameraToDesiredState(desiredStateJson);
597
597
  }
598
598
  subscribeListener() {
599
+ var _a, _b;
599
600
  this._proxy.registerListenerForEvents();
600
- this._proxy.subscribeDidChangeState();
601
+ (_b = (_a = this._proxy).subscribeDidChangeState) === null || _b === void 0 ? void 0 : _b.call(_a);
601
602
  this.eventEmitter.on(FrameSourceListenerEvents.didChangeState, (payload) => {
602
603
  const newState = payload.state;
603
604
  this.imageFrameSource.listeners.forEach(listener => {
@@ -1127,7 +1128,10 @@ class DataCaptureContext extends DefaultSerializeable {
1127
1128
  if (options == null) {
1128
1129
  options = { deviceName: null };
1129
1130
  }
1130
- return new DataCaptureContext(licenseKey, options.deviceName || '');
1131
+ if (!DataCaptureContext.instance) {
1132
+ DataCaptureContext.instance = new DataCaptureContext(licenseKey, options.deviceName || '');
1133
+ }
1134
+ return DataCaptureContext.instance;
1131
1135
  }
1132
1136
  constructor(licenseKey, deviceName) {
1133
1137
  super();
@@ -1188,6 +1192,7 @@ class DataCaptureContext extends DefaultSerializeable {
1188
1192
  if (!this.controller) {
1189
1193
  return;
1190
1194
  }
1195
+ DataCaptureContext.instance = null;
1191
1196
  (_a = this.view) === null || _a === void 0 ? void 0 : _a.dispose();
1192
1197
  this.removeAllModes();
1193
1198
  this.controller.dispose();
@@ -1210,6 +1215,7 @@ class DataCaptureContext extends DefaultSerializeable {
1210
1215
  return this.controller.updateContextFromJSON();
1211
1216
  }
1212
1217
  }
1218
+ DataCaptureContext.instance = null;
1213
1219
  __decorate([
1214
1220
  nameForSerialization('frameSource')
1215
1221
  ], DataCaptureContext.prototype, "_frameSource", void 0);
@@ -2382,6 +2388,9 @@ __decorate([
2382
2388
  nameForSerialization('size')
2383
2389
  ], SpotlightViewfinder.prototype, "_sizeWithUnitAndAspect", void 0);
2384
2390
 
2391
+ /**
2392
+ * @deprecated LaserlineViewfinder is deprecated.
2393
+ */
2385
2394
  class LaserlineViewfinder extends DefaultSerializeable {
2386
2395
  get coreDefaults() {
2387
2396
  return getCoreDefaults();
@@ -2403,6 +2412,9 @@ __decorate([
2403
2412
  nameForSerialization('style')
2404
2413
  ], LaserlineViewfinder.prototype, "_style", void 0);
2405
2414
 
2415
+ /**
2416
+ * @deprecated LaserlineViewfinderStyle is deprecated.
2417
+ */
2406
2418
  var LaserlineViewfinderStyle;
2407
2419
  (function (LaserlineViewfinderStyle) {
2408
2420
  LaserlineViewfinderStyle["Legacy"] = "legacy";
@@ -2516,6 +2528,9 @@ __decorate([
2516
2528
 
2517
2529
  var RectangularViewfinderStyle;
2518
2530
  (function (RectangularViewfinderStyle) {
2531
+ /**
2532
+ * @deprecated The legacy style of the RectangularViewfinder is deprecated.
2533
+ */
2519
2534
  RectangularViewfinderStyle["Legacy"] = "legacy";
2520
2535
  RectangularViewfinderStyle["Rounded"] = "rounded";
2521
2536
  RectangularViewfinderStyle["Square"] = "square";