scandit-react-native-datacapture-core 6.13.1 → 6.14.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.
@@ -38,7 +38,7 @@ android {
38
38
  }
39
39
 
40
40
  dependencies {
41
- def sdk_version = "6.13.1"
41
+ def sdk_version = "6.14.0"
42
42
 
43
43
  api "com.scandit.datacapture:core:$sdk_version"
44
44
 
@@ -72,6 +72,7 @@ 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
75
76
  }
76
77
 
77
78
  @get:VisibleForTesting
@@ -80,6 +81,7 @@ class ScanditDataCaptureCoreModule(
80
81
  field?.removeListener(this)
81
82
  field?.release()
82
83
  field = value?.also { it.addListener(this) }
84
+ context = value
83
85
  }
84
86
 
85
87
  private var camera: Camera? = null
@@ -50,6 +50,7 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
50
50
 
51
51
  didSet {
52
52
  context?.addListener(self)
53
+ ScanditDataCaptureCore.dataCaptureContext = context
53
54
  }
54
55
  }
55
56
 
@@ -68,6 +69,7 @@ public class ScanditDataCaptureCore: RCTEventEmitter {
68
69
  }
69
70
 
70
71
  public static var lastFrame: FrameData?
72
+ public static var dataCaptureContext: DataCaptureContext?
71
73
 
72
74
  lazy internal var contextDeserializer: DataCaptureContextDeserializer = {
73
75
  return DataCaptureContextDeserializer(frameSourceDeserializer: frameSourceDeserializer,
@@ -9,7 +9,7 @@ var DataCaptureVersion = /** @class */ (function () {
9
9
  }
10
10
  Object.defineProperty(DataCaptureVersion, "pluginVersion", {
11
11
  get: function () {
12
- return '6.13.1';
12
+ return '6.14.0';
13
13
  },
14
14
  enumerable: false,
15
15
  configurable: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scandit-react-native-datacapture-core",
3
- "version": "6.13.1",
3
+ "version": "6.14.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.13.1'
19
+ s.dependency 'ScanditCaptureCore', '= 6.14.0'
20
20
 
21
21
  s.dependency "React"
22
22
  end