@applicaster/quick-brick-native-apple 6.9.2 → 6.9.3-alpha.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "QuickBrickApple",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.3-alpha.0",
|
|
4
4
|
"platforms": {
|
|
5
5
|
"ios": "14.0",
|
|
6
6
|
"tvos": "14.0"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"authors": "Applicaster LTD.",
|
|
17
17
|
"source": {
|
|
18
18
|
"git": "https://github.com/applicaster/Zapp-Frameworks.git",
|
|
19
|
-
"tag": "@@applicaster/quick-brick-native-apple/6.9.
|
|
19
|
+
"tag": "@@applicaster/quick-brick-native-apple/6.9.3-alpha.0"
|
|
20
20
|
},
|
|
21
21
|
"requires_arc": true,
|
|
22
22
|
"source_files": "universal/**/*.{m,swift}",
|
package/apple/universal/Models/ReactAnalyticsAgentPlugin/ReactAnalyticsAgentPluginEventEmitter.swift
CHANGED
|
@@ -7,10 +7,13 @@
|
|
|
7
7
|
//
|
|
8
8
|
|
|
9
9
|
import React
|
|
10
|
+
import XrayLogger
|
|
10
11
|
import ZappCore
|
|
11
12
|
|
|
12
13
|
@objc(ReactAnalyticsAgentPluginEventEmitter)
|
|
13
14
|
open class ReactAnalyticsAgentPluginEventEmitter: RCTEventEmitter {
|
|
15
|
+
public lazy var logger = Logger.getLogger(for: String(describing: "\(kNativeSubsystemPath)/\(ReactAnalyticsAgentPluginEventEmitter.self)"))
|
|
16
|
+
|
|
14
17
|
private var hasListeners = false
|
|
15
18
|
|
|
16
19
|
override init() {
|
|
@@ -39,6 +42,16 @@ open class ReactAnalyticsAgentPluginEventEmitter: RCTEventEmitter {
|
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
override open func addListener(_ eventName: String!) {
|
|
42
|
-
|
|
45
|
+
guard let eventName else {
|
|
46
|
+
logger?.errorLog(message: "addListener: Event name is empty can not add listener")
|
|
47
|
+
|
|
48
|
+
return
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if EventEmitter.shared.allEvents.contains(eventName) == true {
|
|
52
|
+
super.addListener(eventName)
|
|
53
|
+
} else {
|
|
54
|
+
logger?.errorLog(message: "addListener: Can not add listener for event: \(eventName), event is not supported in EventEmitter, supported: \(EventEmitter.shared.allEvents.map { String($0) }.joined(separator: ","))")
|
|
55
|
+
}
|
|
43
56
|
}
|
|
44
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-native-apple",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.3-alpha.0",
|
|
4
4
|
"description": "iOS and tvOS native code for QuickBrick applications. This package is used to provide native logic for QuickBrick",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|