tagworks-sdk-v1-react 1.1.9 → 1.1.10
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.
|
@@ -24,7 +24,8 @@ class DataBundleModule: NSObject, RCTBridgeModule {
|
|
|
24
24
|
return true
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
@objc func
|
|
27
|
+
// @objc static func constatantsToExport() -> [AnyHashable: Any]! {
|
|
28
|
+
@objc static func constatantsToExport() -> [String: String]! {
|
|
28
29
|
// 상수값을 반환합니다. JavaScript로 전달됩니다.
|
|
29
30
|
return [
|
|
30
31
|
"EVENT_TAG_NAME": "OBZEN_EVENT_NAME",
|
|
@@ -20,7 +20,8 @@ class StandardEventModule: NSObject, RCTBridgeModule {
|
|
|
20
20
|
return true
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
@objc func
|
|
23
|
+
// @objc static func constatantsToExport() -> [AnyHashable: Any]! {
|
|
24
|
+
@objc static func constatantsToExport() -> [String: String]! {
|
|
24
25
|
// 상수값을 반환합니다. JavaScript로 전달됩니다.
|
|
25
26
|
return [
|
|
26
27
|
"PAGE_VIEW" : "PageView",
|
package/ios/TagWorksModule.swift
CHANGED
|
@@ -22,7 +22,8 @@ class TagWorksModule: NSObject, RCTBridgeModule {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// MARK: 이벤트 상수 선언
|
|
25
|
-
@objc func
|
|
25
|
+
// @objc static func constatantsToExport() -> [AnyHashable: Any]! {
|
|
26
|
+
@objc static func constatantsToExport() -> [String: String]! {
|
|
26
27
|
// 상수값을 반환합니다. JavaScript로 전달됩니다.
|
|
27
28
|
return [
|
|
28
29
|
"EVENT_TYPE_PAGE": "EVENT_TYPE_PAGE",
|
|
@@ -248,8 +249,10 @@ class TagWorksModule: NSObject, RCTBridgeModule {
|
|
|
248
249
|
do {
|
|
249
250
|
// Data를 Dictionary로 변환
|
|
250
251
|
if let dictionary = try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] {
|
|
251
|
-
if dictionary
|
|
252
|
-
|
|
252
|
+
if dictionary.keys.contains("e_a") {
|
|
253
|
+
if dictionary["e_a"] as! String == "obzen" {
|
|
254
|
+
TagWorks.sharedInstance.webViewInterface.webInterfaceDidReceiveDictionary(dictionary)
|
|
255
|
+
}
|
|
253
256
|
}
|
|
254
257
|
}
|
|
255
258
|
} catch {
|