@sentiance-react-native/user-context 6.3.0-rc.2 → 6.3.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.
|
@@ -62,6 +62,7 @@ public class SentianceUserContextConverter {
|
|
|
62
62
|
private static WritableMap convertEvent(Event event) {
|
|
63
63
|
WritableMap map = Arguments.createMap();
|
|
64
64
|
|
|
65
|
+
map.putString("id", event.getId());
|
|
65
66
|
map.putString("startTime", event.getStartTime().toString());
|
|
66
67
|
map.putDouble("startTimeEpoch", event.getStartTime().getEpochTime());
|
|
67
68
|
if (event.getEndTime() != null) {
|
|
@@ -70,7 +71,7 @@ public class SentianceUserContextConverter {
|
|
|
70
71
|
|
|
71
72
|
Long durationInSeconds = event.getDurationInSeconds();
|
|
72
73
|
if (durationInSeconds != null) {
|
|
73
|
-
map.
|
|
74
|
+
map.putDouble("durationInSeconds", durationInSeconds);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
|
package/android/src/main/java/com/sentiance/react/bridge/usercontext/SentianceUserContextModule.java
CHANGED
|
@@ -72,13 +72,19 @@ public class SentianceUserContextModule extends AbstractSentianceModule {
|
|
|
72
72
|
promise.resolve(true);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
@Override
|
|
75
76
|
@ReactMethod
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
protected void addListener(String eventName, int subscriptionId, Promise promise) {
|
|
78
|
+
|
|
78
79
|
}
|
|
79
80
|
|
|
81
|
+
@Override
|
|
80
82
|
@ReactMethod
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
protected void removeListener(String eventName, int subscriptionId, Promise promise) {
|
|
84
|
+
|
|
83
85
|
}
|
|
86
|
+
|
|
87
|
+
@Override
|
|
88
|
+
@ReactMethod
|
|
89
|
+
public void removeListeners(Integer count) {}
|
|
84
90
|
}
|
package/lib/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentiance-react-native/user-context",
|
|
3
|
-
"version": "6.3.0
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "React Native Sentiance - This module provides an easy API to add user context awareness into your apps.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"sentiance"
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@sentiance-react-native/core": "6.3.0
|
|
17
|
+
"@sentiance-react-native/core": "6.3.0"
|
|
18
18
|
},
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "",
|