@screeb/react-native 0.8.9 → 0.8.11
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.
package/android/build.gradle
CHANGED
|
@@ -124,6 +124,6 @@ def kotlin_version = getExtOrDefault('kotlinVersion')
|
|
|
124
124
|
dependencies {
|
|
125
125
|
// noinspection GradleDynamicVersion
|
|
126
126
|
api 'com.facebook.react:react-native:+'
|
|
127
|
-
implementation "app.screeb.sdk:survey:1.10.
|
|
127
|
+
implementation "app.screeb.sdk:survey:1.10.6"
|
|
128
128
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.0"
|
|
129
129
|
}
|
|
@@ -111,7 +111,7 @@ class ScreebModuleModule(reactContext: ReactApplicationContext) :
|
|
|
111
111
|
map = hiddenFields.toHashMap()
|
|
112
112
|
}
|
|
113
113
|
Handler(Looper.getMainLooper()).post {
|
|
114
|
-
Screeb.startSurvey(surveyId, allowMultipleResponses, map)
|
|
114
|
+
Screeb.startSurvey(surveyId, allowMultipleResponses ?: true, map)
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
|
package/ios/ScreebModule.swift
CHANGED
|
@@ -23,7 +23,7 @@ class ScreebModule: NSObject {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
@objc func setIdentity(_ userId: String, properties properties_: [String: Any
|
|
26
|
+
@objc func setIdentity(_ userId: String, properties properties_: [String: Any]?) {
|
|
27
27
|
var map: [String: AnyEncodable?] = [:]
|
|
28
28
|
if (properties_ != nil) {
|
|
29
29
|
map = self.mapToAnyEncodable(map: properties_!)
|
|
@@ -33,7 +33,7 @@ class ScreebModule: NSObject {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@objc func trackEvent(_ eventId: String, properties properties_: [String: Any
|
|
36
|
+
@objc func trackEvent(_ eventId: String, properties properties_: [String: Any]?) {
|
|
37
37
|
var map: [String: AnyEncodable?] = [:]
|
|
38
38
|
if (properties_ != nil) {
|
|
39
39
|
map = self.mapToAnyEncodable(map: properties_!)
|
|
@@ -43,7 +43,7 @@ class ScreebModule: NSObject {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
@objc func trackScreen(_ screen: String, properties properties_: [String: Any
|
|
46
|
+
@objc func trackScreen(_ screen: String, properties properties_: [String: Any]?) {
|
|
47
47
|
var map: [String: AnyEncodable?] = [:]
|
|
48
48
|
if (properties_ != nil) {
|
|
49
49
|
map = self.mapToAnyEncodable(map: properties_!)
|
|
@@ -54,7 +54,7 @@ class ScreebModule: NSObject {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
@objc(setProperties:)
|
|
57
|
-
func setVisitorPropertiesImpl(_ properties: [String: Any
|
|
57
|
+
func setVisitorPropertiesImpl(_ properties: [String: Any]) {
|
|
58
58
|
let map = self.mapToAnyEncodable(map: properties)
|
|
59
59
|
DispatchQueue.main.async {
|
|
60
60
|
Screeb.visitorProperty(visitorProperty: map)
|
|
@@ -71,7 +71,7 @@ class ScreebModule: NSObject {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
@objc func assignGroup(_ type: String?, name name_: String, properties properties_: [String: Any
|
|
74
|
+
@objc func assignGroup(_ type: String?, name name_: String, properties properties_: [String: Any]?) {
|
|
75
75
|
var map: [String: AnyEncodable] = [:]
|
|
76
76
|
if (properties_ != nil) {
|
|
77
77
|
map = self.mapToAnyEncodable(map: properties_!).filter({ $0.value != nil }).mapValues({ $0! })
|
|
@@ -81,7 +81,7 @@ class ScreebModule: NSObject {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
@objc func unassignGroup(_ type: String?, name name_: String, properties properties_: [String: Any
|
|
84
|
+
@objc func unassignGroup(_ type: String?, name name_: String, properties properties_: [String: Any]?) {
|
|
85
85
|
var map: [String: AnyEncodable] = [:]
|
|
86
86
|
if (properties_ != nil) {
|
|
87
87
|
map = self.mapToAnyEncodable(map: properties_!).filter({ $0.value != nil }).mapValues({ $0! })
|
package/package.json
CHANGED
package/screeb-module.podspec
CHANGED