@luciq/react-native 19.0.0-286-SNAPSHOT → 19.1.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.
- package/CHANGELOG.md +13 -1
- package/android/native.gradle +1 -1
- package/android/src/main/java/ai/luciq/reactlibrary/ArgsRegistry.java +14 -0
- package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqSessionReplayModule.java +51 -0
- package/bin/index.js +0 -0
- package/dist/modules/APM.js +0 -12
- package/dist/modules/BugReporting.js +0 -38
- package/dist/modules/CrashReporting.js +0 -3
- package/dist/modules/FeatureRequests.js +0 -6
- package/dist/modules/Luciq.js +0 -58
- package/dist/modules/NetworkLogger.js +3 -21
- package/dist/modules/Replies.js +0 -15
- package/dist/modules/SessionReplay.d.ts +54 -0
- package/dist/modules/SessionReplay.js +59 -6
- package/dist/modules/Surveys.js +0 -10
- package/dist/native/NativeConstants.d.ts +11 -1
- package/dist/native/NativeSessionReplay.d.ts +3 -0
- package/dist/utils/Enums.d.ts +37 -0
- package/dist/utils/Enums.js +39 -0
- package/ios/RNLuciq/ArgsRegistry.h +2 -0
- package/ios/RNLuciq/ArgsRegistry.m +18 -0
- package/ios/RNLuciq/LuciqSessionReplayBridge.h +6 -0
- package/ios/RNLuciq/LuciqSessionReplayBridge.m +11 -0
- package/ios/RNLuciq/RCTConvert+LuciqEnums.m +14 -0
- package/ios/native.rb +1 -1
- package/package.json +2 -1
- package/plugin/build/index.js +42078 -0
- package/src/modules/APM.ts +0 -12
- package/src/modules/BugReporting.ts +0 -38
- package/src/modules/CrashReporting.ts +0 -3
- package/src/modules/FeatureRequests.ts +0 -6
- package/src/modules/Luciq.ts +0 -58
- package/src/modules/NetworkLogger.ts +3 -21
- package/src/modules/Replies.ts +0 -15
- package/src/modules/SessionReplay.ts +63 -6
- package/src/modules/Surveys.ts +0 -10
- package/src/native/NativeConstants.ts +15 -1
- package/src/native/NativeSessionReplay.ts +3 -0
- package/src/utils/Enums.ts +39 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [19.1.0](https://github.com/luciqai/luciq-reactnative-sdk/compare/v19.1.0...19.0.0)
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add support session replay Video-Like. ([#19](https://github.com/luciqai/luciq-reactnative-sdk/pull/19))
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Bump Luciq iOS SDK to v19.3.0 ([#22](https://github.com/luciqai/luciq-reactnative-sdk/pull/22)). [See release notes](https://github.com/luciqai/Luciq-iOS-sdk/releases/tag/19.3.0).
|
|
12
|
+
|
|
13
|
+
- Bump Luciq Android SDK to v19.1.0 ([#22](https://github.com/luciqai/luciq-reactnative-sdk/pull/22)). [See release notes](https://github.com/luciqai/Luciq-Android-sdk/releases/tag/v19.1.0).
|
|
14
|
+
|
|
3
15
|
## [19.0.0](https://github.com/luciqai/luciq-reactnative-sdk/compare/v19.0.0...dev)
|
|
4
16
|
|
|
5
17
|
### Added
|
|
@@ -44,4 +56,4 @@
|
|
|
44
56
|
|
|
45
57
|
## [18.0.0](https://github.com/luciqai/luciq-reactnative-sdk/compare/v18.0.0...dev) (September 24, 2025)
|
|
46
58
|
|
|
47
|
-
- SDK rebranded from
|
|
59
|
+
- SDK rebranded from Instabug to Luciq.
|
package/android/native.gradle
CHANGED
|
@@ -65,6 +65,8 @@ final class ArgsRegistry {
|
|
|
65
65
|
putAll(overAirUpdateService);
|
|
66
66
|
putAll(autoMaskingTypes);
|
|
67
67
|
putAll(userConsentActionType);
|
|
68
|
+
putAll(capturingModes);
|
|
69
|
+
putAll(screenshotQualities);
|
|
68
70
|
}};
|
|
69
71
|
}
|
|
70
72
|
|
|
@@ -275,4 +277,16 @@ final class ArgsRegistry {
|
|
|
275
277
|
put("media", MaskingType.MEDIA);
|
|
276
278
|
put("none", MaskingType.MASK_NOTHING);
|
|
277
279
|
}};
|
|
280
|
+
|
|
281
|
+
public static final ArgsMap<Integer> capturingModes = new ArgsMap<Integer>() {{
|
|
282
|
+
put("capturingModeNavigation", ai.luciq.library.sessionreplay.CapturingMode.NAVIGATION);
|
|
283
|
+
put("capturingModeInteractions", ai.luciq.library.sessionreplay.CapturingMode.INTERACTIONS);
|
|
284
|
+
put("capturingModeFrequency", ai.luciq.library.sessionreplay.CapturingMode.FREQUENCY);
|
|
285
|
+
}};
|
|
286
|
+
|
|
287
|
+
public static final ArgsMap<Integer> screenshotQualities = new ArgsMap<Integer>() {{
|
|
288
|
+
put("screenshotQualityHigh", ai.luciq.library.sessionreplay.ScreenshotQuality.HIGH);
|
|
289
|
+
put("screenshotQualityNormal", ai.luciq.library.sessionreplay.ScreenshotQuality.NORMAL);
|
|
290
|
+
put("screenshotQualityGreyscale", ai.luciq.library.sessionreplay.ScreenshotQuality.GREYSCALE);
|
|
291
|
+
}};
|
|
278
292
|
}
|
|
@@ -18,6 +18,7 @@ import ai.luciq.library.sessionreplay.SessionReplay;
|
|
|
18
18
|
import ai.luciq.library.sessionreplay.model.SessionMetadata;
|
|
19
19
|
import ai.luciq.reactlibrary.utils.EventEmitterModule;
|
|
20
20
|
import ai.luciq.reactlibrary.utils.MainThreadHandler;
|
|
21
|
+
import android.util.Log;
|
|
21
22
|
import java.util.ArrayList;
|
|
22
23
|
import java.util.List;
|
|
23
24
|
import java.util.concurrent.CountDownLatch;
|
|
@@ -208,6 +209,56 @@ public class RNLuciqSessionReplayModule extends EventEmitterModule {
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
|
|
212
|
+
@ReactMethod
|
|
213
|
+
public void setCapturingMode(final String mode) {
|
|
214
|
+
MainThreadHandler.runOnMainThread(new Runnable() {
|
|
215
|
+
@Override
|
|
216
|
+
public void run() {
|
|
217
|
+
try {
|
|
218
|
+
Integer capturingMode = ArgsRegistry.capturingModes.get(mode);
|
|
219
|
+
if (capturingMode != null) {
|
|
220
|
+
SessionReplay.setCapturingMode(capturingMode);
|
|
221
|
+
} else {
|
|
222
|
+
Log.w("LCQSessionReplay", "Invalid capturing mode: " + mode);
|
|
223
|
+
}
|
|
224
|
+
} catch (Exception e) {
|
|
225
|
+
e.printStackTrace();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@ReactMethod
|
|
232
|
+
public void setScreenshotQuality(final String quality) {
|
|
233
|
+
MainThreadHandler.runOnMainThread(new Runnable() {
|
|
234
|
+
@Override
|
|
235
|
+
public void run() {
|
|
236
|
+
try {
|
|
237
|
+
Integer screenshotQuality = ArgsRegistry.screenshotQualities.get(quality);
|
|
238
|
+
if (screenshotQuality != null) {
|
|
239
|
+
SessionReplay.setScreenshotQuality(screenshotQuality);
|
|
240
|
+
} else {
|
|
241
|
+
Log.w("LCQSessionReplay", "Invalid screenshot quality: " + quality);
|
|
242
|
+
}
|
|
243
|
+
} catch (Exception e) {
|
|
244
|
+
e.printStackTrace();
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}
|
|
211
249
|
|
|
250
|
+
@ReactMethod
|
|
251
|
+
public void setScreenshotCaptureInterval(final int intervalMs) {
|
|
252
|
+
MainThreadHandler.runOnMainThread(new Runnable() {
|
|
253
|
+
@Override
|
|
254
|
+
public void run() {
|
|
255
|
+
try {
|
|
256
|
+
SessionReplay.setScreenshotCaptureInterval(intervalMs);
|
|
257
|
+
} catch (Exception e) {
|
|
258
|
+
e.printStackTrace();
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
}
|
|
212
263
|
|
|
213
264
|
}
|
package/bin/index.js
CHANGED
|
File without changes
|
package/dist/modules/APM.js
CHANGED
|
@@ -6,7 +6,6 @@ import { NativeLuciq } from '../native/NativeLuciq';
|
|
|
6
6
|
* @param isEnabled
|
|
7
7
|
*/
|
|
8
8
|
export const setEnabled = (isEnabled) => {
|
|
9
|
-
console.log('[LCQ-RN] APM.setEnabled called', { isEnabled });
|
|
10
9
|
NativeAPM.setEnabled(isEnabled);
|
|
11
10
|
};
|
|
12
11
|
/**
|
|
@@ -15,7 +14,6 @@ export const setEnabled = (isEnabled) => {
|
|
|
15
14
|
* @param isEnabled
|
|
16
15
|
*/
|
|
17
16
|
export const setAppLaunchEnabled = (isEnabled) => {
|
|
18
|
-
console.log('[LCQ-RN] APM.setAppLaunchEnabled called', { isEnabled });
|
|
19
17
|
NativeAPM.setAppLaunchEnabled(isEnabled);
|
|
20
18
|
};
|
|
21
19
|
/**
|
|
@@ -24,7 +22,6 @@ export const setAppLaunchEnabled = (isEnabled) => {
|
|
|
24
22
|
* You can then view this data with the automatic cold app launch.
|
|
25
23
|
*/
|
|
26
24
|
export const endAppLaunch = () => {
|
|
27
|
-
console.log('[LCQ-RN] APM.endAppLaunch called');
|
|
28
25
|
NativeAPM.endAppLaunch();
|
|
29
26
|
};
|
|
30
27
|
/**
|
|
@@ -32,7 +29,6 @@ export const endAppLaunch = () => {
|
|
|
32
29
|
* @param isEnabled - a boolean indicates either iOS monitoring is enabled or disabled.
|
|
33
30
|
*/
|
|
34
31
|
export const setNetworkEnabledIOS = (isEnabled) => {
|
|
35
|
-
console.log('[LCQ-RN] APM.setNetworkEnabledIOS called', { isEnabled });
|
|
36
32
|
if (Platform.OS === 'ios') {
|
|
37
33
|
NativeLuciq.setNetworkLoggingEnabled(isEnabled);
|
|
38
34
|
}
|
|
@@ -42,7 +38,6 @@ export const setNetworkEnabledIOS = (isEnabled) => {
|
|
|
42
38
|
* @param isEnabled
|
|
43
39
|
*/
|
|
44
40
|
export const setAutoUITraceEnabled = (isEnabled) => {
|
|
45
|
-
console.log('[LCQ-RN] APM.setAutoUITraceEnabled called', { isEnabled });
|
|
46
41
|
NativeAPM.setAutoUITraceEnabled(isEnabled);
|
|
47
42
|
};
|
|
48
43
|
/**
|
|
@@ -57,7 +52,6 @@ export const setAutoUITraceEnabled = (isEnabled) => {
|
|
|
57
52
|
* and the Luciq SDK is initialized.
|
|
58
53
|
*/
|
|
59
54
|
export const startFlow = (name) => {
|
|
60
|
-
console.log('[LCQ-RN] APM.startFlow called', { name });
|
|
61
55
|
NativeAPM.startFlow(name);
|
|
62
56
|
};
|
|
63
57
|
/**
|
|
@@ -66,7 +60,6 @@ export const startFlow = (name) => {
|
|
|
66
60
|
* @param name - The name of the AppFlow to end. It cannot be an empty string or null.
|
|
67
61
|
*/
|
|
68
62
|
export const endFlow = (name) => {
|
|
69
|
-
console.log('[LCQ-RN] APM.endFlow called', { name });
|
|
70
63
|
NativeAPM.endFlow(name);
|
|
71
64
|
};
|
|
72
65
|
/**
|
|
@@ -86,7 +79,6 @@ export const endFlow = (name) => {
|
|
|
86
79
|
* @param [value] - The value of the attribute. It cannot be an empty string. Use null to remove the attribute.
|
|
87
80
|
*/
|
|
88
81
|
export const setFlowAttribute = (name, key, value) => {
|
|
89
|
-
console.log('[LCQ-RN] APM.setFlowAttribute called', { name, key, value });
|
|
90
82
|
NativeAPM.setFlowAttribute(name, key, value);
|
|
91
83
|
};
|
|
92
84
|
/**
|
|
@@ -96,21 +88,18 @@ export const setFlowAttribute = (name, key, value) => {
|
|
|
96
88
|
* the specific UI trace within the application.
|
|
97
89
|
*/
|
|
98
90
|
export const startUITrace = (name) => {
|
|
99
|
-
console.log('[LCQ-RN] APM.startUITrace called', { name });
|
|
100
91
|
NativeAPM.startUITrace(name);
|
|
101
92
|
};
|
|
102
93
|
/**
|
|
103
94
|
* Ends the currently running custom trace.
|
|
104
95
|
*/
|
|
105
96
|
export const endUITrace = () => {
|
|
106
|
-
console.log('[LCQ-RN] APM.endUITrace called');
|
|
107
97
|
NativeAPM.endUITrace();
|
|
108
98
|
};
|
|
109
99
|
/**
|
|
110
100
|
* Used for internal testing.
|
|
111
101
|
*/
|
|
112
102
|
export const _lcqSleep = () => {
|
|
113
|
-
console.log('[LCQ-RN] APM._lcqSleep called');
|
|
114
103
|
NativeAPM.lcqSleep();
|
|
115
104
|
};
|
|
116
105
|
/**
|
|
@@ -118,6 +107,5 @@ export const _lcqSleep = () => {
|
|
|
118
107
|
* @param isEnabled
|
|
119
108
|
*/
|
|
120
109
|
export const setScreenRenderingEnabled = (isEnabled) => {
|
|
121
|
-
console.log('[LCQ-RN] APM.setScreenRenderingEnabled called', { isEnabled });
|
|
122
110
|
NativeAPM.setScreenRenderingEnabled(isEnabled);
|
|
123
111
|
};
|
|
@@ -5,7 +5,6 @@ import { NativeBugReporting, NativeEvents, emitter } from '../native/NativeBugRe
|
|
|
5
5
|
* @param isEnabled
|
|
6
6
|
*/
|
|
7
7
|
export const setEnabled = (isEnabled) => {
|
|
8
|
-
console.log('[LCQ-RN] BugReporting.setEnabled called', { isEnabled });
|
|
9
8
|
NativeBugReporting.setEnabled(isEnabled);
|
|
10
9
|
};
|
|
11
10
|
/**
|
|
@@ -14,7 +13,6 @@ export const setEnabled = (isEnabled) => {
|
|
|
14
13
|
* @param events Array of events that invokes the feedback form.
|
|
15
14
|
*/
|
|
16
15
|
export const setInvocationEvents = (events) => {
|
|
17
|
-
console.log('[LCQ-RN] BugReporting.setInvocationEvents called', { events });
|
|
18
16
|
NativeBugReporting.setInvocationEvents(events);
|
|
19
17
|
};
|
|
20
18
|
/**
|
|
@@ -23,7 +21,6 @@ export const setInvocationEvents = (events) => {
|
|
|
23
21
|
* @param options Array of invocation options
|
|
24
22
|
*/
|
|
25
23
|
export const setOptions = (options) => {
|
|
26
|
-
console.log('[LCQ-RN] BugReporting.setOptions called', { options });
|
|
27
24
|
NativeBugReporting.setOptions(options);
|
|
28
25
|
};
|
|
29
26
|
/**
|
|
@@ -33,7 +30,6 @@ export const setOptions = (options) => {
|
|
|
33
30
|
* @param handler A callback that gets executed before invoking the SDK
|
|
34
31
|
*/
|
|
35
32
|
export const onInvokeHandler = (handler) => {
|
|
36
|
-
console.log('[LCQ-RN] BugReporting.onInvokeHandler called');
|
|
37
33
|
emitter.addListener(NativeEvents.ON_INVOKE_HANDLER, handler);
|
|
38
34
|
NativeBugReporting.setOnInvokeHandler(handler);
|
|
39
35
|
};
|
|
@@ -44,7 +40,6 @@ export const onInvokeHandler = (handler) => {
|
|
|
44
40
|
* @param handler A callback to get executed after dismissing the SDK.
|
|
45
41
|
*/
|
|
46
42
|
export const onSDKDismissedHandler = (handler) => {
|
|
47
|
-
console.log('[LCQ-RN] BugReporting.onSDKDismissedHandler called');
|
|
48
43
|
emitter.addListener(NativeEvents.ON_DISMISS_HANDLER, (payload) => {
|
|
49
44
|
handler(payload.dismissType, payload.reportType);
|
|
50
45
|
});
|
|
@@ -56,7 +51,6 @@ export const onSDKDismissedHandler = (handler) => {
|
|
|
56
51
|
* @param threshold Threshold for iPhone.
|
|
57
52
|
*/
|
|
58
53
|
export const setShakingThresholdForiPhone = (threshold) => {
|
|
59
|
-
console.log('[LCQ-RN] BugReporting.setShakingThresholdForiPhone called', { threshold });
|
|
60
54
|
if (Platform.OS === 'ios') {
|
|
61
55
|
NativeBugReporting.setShakingThresholdForiPhone(threshold);
|
|
62
56
|
}
|
|
@@ -67,7 +61,6 @@ export const setShakingThresholdForiPhone = (threshold) => {
|
|
|
67
61
|
* @param threshold Threshold for iPad.
|
|
68
62
|
*/
|
|
69
63
|
export const setShakingThresholdForiPad = (threshold) => {
|
|
70
|
-
console.log('[LCQ-RN] BugReporting.setShakingThresholdForiPad called', { threshold });
|
|
71
64
|
if (Platform.OS === 'ios') {
|
|
72
65
|
NativeBugReporting.setShakingThresholdForiPad(threshold);
|
|
73
66
|
}
|
|
@@ -80,7 +73,6 @@ export const setShakingThresholdForiPad = (threshold) => {
|
|
|
80
73
|
* @param threshold Threshold for android devices.
|
|
81
74
|
*/
|
|
82
75
|
export const setShakingThresholdForAndroid = (threshold) => {
|
|
83
|
-
console.log('[LCQ-RN] BugReporting.setShakingThresholdForAndroid called', { threshold });
|
|
84
76
|
if (Platform.OS === 'android') {
|
|
85
77
|
NativeBugReporting.setShakingThresholdForAndroid(threshold);
|
|
86
78
|
}
|
|
@@ -92,7 +84,6 @@ export const setShakingThresholdForAndroid = (threshold) => {
|
|
|
92
84
|
* enable it with required or with optional fields.
|
|
93
85
|
*/
|
|
94
86
|
export const setExtendedBugReportMode = (mode) => {
|
|
95
|
-
console.log('[LCQ-RN] BugReporting.setExtendedBugReportMode called', { mode });
|
|
96
87
|
NativeBugReporting.setExtendedBugReportMode(mode);
|
|
97
88
|
};
|
|
98
89
|
/**
|
|
@@ -100,7 +91,6 @@ export const setExtendedBugReportMode = (mode) => {
|
|
|
100
91
|
* @param types Array of reportTypes
|
|
101
92
|
*/
|
|
102
93
|
export const setReportTypes = (types) => {
|
|
103
|
-
console.log('[LCQ-RN] BugReporting.setReportTypes called', { types });
|
|
104
94
|
NativeBugReporting.setReportTypes(types);
|
|
105
95
|
};
|
|
106
96
|
/**
|
|
@@ -109,7 +99,6 @@ export const setReportTypes = (types) => {
|
|
|
109
99
|
* @param options
|
|
110
100
|
*/
|
|
111
101
|
export const show = (type, options) => {
|
|
112
|
-
console.log('[LCQ-RN] BugReporting.show called', { type, options });
|
|
113
102
|
NativeBugReporting.show(type, options ?? []);
|
|
114
103
|
};
|
|
115
104
|
/**
|
|
@@ -117,7 +106,6 @@ export const show = (type, options) => {
|
|
|
117
106
|
* @param isEnabled enable/disable screen recording on crash feature
|
|
118
107
|
*/
|
|
119
108
|
export const setAutoScreenRecordingEnabled = (isEnabled) => {
|
|
120
|
-
console.log('[LCQ-RN] BugReporting.setAutoScreenRecordingEnabled called', { isEnabled });
|
|
121
109
|
NativeBugReporting.setAutoScreenRecordingEnabled(isEnabled);
|
|
122
110
|
};
|
|
123
111
|
/**
|
|
@@ -127,7 +115,6 @@ export const setAutoScreenRecordingEnabled = (isEnabled) => {
|
|
|
127
115
|
* The maximum duration is 30 seconds
|
|
128
116
|
*/
|
|
129
117
|
export const setAutoScreenRecordingDurationIOS = (maxDuration) => {
|
|
130
|
-
console.log('[LCQ-RN] BugReporting.setAutoScreenRecordingDurationIOS called', { maxDuration });
|
|
131
118
|
if (Platform.OS !== 'ios') {
|
|
132
119
|
return;
|
|
133
120
|
}
|
|
@@ -142,9 +129,6 @@ export const setAutoScreenRecordingDurationIOS = (maxDuration) => {
|
|
|
142
129
|
* of screen, or `bottomRight` to show on the bottom right of screen.
|
|
143
130
|
*/
|
|
144
131
|
export const setVideoRecordingFloatingButtonPosition = (buttonPosition) => {
|
|
145
|
-
console.log('[LCQ-RN] BugReporting.setVideoRecordingFloatingButtonPosition called', {
|
|
146
|
-
buttonPosition,
|
|
147
|
-
});
|
|
148
132
|
NativeBugReporting.setVideoRecordingFloatingButtonPosition(buttonPosition);
|
|
149
133
|
};
|
|
150
134
|
/**
|
|
@@ -152,7 +136,6 @@ export const setVideoRecordingFloatingButtonPosition = (buttonPosition) => {
|
|
|
152
136
|
* @param isEnabled A boolean to set whether view hierarchy are enabled or disabled.
|
|
153
137
|
*/
|
|
154
138
|
export const setViewHierarchyEnabled = (isEnabled) => {
|
|
155
|
-
console.log('[LCQ-RN] BugReporting.setViewHierarchyEnabled called', { isEnabled });
|
|
156
139
|
NativeBugReporting.setViewHierarchyEnabled(isEnabled);
|
|
157
140
|
};
|
|
158
141
|
/**
|
|
@@ -164,13 +147,6 @@ export const setViewHierarchyEnabled = (isEnabled) => {
|
|
|
164
147
|
* @param actionType A string representing the action type to map to SDK behavior.
|
|
165
148
|
*/
|
|
166
149
|
export const addUserConsent = (key, description, mandatory, checked, actionType) => {
|
|
167
|
-
console.log('[LCQ-RN] BugReporting.addUserConsent called', {
|
|
168
|
-
key,
|
|
169
|
-
description,
|
|
170
|
-
mandatory,
|
|
171
|
-
checked,
|
|
172
|
-
actionType,
|
|
173
|
-
});
|
|
174
150
|
NativeBugReporting.addUserConsent(key, description, mandatory, checked, actionType);
|
|
175
151
|
};
|
|
176
152
|
/**
|
|
@@ -178,7 +154,6 @@ export const addUserConsent = (key, description, mandatory, checked, actionType)
|
|
|
178
154
|
* @param handler - A callback that gets executed when a prompt option is selected.
|
|
179
155
|
*/
|
|
180
156
|
export const setDidSelectPromptOptionHandler = (handler) => {
|
|
181
|
-
console.log('[LCQ-RN] BugReporting.setDidSelectPromptOptionHandler called');
|
|
182
157
|
if (Platform.OS === 'android') {
|
|
183
158
|
return;
|
|
184
159
|
}
|
|
@@ -194,7 +169,6 @@ export const setDidSelectPromptOptionHandler = (handler) => {
|
|
|
194
169
|
* @param offset The offset of the floating button from the top of the screen. Default is 50.
|
|
195
170
|
*/
|
|
196
171
|
export const setFloatingButtonEdge = (edge, offset) => {
|
|
197
|
-
console.log('[LCQ-RN] BugReporting.setFloatingButtonEdge called', { edge, offset });
|
|
198
172
|
NativeBugReporting.setFloatingButtonEdge(edge, offset);
|
|
199
173
|
};
|
|
200
174
|
/**
|
|
@@ -206,12 +180,6 @@ export const setFloatingButtonEdge = (edge, offset) => {
|
|
|
206
180
|
* @param screenRecording A boolean to enable or disable screen recording attachments.
|
|
207
181
|
*/
|
|
208
182
|
export const setEnabledAttachmentTypes = (screenshot, extraScreenshot, galleryImage, screenRecording) => {
|
|
209
|
-
console.log('[LCQ-RN] BugReporting.setEnabledAttachmentTypes called', {
|
|
210
|
-
screenshot,
|
|
211
|
-
extraScreenshot,
|
|
212
|
-
galleryImage,
|
|
213
|
-
screenRecording,
|
|
214
|
-
});
|
|
215
183
|
NativeBugReporting.setEnabledAttachmentTypes(screenshot, extraScreenshot, galleryImage, screenRecording);
|
|
216
184
|
};
|
|
217
185
|
/**
|
|
@@ -219,7 +187,6 @@ export const setEnabledAttachmentTypes = (screenshot, extraScreenshot, galleryIm
|
|
|
219
187
|
* @param text String text.
|
|
220
188
|
*/
|
|
221
189
|
export const setDisclaimerText = (text) => {
|
|
222
|
-
console.log('[LCQ-RN] BugReporting.setDisclaimerText called', { text });
|
|
223
190
|
NativeBugReporting.setDisclaimerText(text);
|
|
224
191
|
};
|
|
225
192
|
/**
|
|
@@ -229,10 +196,6 @@ export const setDisclaimerText = (text) => {
|
|
|
229
196
|
* @platform iOS
|
|
230
197
|
*/
|
|
231
198
|
export const setCommentMinimumCharacterCount = (limit, reportTypes) => {
|
|
232
|
-
console.log('[LCQ-RN] BugReporting.setCommentMinimumCharacterCount called', {
|
|
233
|
-
limit,
|
|
234
|
-
reportTypes,
|
|
235
|
-
});
|
|
236
199
|
if (Platform.OS === 'ios') {
|
|
237
200
|
NativeBugReporting.setCommentMinimumCharacterCount(limit, reportTypes ?? []);
|
|
238
201
|
}
|
|
@@ -242,6 +205,5 @@ export const setCommentMinimumCharacterCount = (limit, reportTypes) => {
|
|
|
242
205
|
* @param config configuration of proActive bug report.
|
|
243
206
|
*/
|
|
244
207
|
export const setProactiveReportingConfigurations = (config) => {
|
|
245
|
-
console.log('[LCQ-RN] BugReporting.setProactiveReportingConfigurations called', { config });
|
|
246
208
|
NativeBugReporting.setProactiveReportingConfigurations(config.enabled, config.gapBetweenModals, config.modalDelayAfterDetection);
|
|
247
209
|
};
|
|
@@ -9,7 +9,6 @@ import { Logger } from '../utils/logger';
|
|
|
9
9
|
* @param isEnabled
|
|
10
10
|
*/
|
|
11
11
|
export const setEnabled = (isEnabled) => {
|
|
12
|
-
console.log('[LCQ-RN] CrashReporting.setEnabled called', { isEnabled });
|
|
13
12
|
NativeCrashReporting.setEnabled(isEnabled);
|
|
14
13
|
};
|
|
15
14
|
/**
|
|
@@ -18,7 +17,6 @@ export const setEnabled = (isEnabled) => {
|
|
|
18
17
|
* @param nonFatalOptions extra config for the non-fatal error sent with Error Object
|
|
19
18
|
*/
|
|
20
19
|
export const reportError = (error, nonFatalOptions = {}) => {
|
|
21
|
-
console.log('[LCQ-RN] CrashReporting.reportError called', { error, nonFatalOptions });
|
|
22
20
|
if (error instanceof Error) {
|
|
23
21
|
let level = NonFatalErrorLevel.error;
|
|
24
22
|
if (nonFatalOptions.level != null) {
|
|
@@ -36,7 +34,6 @@ export const reportError = (error, nonFatalOptions = {}) => {
|
|
|
36
34
|
* @param isEnabled
|
|
37
35
|
*/
|
|
38
36
|
export const setNDKCrashesEnabled = (isEnabled) => {
|
|
39
|
-
console.log('[LCQ-RN] CrashReporting.setNDKCrashesEnabled called', { isEnabled });
|
|
40
37
|
if (Platform.OS === 'android') {
|
|
41
38
|
NativeCrashReporting.setNDKCrashesEnabled(isEnabled);
|
|
42
39
|
}
|
|
@@ -5,7 +5,6 @@ import { NativeFeatureRequests } from '../native/NativeFeatureRequests';
|
|
|
5
5
|
* @param isEnabled
|
|
6
6
|
*/
|
|
7
7
|
export const setEnabled = (isEnabled) => {
|
|
8
|
-
console.log('[LCQ-RN] FeatureRequests.setEnabled called', { isEnabled });
|
|
9
8
|
NativeFeatureRequests.setEnabled(isEnabled);
|
|
10
9
|
};
|
|
11
10
|
/**
|
|
@@ -17,10 +16,6 @@ export const setEnabled = (isEnabled) => {
|
|
|
17
16
|
* @param types An enum that indicates which action types will have the isEmailFieldRequired
|
|
18
17
|
*/
|
|
19
18
|
export const setEmailFieldRequired = (isEmailFieldRequired, type) => {
|
|
20
|
-
console.log('[LCQ-RN] FeatureRequests.setEmailFieldRequired called', {
|
|
21
|
-
isEmailFieldRequired,
|
|
22
|
-
type,
|
|
23
|
-
});
|
|
24
19
|
NativeFeatureRequests.setEmailFieldRequiredForFeatureRequests(isEmailFieldRequired, [
|
|
25
20
|
type,
|
|
26
21
|
]);
|
|
@@ -29,6 +24,5 @@ export const setEmailFieldRequired = (isEmailFieldRequired, type) => {
|
|
|
29
24
|
* Shows the UI for feature requests list
|
|
30
25
|
*/
|
|
31
26
|
export const show = () => {
|
|
32
|
-
console.log('[LCQ-RN] FeatureRequests.show called');
|
|
33
27
|
NativeFeatureRequests.show();
|
|
34
28
|
};
|