scandit-react-native-datacapture-core 6.19.2 → 6.19.3

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.
@@ -60,7 +60,7 @@ android {
60
60
  }
61
61
 
62
62
  dependencies {
63
- def sdk_version = "6.19.2"
63
+ def sdk_version = "6.19.3"
64
64
 
65
65
  println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
66
66
  if (findProject(':scandit-datacapture-frameworks-core') != null) {
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import Foundation
8
+ import React
8
9
  import ScanditCaptureCore
9
10
  import ScanditFrameworksCore
10
11
 
@@ -4,12 +4,19 @@
4
4
  * Copyright (C) 2023- Scandit AG. All rights reserved.
5
5
  */
6
6
 
7
+ import React
7
8
  import ScanditFrameworksCore
8
9
 
9
- public class ReactNativeEmitter: Emitter {
10
+ public protocol ReactNativeEmitting: Emitter {
11
+ init(emitter: RCTEventEmitter)
12
+ func emit(name: String, payload: [String: Any?])
13
+ func hasListener(for event: String) -> Bool
14
+ }
15
+
16
+ public class ReactNativeEmitter: ReactNativeEmitting {
10
17
  weak var emitter: RCTEventEmitter?
11
18
 
12
- public init(emitter: RCTEventEmitter) {
19
+ public required init(emitter: RCTEventEmitter) {
13
20
  self.emitter = emitter
14
21
  }
15
22
 
@@ -9,7 +9,7 @@ var DataCaptureVersion = /** @class */ (function () {
9
9
  }
10
10
  Object.defineProperty(DataCaptureVersion, "pluginVersion", {
11
11
  get: function () {
12
- return '6.19.2';
12
+ return '6.19.3';
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.19.2",
3
+ "version": "6.19.3",
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",
@@ -17,6 +17,6 @@ Pod::Spec.new do |s|
17
17
  s.module_name = "ScanditDataCaptureCore"
18
18
  s.header_dir = "ScanditDataCaptureCore"
19
19
 
20
- s.dependency "scandit-datacapture-frameworks-core", '= 6.19.2'
20
+ s.dependency "scandit-datacapture-frameworks-core", '= 6.19.3'
21
21
  s.dependency "React"
22
22
  end