@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 = switch (privacy) {
50
- case 0 -> SessionReplayPrivacy.MASK;
51
- case 1 -> SessionReplayPrivacy.ALLOW;
52
- case 2 -> SessionReplayPrivacy.MASK_USER_INPUT;
53
- default -> null;
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 rumKeysArray) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcare/react-native-session-replay",
3
- "version": "0.4.1",
3
+ "version": "0.4.2-alpha.1",
4
4
  "description": "Session Replay package for Guance React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",