scandit-react-native-datacapture-core 6.16.0-beta.1 → 6.16.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.
@@ -42,7 +42,7 @@ android {
42
42
  }
43
43
 
44
44
  dependencies {
45
- def sdk_version = "6.16.0-beta.1"
45
+ def sdk_version = "6.16.0"
46
46
 
47
47
  api "com.scandit.datacapture:core:$sdk_version"
48
48
 
@@ -72,7 +72,6 @@ class ScanditDataCaptureCoreModule(
72
72
  private val ERROR_NULL_FRAME = Error(5, "Frame is null, it might've been reused already.")
73
73
 
74
74
  var lastFrame: FrameData? = null
75
- var context: DataCaptureContext? = null
76
75
  }
77
76
 
78
77
  @get:VisibleForTesting
@@ -81,7 +80,6 @@ class ScanditDataCaptureCoreModule(
81
80
  field?.removeListener(this)
82
81
  field?.release()
83
82
  field = value?.also { it.addListener(this) }
84
- context = value
85
83
  }
86
84
 
87
85
  private var camera: Camera? = null
@@ -254,6 +252,11 @@ class ScanditDataCaptureCoreModule(
254
252
  promise.resolve(lastFrame.toJson())
255
253
  }
256
254
 
255
+ @ReactMethod
256
+ fun getLastFrameOrNull(promise: Promise) {
257
+ promise.resolve(ScanditDataCaptureCoreModule.lastFrame?.toJson())
258
+ }
259
+
257
260
  @ReactMethod
258
261
  fun dispose() {
259
262
  TreeLifecycleObserver.dispatchTreeDestroyed()
@@ -54,6 +54,10 @@ RCT_EXTERN_METHOD(getLastFrame
54
54
  : (RCTPromiseResolveBlock)resolve reject
55
55
  : (RCTPromiseRejectBlock)reject)
56
56
 
57
+ RCT_EXTERN_METHOD(getLastFrameOrNull
58
+ : (RCTPromiseResolveBlock)resolve reject
59
+ : (RCTPromiseRejectBlock)reject)
60
+
57
61
  RCT_EXTERN_METHOD(registerListenerForCameraEvents)
58
62
 
59
63
  RCT_EXTERN_METHOD(unregisterListenerForCameraEvents)
@@ -11,6 +11,10 @@ public protocol RNTDataCaptureViewListener: class {
11
11
  func didUpdate(dataCaptureView: DataCaptureView?)
12
12
  }
13
13
 
14
+ public protocol RNTDataCaptureContextListener: class {
15
+ func didUpdate(dataCaptureContext: DataCaptureContext?)
16
+ }
17
+
14
18
  public let SDCSharedMethodQeueue = DispatchQueue(label: "com.scandit.reactnative.methodQueue",
15
19
  qos: .userInteractive)
16
20
 
@@ -19,10 +23,12 @@ enum ScanditDataCaptureCoreError: Int, CustomNSError {
19
23
  case nilDataCaptureView
20
24
  case nilFrame
21
25
 
22
- var domain: String { return "ScanditDataCaptureCoreErrorDomain" }
26
+ var domain: String {
27
+ "ScanditDataCaptureCoreErrorDomain"
28
+ }
23
29
 
24
30
  var code: Int {
25
- return rawValue
31
+ rawValue
26
32
  }
27
33
 
28
34
  var message: String {
@@ -37,7 +43,7 @@ enum ScanditDataCaptureCoreError: Int, CustomNSError {
37
43
  }
38
44
 
39
45
  var errorUserInfo: [String: Any] {
40
- return [NSLocalizedDescriptionKey: message]
46
+ [NSLocalizedDescriptionKey: message]
41
47
  }
42
48
  }
43
49
 
@@ -50,7 +56,11 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
50
56
 
51
57
  didSet {
52
58
  context?.addListener(self)
53
- ScanditDataCaptureCore.dataCaptureContext = context
59
+ pthread_mutex_lock(&dataCaptureContextListenersLock)
60
+ defer { pthread_mutex_unlock(&dataCaptureContextListenersLock) }
61
+ dataCaptureContextListeners
62
+ .compactMap { $0 as? RNTDataCaptureContextListener }
63
+ .forEach { $0.didUpdate(dataCaptureContext: context) }
54
64
  }
55
65
  }
56
66
 
@@ -58,7 +68,7 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
58
68
  didSet {
59
69
  guard oldValue != dataCaptureView else { return }
60
70
 
61
- self.dataCaptureView?.addListener(self)
71
+ dataCaptureView?.addListener(self)
62
72
 
63
73
  pthread_mutex_lock(&dataCaptureViewListenersLock)
64
74
  defer {pthread_mutex_unlock(&dataCaptureViewListenersLock)}
@@ -69,17 +79,16 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
69
79
  }
70
80
 
71
81
  public static var lastFrame: FrameData?
72
- public static var dataCaptureContext: DataCaptureContext?
73
82
 
74
83
  lazy internal var contextDeserializer: DataCaptureContextDeserializer = {
75
- return DataCaptureContextDeserializer(frameSourceDeserializer: frameSourceDeserializer,
76
- viewDeserializer: dataCaptureViewDeserializer,
77
- modeDeserializers: modeDeserializers,
78
- componentDeserializers: componentDeserializers)
84
+ DataCaptureContextDeserializer(frameSourceDeserializer: frameSourceDeserializer,
85
+ viewDeserializer: dataCaptureViewDeserializer,
86
+ modeDeserializers: modeDeserializers,
87
+ componentDeserializers: componentDeserializers)
79
88
  }()
80
89
 
81
90
  lazy internal var dataCaptureViewDeserializer: DataCaptureViewDeserializer = {
82
- return DataCaptureViewDeserializer(modeDeserializers: modeDeserializers)
91
+ DataCaptureViewDeserializer(modeDeserializers: modeDeserializers)
83
92
  }()
84
93
 
85
94
  lazy internal var frameSourceDeserializer: FrameSourceDeserializer = {
@@ -91,7 +100,7 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
91
100
 
92
101
  static var RNTSDCModeDeserializers = [DataCaptureModeDeserializer]()
93
102
  internal var modeDeserializers: [DataCaptureModeDeserializer] {
94
- return ScanditDataCaptureCore.RNTSDCModeDeserializers
103
+ ScanditDataCaptureCore.RNTSDCModeDeserializers
95
104
  }
96
105
 
97
106
  static public func register(modeDeserializer: DataCaptureModeDeserializer) {
@@ -103,7 +112,7 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
103
112
 
104
113
  static var RNTSDCComponentDeserializers = [DataCaptureComponentDeserializer]()
105
114
  internal var componentDeserializers: [DataCaptureComponentDeserializer] {
106
- return ScanditDataCaptureCore.RNTSDCComponentDeserializers
115
+ ScanditDataCaptureCore.RNTSDCComponentDeserializers
107
116
  }
108
117
 
109
118
  static public func register(componentDeserializer: DataCaptureComponentDeserializer) {
@@ -118,21 +127,24 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
118
127
 
119
128
  fileprivate var componentsSet = Set<String>()
120
129
  public func hasComponent(with id: String) -> Bool {
121
- return componentsSet.contains(id)
130
+ componentsSet.contains(id)
122
131
  }
123
132
 
124
133
  // dataCaptureViewListeners
125
134
  private var dataCaptureViewListenersLock = pthread_mutex_t()
126
135
  private lazy var dataCaptureViewListeners = NSMutableSet()
127
136
 
137
+ private var dataCaptureContextListenersLock = pthread_mutex_t()
138
+ private lazy var dataCaptureContextListeners = NSMutableSet()
139
+
128
140
  internal var hasListeners = false
129
141
 
130
142
  public override class func requiresMainQueueSetup() -> Bool {
131
- return true
143
+ true
132
144
  }
133
145
 
134
146
  public override var methodQueue: DispatchQueue! {
135
- return SDCSharedMethodQeueue
147
+ SDCSharedMethodQeueue
136
148
  }
137
149
 
138
150
  deinit {
@@ -268,6 +280,12 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
268
280
  resolve(lastFrame.jsonString)
269
281
  }
270
282
 
283
+ @objc(getLastFrameOrNull:reject:)
284
+ func getLastFrameOrNull(resolve: @escaping RCTPromiseResolveBlock,
285
+ reject: @escaping RCTPromiseRejectBlock) {
286
+ resolve(ScanditDataCaptureCore.lastFrame?.jsonString)
287
+ }
288
+
271
289
  public func addRNTDataCaptureViewListener(_ listener: RNTDataCaptureViewListener) {
272
290
  pthread_mutex_lock(&dataCaptureViewListenersLock)
273
291
  defer {pthread_mutex_unlock(&dataCaptureViewListenersLock)}
@@ -282,6 +300,20 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
282
300
  dataCaptureViewListeners.remove(listener)
283
301
  }
284
302
 
303
+ public func addRNTDataCaptureContextListener(_ listener: RNTDataCaptureContextListener) {
304
+ pthread_mutex_lock(&dataCaptureContextListenersLock)
305
+ defer { pthread_mutex_unlock(&dataCaptureContextListenersLock) }
306
+ guard !dataCaptureContextListeners.contains(listener) else { return }
307
+ dataCaptureContextListeners.add(listener)
308
+ listener.didUpdate(dataCaptureContext: context)
309
+ }
310
+
311
+ public func removeRNTDataCaptureContextListener(_ listener: RNTDataCaptureContextListener) {
312
+ pthread_mutex_lock(&dataCaptureContextListenersLock)
313
+ defer {pthread_mutex_unlock(&dataCaptureContextListenersLock)}
314
+ dataCaptureContextListeners.remove(listener)
315
+ }
316
+
285
317
  // Empty methods to unify the logic on the TS side for supporting functionality automatically provided by RN on iOS,
286
318
  // but custom implemented on Android.
287
319
 
@@ -26,7 +26,7 @@ class RNTSDCDataCaptureViewManager: RCTViewManager, RNTDataCaptureViewListener {
26
26
  }
27
27
 
28
28
  override class func requiresMainQueueSetup() -> Bool {
29
- return true
29
+ true
30
30
  }
31
31
 
32
32
  deinit {
@@ -9,7 +9,7 @@ var DataCaptureVersion = /** @class */ (function () {
9
9
  }
10
10
  Object.defineProperty(DataCaptureVersion, "pluginVersion", {
11
11
  get: function () {
12
- return '6.16.0-beta.1';
12
+ return '6.16.0';
13
13
  },
14
14
  enumerable: false,
15
15
  configurable: true
@@ -1 +1 @@
1
- {"version":3,"file":"DataCaptureVersion.js","sourceRoot":"","sources":["../ts/DataCaptureVersion.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAE7C,yCAAyC;AACzC,IAAM,YAAY,GAAG,4BAAa,CAAC,sBAAsB,CAAC;AAE1D;IAAA;IAQA,CAAC;IAPC,sBAAkB,mCAAa;aAA/B;YACE,OAAO,eAAe,CAAC;QACzB,CAAC;;;OAAA;IAED,sBAAkB,gCAAU;aAA5B;YACE,OAAO,YAAY,CAAC,OAAO,CAAC;QAC9B,CAAC;;;OAAA;IACH,yBAAC;AAAD,CAAC,AARD,IAQC;AARY,gDAAkB"}
1
+ {"version":3,"file":"DataCaptureVersion.js","sourceRoot":"","sources":["../ts/DataCaptureVersion.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAE7C,yCAAyC;AACzC,IAAM,YAAY,GAAG,4BAAa,CAAC,sBAAsB,CAAC;AAE1D;IAAA;IAQA,CAAC;IAPC,sBAAkB,mCAAa;aAA/B;YACE,OAAO,QAAQ,CAAC;QAClB,CAAC;;;OAAA;IAED,sBAAkB,gCAAU;aAA5B;YACE,OAAO,YAAY,CAAC,OAAO,CAAC;QAC9B,CAAC;;;OAAA;IACH,yBAAC;AAAD,CAAC,AARD,IAQC;AARY,gDAAkB"}
package/js/Feedback.d.ts CHANGED
@@ -1,11 +1,25 @@
1
1
  import { DefaultSerializeable } from './private/Serializeable';
2
+ declare enum VibrationType {
3
+ default = "default",
4
+ selectionHaptic = "selectionHaptic",
5
+ successHaptic = "successHaptic",
6
+ waveForm = "waveForm"
7
+ }
2
8
  export declare class Vibration extends DefaultSerializeable {
3
9
  private type;
4
10
  static get defaultVibration(): Vibration;
5
11
  static get selectionHapticFeedback(): Vibration;
6
12
  static get successHapticFeedback(): Vibration;
7
13
  private static fromJSON;
8
- private constructor();
14
+ protected constructor(type: VibrationType);
15
+ }
16
+ export declare class WaveFormVibration extends Vibration {
17
+ private _timings;
18
+ get timings(): number[];
19
+ private _amplitudes;
20
+ get amplitudes(): number[] | null;
21
+ constructor(timings: number[], amplitudes?: number[] | null);
22
+ toJSON(): object;
9
23
  }
10
24
  export declare class Sound extends DefaultSerializeable {
11
25
  resource: string | null;
@@ -24,3 +38,4 @@ export declare class Feedback extends DefaultSerializeable {
24
38
  constructor(vibration: Vibration | null, sound: Sound | null);
25
39
  emit(): void;
26
40
  }
41
+ export {};
package/js/Feedback.js CHANGED
@@ -19,14 +19,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
19
  return c > 3 && r && Object.defineProperty(target, key, r), r;
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.Feedback = exports.Sound = exports.Vibration = void 0;
22
+ exports.Feedback = exports.Sound = exports.WaveFormVibration = exports.Vibration = void 0;
23
23
  var FeedbackProxy_1 = require("./native/FeedbackProxy");
24
24
  var Serializeable_1 = require("./private/Serializeable");
25
+ var react_native_1 = require("react-native");
25
26
  var VibrationType;
26
27
  (function (VibrationType) {
27
28
  VibrationType["default"] = "default";
28
29
  VibrationType["selectionHaptic"] = "selectionHaptic";
29
30
  VibrationType["successHaptic"] = "successHaptic";
31
+ VibrationType["waveForm"] = "waveForm";
30
32
  })(VibrationType || (VibrationType = {}));
31
33
  var Vibration = /** @class */ (function (_super) {
32
34
  __extends(Vibration, _super);
@@ -57,11 +59,53 @@ var Vibration = /** @class */ (function (_super) {
57
59
  configurable: true
58
60
  });
59
61
  Vibration.fromJSON = function (json) {
62
+ if (json.type === "waveForm") {
63
+ return new WaveFormVibration(json.timings, json.amplitudes);
64
+ }
60
65
  return new Vibration(json.type);
61
66
  };
62
67
  return Vibration;
63
68
  }(Serializeable_1.DefaultSerializeable));
64
69
  exports.Vibration = Vibration;
70
+ var WaveFormVibration = /** @class */ (function (_super) {
71
+ __extends(WaveFormVibration, _super);
72
+ function WaveFormVibration(timings, amplitudes) {
73
+ if (amplitudes === void 0) { amplitudes = null; }
74
+ var _this = _super.call(this, VibrationType.waveForm) || this;
75
+ _this._timings = timings;
76
+ _this._amplitudes = amplitudes;
77
+ return _this;
78
+ }
79
+ Object.defineProperty(WaveFormVibration.prototype, "timings", {
80
+ get: function () {
81
+ return this._timings;
82
+ },
83
+ enumerable: false,
84
+ configurable: true
85
+ });
86
+ Object.defineProperty(WaveFormVibration.prototype, "amplitudes", {
87
+ get: function () {
88
+ return this._amplitudes;
89
+ },
90
+ enumerable: false,
91
+ configurable: true
92
+ });
93
+ WaveFormVibration.prototype.toJSON = function () {
94
+ if (react_native_1.Platform.OS === 'ios') {
95
+ return Vibration.successHapticFeedback.toJSON();
96
+ }
97
+ return _super.prototype.toJSON.call(this);
98
+ };
99
+ __decorate([
100
+ Serializeable_1.nameForSerialization('timings')
101
+ ], WaveFormVibration.prototype, "_timings", void 0);
102
+ __decorate([
103
+ Serializeable_1.ignoreFromSerializationIfNull,
104
+ Serializeable_1.nameForSerialization('amplitudes')
105
+ ], WaveFormVibration.prototype, "_amplitudes", void 0);
106
+ return WaveFormVibration;
107
+ }(Vibration));
108
+ exports.WaveFormVibration = WaveFormVibration;
65
109
  var Sound = /** @class */ (function (_super) {
66
110
  __extends(Sound, _super);
67
111
  function Sound(resource) {
@@ -1 +1 @@
1
- {"version":3,"file":"Feedback.js","sourceRoot":"","sources":["../ts/Feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAuD;AAEvD,yDAKiC;AAEjC,IAAK,aAIJ;AAJD,WAAK,aAAa;IAChB,oCAAmB,CAAA;IACnB,oDAAmC,CAAA;IACnC,gDAA+B,CAAA;AACjC,CAAC,EAJI,aAAa,KAAb,aAAa,QAIjB;AAED;IAA+B,6BAAoB;IAmBjD,mBAAoB,IAAmB;QAAvC,YACE,iBAAO,SAER;QADC,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;;IACnB,CAAC;IAnBD,sBAAkB,6BAAgB;aAAlC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9C,CAAC;;;OAAA;IAED,sBAAkB,oCAAuB;aAAzC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;QACtD,CAAC;;;OAAA;IAED,sBAAkB,kCAAqB;aAAvC;YACE,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QACpD,CAAC;;;OAAA;IAEc,kBAAQ,GAAvB,UAAwB,IAAmB;QACzC,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,IAAqB,CAAC,CAAC;IACnD,CAAC;IAMH,gBAAC;AAAD,CAAC,AAvBD,CAA+B,oCAAoB,GAuBlD;AAvBY,8BAAS;AAyBtB;IAA2B,yBAAoB;IAY7C,eAAY,QAAuB;QAAnC,YACE,iBAAO,SAER;QAbM,cAAQ,GAAkB,IAAI,CAAC;QAYpC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;;IAC3B,CAAC;IAXD,sBAAkB,qBAAY;aAA9B;YACE,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;QACzB,CAAC;;;OAAA;IAEc,cAAQ,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B,oCAAoB,GA0CjD;AA1CY,4BAAQ"}
@@ -1,5 +1,6 @@
1
1
  import { NumberWithUnit, SizeWithUnit, SizeWithUnitAndAspect } from './Common';
2
2
  import { DefaultSerializeable } from './private/Serializeable';
3
+ import { RadiusLocationSelectionJSON, RectangularLocationSelectionJSON } from './private/PrivateLocationSelection';
3
4
  export interface LocationSelection {
4
5
  }
5
6
  export declare const NoneLocationSelection: {
@@ -9,6 +10,7 @@ export declare class RadiusLocationSelection extends DefaultSerializeable implem
9
10
  private type;
10
11
  private _radius;
11
12
  get radius(): NumberWithUnit;
13
+ static fromJSON(JSON: RadiusLocationSelectionJSON): RadiusLocationSelection;
12
14
  constructor(radius: NumberWithUnit);
13
15
  }
14
16
  export declare class RectangularLocationSelection extends DefaultSerializeable implements LocationSelection {
@@ -18,4 +20,5 @@ export declare class RectangularLocationSelection extends DefaultSerializeable i
18
20
  static withSize(size: SizeWithUnit): RectangularLocationSelection;
19
21
  static withWidthAndAspectRatio(width: NumberWithUnit, heightToWidthAspectRatio: number): RectangularLocationSelection;
20
22
  static withHeightAndAspectRatio(height: NumberWithUnit, widthToHeightAspectRatio: number): RectangularLocationSelection;
23
+ static fromJSON(rectangularLocationSelectionJSON: RectangularLocationSelectionJSON): RectangularLocationSelection;
21
24
  }
@@ -39,6 +39,10 @@ var RadiusLocationSelection = /** @class */ (function (_super) {
39
39
  enumerable: false,
40
40
  configurable: true
41
41
  });
42
+ RadiusLocationSelection.fromJSON = function (JSON) {
43
+ var radius = Common_1.NumberWithUnit.fromJSON(JSON.radius);
44
+ return new RadiusLocationSelection(radius);
45
+ };
42
46
  __decorate([
43
47
  Serializeable_1.nameForSerialization('radius')
44
48
  ], RadiusLocationSelection.prototype, "_radius", void 0);
@@ -76,6 +80,38 @@ var RectangularLocationSelection = /** @class */ (function (_super) {
76
80
  .sizeWithHeightAndAspectRatio(height, widthToHeightAspectRatio);
77
81
  return locationSelection;
78
82
  };
83
+ RectangularLocationSelection.fromJSON = function (rectangularLocationSelectionJSON) {
84
+ if (rectangularLocationSelectionJSON.aspect.width && rectangularLocationSelectionJSON.aspect.height) {
85
+ var width = Common_1.NumberWithUnit
86
+ .fromJSON(rectangularLocationSelectionJSON.aspect.width);
87
+ var height = Common_1.NumberWithUnit
88
+ .fromJSON(rectangularLocationSelectionJSON.aspect.height);
89
+ var size = new Common_1.SizeWithUnit(width, height);
90
+ return this.withSize(size);
91
+ }
92
+ else if (rectangularLocationSelectionJSON.aspect.width && rectangularLocationSelectionJSON.aspect.aspect) {
93
+ var width = Common_1.NumberWithUnit
94
+ .fromJSON(rectangularLocationSelectionJSON.aspect.width);
95
+ return this.withWidthAndAspectRatio(width, rectangularLocationSelectionJSON.aspect.aspect);
96
+ }
97
+ else if (rectangularLocationSelectionJSON.aspect.height && rectangularLocationSelectionJSON.aspect.aspect) {
98
+ var height = Common_1.NumberWithUnit
99
+ .fromJSON(rectangularLocationSelectionJSON.aspect.height);
100
+ return this.withHeightAndAspectRatio(height, rectangularLocationSelectionJSON.aspect.aspect);
101
+ }
102
+ else if (rectangularLocationSelectionJSON.aspect.shorterDimension && rectangularLocationSelectionJSON.aspect.aspect) {
103
+ var shorterDimension = Common_1.NumberWithUnit
104
+ .fromJSON(rectangularLocationSelectionJSON.aspect.shorterDimension);
105
+ var sizeWithUnitAndAspect = Common_1.SizeWithUnitAndAspect
106
+ .sizeWithShorterDimensionAndAspectRatio(shorterDimension, rectangularLocationSelectionJSON.aspect.aspect);
107
+ var locationSelection = new RectangularLocationSelection();
108
+ locationSelection._sizeWithUnitAndAspect = sizeWithUnitAndAspect;
109
+ return locationSelection;
110
+ }
111
+ else {
112
+ throw new Error("RectangularLocationSelectionJSON is malformed: " + JSON.stringify(rectangularLocationSelectionJSON));
113
+ }
114
+ };
79
115
  __decorate([
80
116
  Serializeable_1.nameForSerialization('size')
81
117
  ], RectangularLocationSelection.prototype, "_sizeWithUnitAndAspect", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"LocationSelection.js","sourceRoot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getLastFrame(): Promise<FrameData>;
9
+ static getLastFrameOrNull(): Promise<FrameData | null>;
9
10
  getCurrentState(): Promise<FrameSourceState>;
10
11
  getIsTorchAvailable(): Promise<boolean>;
11
12
  dispose(): void;
@@ -25,6 +25,13 @@ var CameraProxy = /** @class */ (function () {
25
25
  return PrivateCamera_Related_1.FrameData.fromJSON(JSON.parse(frameDataJSONString));
26
26
  });
27
27
  };
28
+ CameraProxy.getLastFrameOrNull = function () {
29
+ return NativeModule.getLastFrameOrNull().then(function (frameDataJSONString) {
30
+ if (!frameDataJSONString)
31
+ return null;
32
+ return PrivateCamera_Related_1.FrameData.fromJSON(JSON.parse(frameDataJSONString));
33
+ });
34
+ };
28
35
  CameraProxy.prototype.getCurrentState = function () {
29
36
  return NativeModule.getCurrentCameraState(this.camera.position);
30
37
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CameraProxy.js","sourceRoot":"","sources":["../../ts/native/CameraProxy.ts"],"names":[],"mappings":";;;AAAA,6CAAsF;AAKtF,0EAA6D;AAE7D,+BAA+B;AAC/B,IAAM,YAAY,GAAG,4BAAa,CAAC,sBAAsB,CAAC;AAC1D,IAAM,YAAY,GAAG,IAAI,iCAAkB,CAAC,YAAY,CAAC,CAAC;AAC1D,8BAA8B;AAE9B,IAAK,uBAEJ;AAFD,WAAK,uBAAuB;IAC1B,gFAAqD,CAAA;AACvD,CAAC,EAFI,uBAAuB,KAAvB,uBAAuB,QAE3B;AAED;IAAA;QAGU,oBAAe,GAA0B,EAAE,CAAC;IAiDtD,CAAC;IA/Ce,qBAAS,GAAvB,UAAwB,MAAc;QACpC,IAAM,KAAK,GAAG,IAAI,WAAW,EAAE,CAAC;QAChC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IAEa,wBAAY,GAA1B;QACE,OAAO,YAAY,CAAC,YAAY,EAAE,CAAC,IAAI,CAAC,UAAC,mBAA2B;YAClE,OAAO,iCAAS,CAAC,QAAQ,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AAO,YAAY,CAAC,gBAAgB,CAAE,IAAI,CAAC,MAA+B,CAAC,QAAQ,CAAC,CAAC;IACvF,CAAC;IAEM,6BAAO,GAAd;QACE,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC3B,OAAO,YAAY,CAAC,OAAO,EAAE,CAAC;IAChC,CAAC;IAEM,uCAAiB,GAAxB;QAAA,iBAeC;QAdC,YAAY,CAAC,+BAA+B,EAAE,CAAC;QAC/C,IAAM,cAAc,GAAG,YAAY,CAAC,WAAW,CAC7C,uBAAuB,CAAC,cAAc,EACtC,UAAC,IAAuB;YACtB,IAAM,QAAQ,GAAG,IAAI,CAAC,KAAyB,CAAC;YAC/C,KAAI,CAAC,MAA+B,CAAC,SAAS,CAAC,OAAO,CAAC,UAAA,QAAQ;gBAC9D,IAAI,QAAQ,CAAC,cAAc,EAAE;oBAC3B,QAAQ,CAAC,cAAc,CAAC,KAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;iBAChD;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CACF,CAAC;QAEF,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5C,CAAC;IAEM,yCAAmB,GAA1B;QACE,YAAY,CAAC,iCAAiC,EAAE,CAAC;QACjD,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,UAAA,QAAQ,IAAI,OAAA,QAAQ,CAAC,MAAM,EAAE,EAAjB,CAAiB,CAAC,CAAC;QAC5D,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;IAC5B,CAAC;IACH,kBAAC;AAAD,CAAC,AA3DD,IA2DC;AA3DY,kCAAW"}
@@ -1,6 +1,8 @@
1
1
  import { Feedback, Sound, Vibration } from '../Feedback';
2
2
  export interface VibrationJSON {
3
3
  type: string;
4
+ timings: number[] | null;
5
+ amplitudes: number[] | null;
4
6
  }
5
7
  export interface PrivateVibration {
6
8
  fromJSON(json: VibrationJSON): Vibration;
@@ -0,0 +1,14 @@
1
+ import { RadiusLocationSelection, RectangularLocationSelection } from '../LocationSelection';
2
+ import { NumberWithUnitJSON, SizeWithUnitAndAspectJSON } from './PrivateCommon';
3
+ export interface RadiusLocationSelectionJSON {
4
+ radius: NumberWithUnitJSON;
5
+ }
6
+ export interface PrivateRadiusLocationSelection {
7
+ fromJSON(JSON: RadiusLocationSelectionJSON): RadiusLocationSelection;
8
+ }
9
+ export interface RectangularLocationSelectionJSON {
10
+ aspect: SizeWithUnitAndAspectJSON;
11
+ }
12
+ export interface PrivateRectangularLocationSelection {
13
+ fromJSON(JSON: RectangularLocationSelectionJSON): RectangularLocationSelection;
14
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=PrivateLocationSelection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrivateLocationSelection.js","sourceRoot":"","sources":["../../ts/private/PrivateLocationSelection.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scandit-react-native-datacapture-core",
3
- "version": "6.16.0-beta.1",
3
+ "version": "6.16.0",
4
4
  "description": "Scandit Data Capture SDK for React Native",
5
5
  "homepage": "https://github.com/Scandit/scandit-react-native-datacapture-core",
6
6
  "main": "js/index.js",
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.requires_arc = true
17
17
  s.module_name = "ScanditDataCaptureCore"
18
18
  s.header_dir = "ScanditDataCaptureCore"
19
- s.dependency 'ScanditCaptureCore', '= 6.16.0-beta.1'
19
+ s.dependency 'ScanditCaptureCore', '= 6.16.0'
20
20
 
21
21
  s.dependency "React"
22
22
  end