@luciq/react-native 18.2.0-14799-SNAPSHOT → 19.0.0-286-SNAPSHOT
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 +17 -5
- package/RNLuciq.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/native.gradle +1 -1
- package/android/sourcemaps.gradle +41 -12
- package/android/src/main/java/ai/luciq/reactlibrary/RNLuciqAPMModule.java +20 -1
- package/bin/config/migration-config.json +5 -5
- package/bin/index.js +0 -0
- package/cli/config/migration-config.json +5 -5
- package/dist/modules/APM.d.ts +5 -0
- package/dist/modules/APM.js +19 -0
- package/dist/modules/BugReporting.js +38 -0
- package/dist/modules/CrashReporting.js +3 -0
- package/dist/modules/FeatureRequests.js +6 -0
- package/dist/modules/Luciq.js +58 -0
- package/dist/modules/NetworkLogger.js +21 -3
- package/dist/modules/Replies.js +15 -0
- package/dist/modules/SessionReplay.js +6 -0
- package/dist/modules/Surveys.js +10 -0
- package/dist/native/NativeAPM.d.ts +1 -0
- package/ios/RNLuciq/LuciqAPMBridge.h +2 -0
- package/ios/RNLuciq/LuciqAPMBridge.m +4 -1
- package/ios/native.rb +1 -1
- package/package.json +1 -1
- package/src/modules/APM.ts +20 -0
- package/src/modules/BugReporting.ts +38 -0
- package/src/modules/CrashReporting.ts +3 -0
- package/src/modules/FeatureRequests.ts +6 -0
- package/src/modules/Luciq.ts +58 -0
- package/src/modules/NetworkLogger.ts +21 -3
- package/src/modules/Replies.ts +15 -0
- package/src/modules/SessionReplay.ts +6 -0
- package/src/modules/Surveys.ts +10 -0
- package/src/native/NativeAPM.ts +3 -0
- package/plugin/build/index.js +0 -42078
package/dist/modules/Surveys.js
CHANGED
|
@@ -10,6 +10,7 @@ import { NativeEvents, NativeSurveys, emitter } from '../native/NativeSurveys';
|
|
|
10
10
|
* @param isEnabled A boolean to set whether Luciq Surveys is enabled or disabled.
|
|
11
11
|
*/
|
|
12
12
|
export const setEnabled = (isEnabled) => {
|
|
13
|
+
console.log('[LCQ-RN] Surveys.setEnabled called', { isEnabled });
|
|
13
14
|
NativeSurveys.setEnabled(isEnabled);
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
@@ -19,12 +20,14 @@ export const setEnabled = (isEnabled) => {
|
|
|
19
20
|
* in the current session.
|
|
20
21
|
*/
|
|
21
22
|
export const showSurveyIfAvailable = () => {
|
|
23
|
+
console.log('[LCQ-RN] Surveys.showSurveyIfAvailable called');
|
|
22
24
|
NativeSurveys.showSurveysIfAvailable();
|
|
23
25
|
};
|
|
24
26
|
/**
|
|
25
27
|
* Returns an array containing the available surveys.
|
|
26
28
|
*/
|
|
27
29
|
export const getAvailableSurveys = async () => {
|
|
30
|
+
console.log('[LCQ-RN] Surveys.getAvailableSurveys called');
|
|
28
31
|
const surveys = await NativeSurveys.getAvailableSurveys();
|
|
29
32
|
return surveys;
|
|
30
33
|
};
|
|
@@ -34,6 +37,7 @@ export const getAvailableSurveys = async () => {
|
|
|
34
37
|
* surveys auto showing are enabled or not.
|
|
35
38
|
*/
|
|
36
39
|
export const setAutoShowingEnabled = (autoShowingSurveysEnabled) => {
|
|
40
|
+
console.log('[LCQ-RN] Surveys.setAutoShowingEnabled called', { autoShowingSurveysEnabled });
|
|
37
41
|
NativeSurveys.setAutoShowingEnabled(autoShowingSurveysEnabled);
|
|
38
42
|
};
|
|
39
43
|
/**
|
|
@@ -44,6 +48,7 @@ export const setAutoShowingEnabled = (autoShowingSurveysEnabled) => {
|
|
|
44
48
|
* presenting the survey's UI.
|
|
45
49
|
*/
|
|
46
50
|
export const setOnShowHandler = (onShowHandler) => {
|
|
51
|
+
console.log('[LCQ-RN] Surveys.setOnShowHandler called');
|
|
47
52
|
emitter.addListener(NativeEvents.WILL_SHOW_SURVEY_HANDLER, onShowHandler);
|
|
48
53
|
NativeSurveys.setOnShowHandler(onShowHandler);
|
|
49
54
|
};
|
|
@@ -55,6 +60,7 @@ export const setOnShowHandler = (onShowHandler) => {
|
|
|
55
60
|
* the survey's UI is dismissed.
|
|
56
61
|
*/
|
|
57
62
|
export const setOnDismissHandler = (onDismissHandler) => {
|
|
63
|
+
console.log('[LCQ-RN] Surveys.setOnDismissHandler called');
|
|
58
64
|
emitter.addListener(NativeEvents.DID_DISMISS_SURVEY_HANDLER, onDismissHandler);
|
|
59
65
|
NativeSurveys.setOnDismissHandler(onDismissHandler);
|
|
60
66
|
};
|
|
@@ -66,6 +72,7 @@ export const setOnDismissHandler = (onDismissHandler) => {
|
|
|
66
72
|
*
|
|
67
73
|
*/
|
|
68
74
|
export const showSurvey = (surveyToken) => {
|
|
75
|
+
console.log('[LCQ-RN] Surveys.showSurvey called', { surveyToken });
|
|
69
76
|
NativeSurveys.showSurvey(surveyToken);
|
|
70
77
|
};
|
|
71
78
|
/**
|
|
@@ -76,6 +83,7 @@ export const showSurvey = (surveyToken) => {
|
|
|
76
83
|
*
|
|
77
84
|
*/
|
|
78
85
|
export const hasRespondedToSurvey = async (surveyToken) => {
|
|
86
|
+
console.log('[LCQ-RN] Surveys.hasRespondedToSurvey called', { surveyToken });
|
|
79
87
|
const hasResponded = await NativeSurveys.hasRespondedToSurvey(surveyToken);
|
|
80
88
|
return hasResponded;
|
|
81
89
|
};
|
|
@@ -86,6 +94,7 @@ export const hasRespondedToSurvey = async (surveyToken) => {
|
|
|
86
94
|
* welcome screen should show.
|
|
87
95
|
*/
|
|
88
96
|
export const setShouldShowWelcomeScreen = (shouldShowWelcomeScreen) => {
|
|
97
|
+
console.log('[LCQ-RN] Surveys.setShouldShowWelcomeScreen called', { shouldShowWelcomeScreen });
|
|
89
98
|
NativeSurveys.setShouldShowWelcomeScreen(shouldShowWelcomeScreen);
|
|
90
99
|
};
|
|
91
100
|
/**
|
|
@@ -95,6 +104,7 @@ export const setShouldShowWelcomeScreen = (shouldShowWelcomeScreen) => {
|
|
|
95
104
|
* @param appStoreURL A String url for the published iOS app on AppStore
|
|
96
105
|
*/
|
|
97
106
|
export const setAppStoreURL = (appStoreURL) => {
|
|
107
|
+
console.log('[LCQ-RN] Surveys.setAppStoreURL called', { appStoreURL });
|
|
98
108
|
if (Platform.OS === 'ios') {
|
|
99
109
|
NativeSurveys.setAppStoreURL(appStoreURL);
|
|
100
110
|
}
|
|
@@ -13,6 +13,7 @@ export interface ApmNativeModule extends NativeModule {
|
|
|
13
13
|
startUITrace(name: string): void;
|
|
14
14
|
endUITrace(): void;
|
|
15
15
|
lcqSleep(): void;
|
|
16
|
+
setScreenRenderingEnabled(isEnabled: boolean): void;
|
|
16
17
|
}
|
|
17
18
|
export declare const NativeAPM: ApmNativeModule;
|
|
18
19
|
export declare const emitter: NativeEventEmitter;
|
package/ios/native.rb
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luciq/react-native",
|
|
3
3
|
"description": "Luciq is the Agentic Observability Platform built for Mobile.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "19.0.0-286-SNAPSHOT",
|
|
5
5
|
"author": "Luciq (https://luciq.ai)",
|
|
6
6
|
"repository": "github:luciqai/luciq-reactnative-sdk",
|
|
7
7
|
"homepage": "https://www.luciq.ai/platforms/react-native",
|
package/src/modules/APM.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { NativeLuciq } from '../native/NativeLuciq';
|
|
|
8
8
|
* @param isEnabled
|
|
9
9
|
*/
|
|
10
10
|
export const setEnabled = (isEnabled: boolean) => {
|
|
11
|
+
console.log('[LCQ-RN] APM.setEnabled called', { isEnabled });
|
|
11
12
|
NativeAPM.setEnabled(isEnabled);
|
|
12
13
|
};
|
|
13
14
|
|
|
@@ -17,6 +18,7 @@ export const setEnabled = (isEnabled: boolean) => {
|
|
|
17
18
|
* @param isEnabled
|
|
18
19
|
*/
|
|
19
20
|
export const setAppLaunchEnabled = (isEnabled: boolean) => {
|
|
21
|
+
console.log('[LCQ-RN] APM.setAppLaunchEnabled called', { isEnabled });
|
|
20
22
|
NativeAPM.setAppLaunchEnabled(isEnabled);
|
|
21
23
|
};
|
|
22
24
|
|
|
@@ -26,6 +28,7 @@ export const setAppLaunchEnabled = (isEnabled: boolean) => {
|
|
|
26
28
|
* You can then view this data with the automatic cold app launch.
|
|
27
29
|
*/
|
|
28
30
|
export const endAppLaunch = () => {
|
|
31
|
+
console.log('[LCQ-RN] APM.endAppLaunch called');
|
|
29
32
|
NativeAPM.endAppLaunch();
|
|
30
33
|
};
|
|
31
34
|
|
|
@@ -34,6 +37,7 @@ export const endAppLaunch = () => {
|
|
|
34
37
|
* @param isEnabled - a boolean indicates either iOS monitoring is enabled or disabled.
|
|
35
38
|
*/
|
|
36
39
|
export const setNetworkEnabledIOS = (isEnabled: boolean) => {
|
|
40
|
+
console.log('[LCQ-RN] APM.setNetworkEnabledIOS called', { isEnabled });
|
|
37
41
|
if (Platform.OS === 'ios') {
|
|
38
42
|
NativeLuciq.setNetworkLoggingEnabled(isEnabled);
|
|
39
43
|
}
|
|
@@ -44,6 +48,7 @@ export const setNetworkEnabledIOS = (isEnabled: boolean) => {
|
|
|
44
48
|
* @param isEnabled
|
|
45
49
|
*/
|
|
46
50
|
export const setAutoUITraceEnabled = (isEnabled: boolean) => {
|
|
51
|
+
console.log('[LCQ-RN] APM.setAutoUITraceEnabled called', { isEnabled });
|
|
47
52
|
NativeAPM.setAutoUITraceEnabled(isEnabled);
|
|
48
53
|
};
|
|
49
54
|
|
|
@@ -59,6 +64,7 @@ export const setAutoUITraceEnabled = (isEnabled: boolean) => {
|
|
|
59
64
|
* and the Luciq SDK is initialized.
|
|
60
65
|
*/
|
|
61
66
|
export const startFlow = (name: string) => {
|
|
67
|
+
console.log('[LCQ-RN] APM.startFlow called', { name });
|
|
62
68
|
NativeAPM.startFlow(name);
|
|
63
69
|
};
|
|
64
70
|
|
|
@@ -68,6 +74,7 @@ export const startFlow = (name: string) => {
|
|
|
68
74
|
* @param name - The name of the AppFlow to end. It cannot be an empty string or null.
|
|
69
75
|
*/
|
|
70
76
|
export const endFlow = (name: string) => {
|
|
77
|
+
console.log('[LCQ-RN] APM.endFlow called', { name });
|
|
71
78
|
NativeAPM.endFlow(name);
|
|
72
79
|
};
|
|
73
80
|
|
|
@@ -89,6 +96,7 @@ export const endFlow = (name: string) => {
|
|
|
89
96
|
*/
|
|
90
97
|
|
|
91
98
|
export const setFlowAttribute = (name: string, key: string, value?: string | null) => {
|
|
99
|
+
console.log('[LCQ-RN] APM.setFlowAttribute called', { name, key, value });
|
|
92
100
|
NativeAPM.setFlowAttribute(name, key, value);
|
|
93
101
|
};
|
|
94
102
|
|
|
@@ -99,6 +107,7 @@ export const setFlowAttribute = (name: string, key: string, value?: string | nul
|
|
|
99
107
|
* the specific UI trace within the application.
|
|
100
108
|
*/
|
|
101
109
|
export const startUITrace = (name: string) => {
|
|
110
|
+
console.log('[LCQ-RN] APM.startUITrace called', { name });
|
|
102
111
|
NativeAPM.startUITrace(name);
|
|
103
112
|
};
|
|
104
113
|
|
|
@@ -106,6 +115,7 @@ export const startUITrace = (name: string) => {
|
|
|
106
115
|
* Ends the currently running custom trace.
|
|
107
116
|
*/
|
|
108
117
|
export const endUITrace = () => {
|
|
118
|
+
console.log('[LCQ-RN] APM.endUITrace called');
|
|
109
119
|
NativeAPM.endUITrace();
|
|
110
120
|
};
|
|
111
121
|
|
|
@@ -113,5 +123,15 @@ export const endUITrace = () => {
|
|
|
113
123
|
* Used for internal testing.
|
|
114
124
|
*/
|
|
115
125
|
export const _lcqSleep = () => {
|
|
126
|
+
console.log('[LCQ-RN] APM._lcqSleep called');
|
|
116
127
|
NativeAPM.lcqSleep();
|
|
117
128
|
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Enables or disables Screen Render feature
|
|
132
|
+
* @param isEnabled
|
|
133
|
+
*/
|
|
134
|
+
export const setScreenRenderingEnabled = (isEnabled: boolean) => {
|
|
135
|
+
console.log('[LCQ-RN] APM.setScreenRenderingEnabled called', { isEnabled });
|
|
136
|
+
NativeAPM.setScreenRenderingEnabled(isEnabled);
|
|
137
|
+
};
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
* @param isEnabled
|
|
19
19
|
*/
|
|
20
20
|
export const setEnabled = (isEnabled: boolean) => {
|
|
21
|
+
console.log('[LCQ-RN] BugReporting.setEnabled called', { isEnabled });
|
|
21
22
|
NativeBugReporting.setEnabled(isEnabled);
|
|
22
23
|
};
|
|
23
24
|
|
|
@@ -27,6 +28,7 @@ export const setEnabled = (isEnabled: boolean) => {
|
|
|
27
28
|
* @param events Array of events that invokes the feedback form.
|
|
28
29
|
*/
|
|
29
30
|
export const setInvocationEvents = (events: InvocationEvent[]) => {
|
|
31
|
+
console.log('[LCQ-RN] BugReporting.setInvocationEvents called', { events });
|
|
30
32
|
NativeBugReporting.setInvocationEvents(events);
|
|
31
33
|
};
|
|
32
34
|
|
|
@@ -36,6 +38,7 @@ export const setInvocationEvents = (events: InvocationEvent[]) => {
|
|
|
36
38
|
* @param options Array of invocation options
|
|
37
39
|
*/
|
|
38
40
|
export const setOptions = (options: InvocationOption[]) => {
|
|
41
|
+
console.log('[LCQ-RN] BugReporting.setOptions called', { options });
|
|
39
42
|
NativeBugReporting.setOptions(options);
|
|
40
43
|
};
|
|
41
44
|
|
|
@@ -46,6 +49,7 @@ export const setOptions = (options: InvocationOption[]) => {
|
|
|
46
49
|
* @param handler A callback that gets executed before invoking the SDK
|
|
47
50
|
*/
|
|
48
51
|
export const onInvokeHandler = (handler: () => void) => {
|
|
52
|
+
console.log('[LCQ-RN] BugReporting.onInvokeHandler called');
|
|
49
53
|
emitter.addListener(NativeEvents.ON_INVOKE_HANDLER, handler);
|
|
50
54
|
NativeBugReporting.setOnInvokeHandler(handler);
|
|
51
55
|
};
|
|
@@ -59,6 +63,7 @@ export const onInvokeHandler = (handler: () => void) => {
|
|
|
59
63
|
export const onSDKDismissedHandler = (
|
|
60
64
|
handler: (dismissType: DismissType, reportType: ReportType) => void,
|
|
61
65
|
) => {
|
|
66
|
+
console.log('[LCQ-RN] BugReporting.onSDKDismissedHandler called');
|
|
62
67
|
emitter.addListener(NativeEvents.ON_DISMISS_HANDLER, (payload) => {
|
|
63
68
|
handler(payload.dismissType, payload.reportType);
|
|
64
69
|
});
|
|
@@ -71,6 +76,7 @@ export const onSDKDismissedHandler = (
|
|
|
71
76
|
* @param threshold Threshold for iPhone.
|
|
72
77
|
*/
|
|
73
78
|
export const setShakingThresholdForiPhone = (threshold: number) => {
|
|
79
|
+
console.log('[LCQ-RN] BugReporting.setShakingThresholdForiPhone called', { threshold });
|
|
74
80
|
if (Platform.OS === 'ios') {
|
|
75
81
|
NativeBugReporting.setShakingThresholdForiPhone(threshold);
|
|
76
82
|
}
|
|
@@ -82,6 +88,7 @@ export const setShakingThresholdForiPhone = (threshold: number) => {
|
|
|
82
88
|
* @param threshold Threshold for iPad.
|
|
83
89
|
*/
|
|
84
90
|
export const setShakingThresholdForiPad = (threshold: number) => {
|
|
91
|
+
console.log('[LCQ-RN] BugReporting.setShakingThresholdForiPad called', { threshold });
|
|
85
92
|
if (Platform.OS === 'ios') {
|
|
86
93
|
NativeBugReporting.setShakingThresholdForiPad(threshold);
|
|
87
94
|
}
|
|
@@ -95,6 +102,7 @@ export const setShakingThresholdForiPad = (threshold: number) => {
|
|
|
95
102
|
* @param threshold Threshold for android devices.
|
|
96
103
|
*/
|
|
97
104
|
export const setShakingThresholdForAndroid = (threshold: number) => {
|
|
105
|
+
console.log('[LCQ-RN] BugReporting.setShakingThresholdForAndroid called', { threshold });
|
|
98
106
|
if (Platform.OS === 'android') {
|
|
99
107
|
NativeBugReporting.setShakingThresholdForAndroid(threshold);
|
|
100
108
|
}
|
|
@@ -107,6 +115,7 @@ export const setShakingThresholdForAndroid = (threshold: number) => {
|
|
|
107
115
|
* enable it with required or with optional fields.
|
|
108
116
|
*/
|
|
109
117
|
export const setExtendedBugReportMode = (mode: ExtendedBugReportMode) => {
|
|
118
|
+
console.log('[LCQ-RN] BugReporting.setExtendedBugReportMode called', { mode });
|
|
110
119
|
NativeBugReporting.setExtendedBugReportMode(mode);
|
|
111
120
|
};
|
|
112
121
|
|
|
@@ -115,6 +124,7 @@ export const setExtendedBugReportMode = (mode: ExtendedBugReportMode) => {
|
|
|
115
124
|
* @param types Array of reportTypes
|
|
116
125
|
*/
|
|
117
126
|
export const setReportTypes = (types: ReportType[]) => {
|
|
127
|
+
console.log('[LCQ-RN] BugReporting.setReportTypes called', { types });
|
|
118
128
|
NativeBugReporting.setReportTypes(types);
|
|
119
129
|
};
|
|
120
130
|
|
|
@@ -124,6 +134,7 @@ export const setReportTypes = (types: ReportType[]) => {
|
|
|
124
134
|
* @param options
|
|
125
135
|
*/
|
|
126
136
|
export const show = (type: ReportType, options: InvocationOption[]) => {
|
|
137
|
+
console.log('[LCQ-RN] BugReporting.show called', { type, options });
|
|
127
138
|
NativeBugReporting.show(type, options ?? []);
|
|
128
139
|
};
|
|
129
140
|
|
|
@@ -132,6 +143,7 @@ export const show = (type: ReportType, options: InvocationOption[]) => {
|
|
|
132
143
|
* @param isEnabled enable/disable screen recording on crash feature
|
|
133
144
|
*/
|
|
134
145
|
export const setAutoScreenRecordingEnabled = (isEnabled: boolean) => {
|
|
146
|
+
console.log('[LCQ-RN] BugReporting.setAutoScreenRecordingEnabled called', { isEnabled });
|
|
135
147
|
NativeBugReporting.setAutoScreenRecordingEnabled(isEnabled);
|
|
136
148
|
};
|
|
137
149
|
|
|
@@ -142,6 +154,7 @@ export const setAutoScreenRecordingEnabled = (isEnabled: boolean) => {
|
|
|
142
154
|
* The maximum duration is 30 seconds
|
|
143
155
|
*/
|
|
144
156
|
export const setAutoScreenRecordingDurationIOS = (maxDuration: number) => {
|
|
157
|
+
console.log('[LCQ-RN] BugReporting.setAutoScreenRecordingDurationIOS called', { maxDuration });
|
|
145
158
|
if (Platform.OS !== 'ios') {
|
|
146
159
|
return;
|
|
147
160
|
}
|
|
@@ -159,6 +172,9 @@ export const setAutoScreenRecordingDurationIOS = (maxDuration: number) => {
|
|
|
159
172
|
export const setVideoRecordingFloatingButtonPosition = (
|
|
160
173
|
buttonPosition: RecordingButtonPosition,
|
|
161
174
|
) => {
|
|
175
|
+
console.log('[LCQ-RN] BugReporting.setVideoRecordingFloatingButtonPosition called', {
|
|
176
|
+
buttonPosition,
|
|
177
|
+
});
|
|
162
178
|
NativeBugReporting.setVideoRecordingFloatingButtonPosition(buttonPosition);
|
|
163
179
|
};
|
|
164
180
|
|
|
@@ -167,6 +183,7 @@ export const setVideoRecordingFloatingButtonPosition = (
|
|
|
167
183
|
* @param isEnabled A boolean to set whether view hierarchy are enabled or disabled.
|
|
168
184
|
*/
|
|
169
185
|
export const setViewHierarchyEnabled = (isEnabled: boolean) => {
|
|
186
|
+
console.log('[LCQ-RN] BugReporting.setViewHierarchyEnabled called', { isEnabled });
|
|
170
187
|
NativeBugReporting.setViewHierarchyEnabled(isEnabled);
|
|
171
188
|
};
|
|
172
189
|
|
|
@@ -185,6 +202,13 @@ export const addUserConsent = (
|
|
|
185
202
|
checked: boolean,
|
|
186
203
|
actionType?: userConsentActionType,
|
|
187
204
|
) => {
|
|
205
|
+
console.log('[LCQ-RN] BugReporting.addUserConsent called', {
|
|
206
|
+
key,
|
|
207
|
+
description,
|
|
208
|
+
mandatory,
|
|
209
|
+
checked,
|
|
210
|
+
actionType,
|
|
211
|
+
});
|
|
188
212
|
NativeBugReporting.addUserConsent(key, description, mandatory, checked, actionType);
|
|
189
213
|
};
|
|
190
214
|
/**
|
|
@@ -192,6 +216,7 @@ export const addUserConsent = (
|
|
|
192
216
|
* @param handler - A callback that gets executed when a prompt option is selected.
|
|
193
217
|
*/
|
|
194
218
|
export const setDidSelectPromptOptionHandler = (handler: (promptOption: string) => void) => {
|
|
219
|
+
console.log('[LCQ-RN] BugReporting.setDidSelectPromptOptionHandler called');
|
|
195
220
|
if (Platform.OS === 'android') {
|
|
196
221
|
return;
|
|
197
222
|
}
|
|
@@ -208,6 +233,7 @@ export const setDidSelectPromptOptionHandler = (handler: (promptOption: string)
|
|
|
208
233
|
* @param offset The offset of the floating button from the top of the screen. Default is 50.
|
|
209
234
|
*/
|
|
210
235
|
export const setFloatingButtonEdge = (edge: FloatingButtonPosition, offset: number) => {
|
|
236
|
+
console.log('[LCQ-RN] BugReporting.setFloatingButtonEdge called', { edge, offset });
|
|
211
237
|
NativeBugReporting.setFloatingButtonEdge(edge, offset);
|
|
212
238
|
};
|
|
213
239
|
|
|
@@ -225,6 +251,12 @@ export const setEnabledAttachmentTypes = (
|
|
|
225
251
|
galleryImage: boolean,
|
|
226
252
|
screenRecording: boolean,
|
|
227
253
|
) => {
|
|
254
|
+
console.log('[LCQ-RN] BugReporting.setEnabledAttachmentTypes called', {
|
|
255
|
+
screenshot,
|
|
256
|
+
extraScreenshot,
|
|
257
|
+
galleryImage,
|
|
258
|
+
screenRecording,
|
|
259
|
+
});
|
|
228
260
|
NativeBugReporting.setEnabledAttachmentTypes(
|
|
229
261
|
screenshot,
|
|
230
262
|
extraScreenshot,
|
|
@@ -238,6 +270,7 @@ export const setEnabledAttachmentTypes = (
|
|
|
238
270
|
* @param text String text.
|
|
239
271
|
*/
|
|
240
272
|
export const setDisclaimerText = (text: string) => {
|
|
273
|
+
console.log('[LCQ-RN] BugReporting.setDisclaimerText called', { text });
|
|
241
274
|
NativeBugReporting.setDisclaimerText(text);
|
|
242
275
|
};
|
|
243
276
|
|
|
@@ -248,6 +281,10 @@ export const setDisclaimerText = (text: string) => {
|
|
|
248
281
|
* @platform iOS
|
|
249
282
|
*/
|
|
250
283
|
export const setCommentMinimumCharacterCount = (limit: number, reportTypes?: ReportType[]) => {
|
|
284
|
+
console.log('[LCQ-RN] BugReporting.setCommentMinimumCharacterCount called', {
|
|
285
|
+
limit,
|
|
286
|
+
reportTypes,
|
|
287
|
+
});
|
|
251
288
|
if (Platform.OS === 'ios') {
|
|
252
289
|
NativeBugReporting.setCommentMinimumCharacterCount(limit, reportTypes ?? []);
|
|
253
290
|
}
|
|
@@ -258,6 +295,7 @@ export const setCommentMinimumCharacterCount = (limit: number, reportTypes?: Rep
|
|
|
258
295
|
* @param config configuration of proActive bug report.
|
|
259
296
|
*/
|
|
260
297
|
export const setProactiveReportingConfigurations = (config: ProactiveReportingConfigOptions) => {
|
|
298
|
+
console.log('[LCQ-RN] BugReporting.setProactiveReportingConfigurations called', { config });
|
|
261
299
|
NativeBugReporting.setProactiveReportingConfigurations(
|
|
262
300
|
config.enabled,
|
|
263
301
|
config.gapBetweenModals,
|
|
@@ -13,6 +13,7 @@ import { Logger } from '../utils/logger';
|
|
|
13
13
|
* @param isEnabled
|
|
14
14
|
*/
|
|
15
15
|
export const setEnabled = (isEnabled: boolean) => {
|
|
16
|
+
console.log('[LCQ-RN] CrashReporting.setEnabled called', { isEnabled });
|
|
16
17
|
NativeCrashReporting.setEnabled(isEnabled);
|
|
17
18
|
};
|
|
18
19
|
|
|
@@ -22,6 +23,7 @@ export const setEnabled = (isEnabled: boolean) => {
|
|
|
22
23
|
* @param nonFatalOptions extra config for the non-fatal error sent with Error Object
|
|
23
24
|
*/
|
|
24
25
|
export const reportError = (error: ExtendedError, nonFatalOptions: NonFatalOptions = {}) => {
|
|
26
|
+
console.log('[LCQ-RN] CrashReporting.reportError called', { error, nonFatalOptions });
|
|
25
27
|
if (error instanceof Error) {
|
|
26
28
|
let level = NonFatalErrorLevel.error;
|
|
27
29
|
if (nonFatalOptions.level != null) {
|
|
@@ -48,6 +50,7 @@ export const reportError = (error: ExtendedError, nonFatalOptions: NonFatalOptio
|
|
|
48
50
|
* @param isEnabled
|
|
49
51
|
*/
|
|
50
52
|
export const setNDKCrashesEnabled = (isEnabled: boolean) => {
|
|
53
|
+
console.log('[LCQ-RN] CrashReporting.setNDKCrashesEnabled called', { isEnabled });
|
|
51
54
|
if (Platform.OS === 'android') {
|
|
52
55
|
NativeCrashReporting.setNDKCrashesEnabled(isEnabled);
|
|
53
56
|
}
|
|
@@ -7,6 +7,7 @@ import type { ActionType } from '../utils/Enums';
|
|
|
7
7
|
* @param isEnabled
|
|
8
8
|
*/
|
|
9
9
|
export const setEnabled = (isEnabled: boolean) => {
|
|
10
|
+
console.log('[LCQ-RN] FeatureRequests.setEnabled called', { isEnabled });
|
|
10
11
|
NativeFeatureRequests.setEnabled(isEnabled);
|
|
11
12
|
};
|
|
12
13
|
|
|
@@ -19,6 +20,10 @@ export const setEnabled = (isEnabled: boolean) => {
|
|
|
19
20
|
* @param types An enum that indicates which action types will have the isEmailFieldRequired
|
|
20
21
|
*/
|
|
21
22
|
export const setEmailFieldRequired = (isEmailFieldRequired: boolean, type: ActionType) => {
|
|
23
|
+
console.log('[LCQ-RN] FeatureRequests.setEmailFieldRequired called', {
|
|
24
|
+
isEmailFieldRequired,
|
|
25
|
+
type,
|
|
26
|
+
});
|
|
22
27
|
NativeFeatureRequests.setEmailFieldRequiredForFeatureRequests(isEmailFieldRequired, [
|
|
23
28
|
type,
|
|
24
29
|
] as ActionType[]);
|
|
@@ -28,5 +33,6 @@ export const setEmailFieldRequired = (isEmailFieldRequired: boolean, type: Actio
|
|
|
28
33
|
* Shows the UI for feature requests list
|
|
29
34
|
*/
|
|
30
35
|
export const show = () => {
|
|
36
|
+
console.log('[LCQ-RN] FeatureRequests.show called');
|
|
31
37
|
NativeFeatureRequests.show();
|
|
32
38
|
};
|