@cloudcare/react-native-session-replay 0.4.1 → 0.4.2-alpha.1
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.
|
@@ -46,12 +46,18 @@ public class FTSessionReplayImpl {
|
|
|
46
46
|
|
|
47
47
|
// Handle deprecated privacy setting for backward compatibility
|
|
48
48
|
if (privacy != null) {
|
|
49
|
-
SessionReplayPrivacy sessionReplayPrivacy =
|
|
50
|
-
|
|
51
|
-
case
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
SessionReplayPrivacy sessionReplayPrivacy = null;
|
|
50
|
+
switch (privacy) {
|
|
51
|
+
case 0:
|
|
52
|
+
sessionReplayPrivacy = SessionReplayPrivacy.MASK;
|
|
53
|
+
break;
|
|
54
|
+
case 1:
|
|
55
|
+
sessionReplayPrivacy = SessionReplayPrivacy.ALLOW;
|
|
56
|
+
break;
|
|
57
|
+
case 2:
|
|
58
|
+
sessionReplayPrivacy = SessionReplayPrivacy.MASK_USER_INPUT;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
55
61
|
sessionReplayConfig.setPrivacy(sessionReplayPrivacy);
|
|
56
62
|
}
|
|
57
63
|
|
|
@@ -99,7 +105,8 @@ public class FTSessionReplayImpl {
|
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
// Handle enableLinkRUMKeys
|
|
102
|
-
if (enableLinkRUMKeysObj instanceof ReadableArray
|
|
108
|
+
if (enableLinkRUMKeysObj instanceof ReadableArray) {
|
|
109
|
+
ReadableArray rumKeysArray = (ReadableArray) enableLinkRUMKeysObj;
|
|
103
110
|
String[] rumKeys = new String[rumKeysArray.size()];
|
|
104
111
|
for (int i = 0; i < rumKeysArray.size(); i++) {
|
|
105
112
|
rumKeys[i] = rumKeysArray.getString(i);
|
package/package.json
CHANGED