@luciq/react-native 18.2.0 → 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 CHANGED
@@ -1,12 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [19.0.0](https://github.com/luciqai/luciq-reactnative-sdk/compare/v19.0.0...dev)
4
+
5
+ ### Added
6
+
7
+ - Add support for Screen Rendering ([#4](https://github.com/luciqai/luciq-reactnative-sdk/pull/4)).
8
+
9
+ ### Changed
10
+
11
+ - Bump Luciq iOS SDK to v19.2.0 ([#4](https://github.com/luciqai/luciq-reactnative-sdk/pull/4)). [See release notes](https://github.com/luciqai/Luciq-iOS-sdk/releases/tag/19.2.0).
12
+
13
+ - Bump Luciq Android SDK to v19.0.0 ([#4](https://github.com/luciqai/luciq-reactnative-sdk/pull/4)). [See release notes](https://github.com/luciqai/Luciq-Android-sdk/releases/tag/v19.0.0).
14
+
3
15
  ## [18.2.0](https://github.com/luciqai/luciq-reactnative-sdk/compare/v18.2.0...18.0.1)
4
16
 
5
17
  ### Changed
6
18
 
7
- - Bump Instabug iOS SDK to v18.2.0 ([#11](https://github.com/luciqai/luciq-reactnative-sdk/pull/11)). [See release notes](https://github.com/luciqai/Luciq-iOS-sdk/releases/tag/18.2.0).
19
+ - Bump Luciq iOS SDK to v18.2.0 ([#11](https://github.com/luciqai/luciq-reactnative-sdk/pull/11)). [See release notes](https://github.com/luciqai/Luciq-iOS-sdk/releases/tag/18.2.0).
8
20
 
9
- - Bump Instabug Android SDK to v19.1.0 ([#11](https://github.com/luciqai/luciq-reactnative-sdk/pull/11)). [See release notes](https://github.com/luciqai/Luciq-Android-sdk/releases/tag/v19.1.0).
21
+ - Bump Luciq Android SDK to v18.1.0 ([#11](https://github.com/luciqai/luciq-reactnative-sdk/pull/11)). [See release notes](https://github.com/luciqai/Luciq-Android-sdk/releases/tag/v19.1.0).
10
22
 
11
23
  ### Added
12
24
 
@@ -22,9 +34,9 @@
22
34
 
23
35
  ### Changed
24
36
 
25
- - Bump Instabug iOS SDK to v18.0.1 ([#6](https://github.com/luciqai/luciq-reactnative-sdk/pull/7)). [See release notes](https://github.com/luciqai/Luciq-iOS-sdk/releases/tag/18.0.1).
37
+ - Bump Luciq iOS SDK to v18.0.1 ([#6](https://github.com/luciqai/luciq-reactnative-sdk/pull/7)). [See release notes](https://github.com/luciqai/Luciq-iOS-sdk/releases/tag/18.0.1).
26
38
 
27
- - Bump Instabug Android SDK to v18.0.1 ([#6](https://github.com/luciqai/luciq-reactnative-sdk/pull/7)). [See release notes](https://github.com/luciqai/Luciq-Android-sdk/releases/tag/v18.0.1).
39
+ - Bump Luciq Android SDK to v18.0.1 ([#6](https://github.com/luciqai/luciq-reactnative-sdk/pull/7)). [See release notes](https://github.com/luciqai/Luciq-Android-sdk/releases/tag/v18.0.1).
28
40
 
29
41
  ### Fixed
30
42
 
@@ -32,4 +44,4 @@
32
44
 
33
45
  ## [18.0.0](https://github.com/luciqai/luciq-reactnative-sdk/compare/v18.0.0...dev) (September 24, 2025)
34
46
 
35
- - SDK rebranded from Instabug to Luciq.
47
+ - SDK rebranded from Luciq to Luciq.
@@ -57,7 +57,7 @@ android {
57
57
  minSdkVersion getExtOrDefault('minSdkVersion').toInteger()
58
58
  targetSdkVersion getExtOrDefault('targetSdkVersion').toInteger()
59
59
  versionCode 1
60
- versionName "15.0.1"
60
+ versionName "19.0.0"
61
61
  multiDexEnabled true
62
62
  ndk {
63
63
  abiFilters "armeabi-v7a", "x86"
@@ -1,5 +1,5 @@
1
1
  project.ext.luciq = [
2
- version: '18.2.0'
2
+ version: '19.0.0'
3
3
  ]
4
4
 
5
5
  dependencies {
@@ -43,21 +43,53 @@ Task createUploadSourcemapsTask(String flavor, String defaultVersionName, String
43
43
  def appDir = appProject.projectDir
44
44
  def sourceMapFile = getSourceMapFile(appDir, flavor,task)
45
45
 
46
- def jsProjectDir = rootDir.parentFile
47
- def luciqDir = new File(['node', '-p', 'require.resolve("@luciq/react-native/package.json")'].execute(null, rootDir).text.trim()).getParentFile()
46
+ if (!sourceMapFile) {
47
+ project.logger.warn "⚠️ Source map file not found. Skipping sourcemap upload."
48
+ return
49
+ }
48
50
 
49
- def tokenJsFile = new File(luciqDir, 'scripts/find-token.js')
50
- def inferredToken = executeNodeScript(tokenJsFile, jsProjectDir)
51
+ def jsProjectDir = rootDir.parentFile
52
+ def luciqPackagePath = ['node', '-p', 'require.resolve("@luciq/react-native/package.json")'].execute(null, rootDir).text.trim()
53
+ if (!luciqPackagePath) {
54
+ project.logger.warn "⚠️ Unable to resolve @luciq/react-native package path. Skipping sourcemap upload."
55
+ return
56
+ }
57
+ def luciqPackageFile = new File(luciqPackagePath)
58
+ if (!luciqPackageFile.exists()) {
59
+ project.logger.warn "⚠️ Luciq package file not found at: ${luciqPackagePath}. Skipping sourcemap upload."
60
+ return
61
+ }
62
+ def luciqDir = luciqPackageFile.getParentFile()
63
+ if (!luciqDir || !luciqDir.exists()) {
64
+ project.logger.warn "⚠️ Luciq directory not found. Package path: ${luciqPackagePath}. Skipping sourcemap upload."
65
+ return
66
+ }
51
67
 
68
+ def tokenJsFile = new File(luciqDir, 'scripts/find-token.js')
69
+ def inferredToken = executeNodeScript(tokenJsFile, jsProjectDir)
52
70
 
53
- def appToken = resolveVar('App Token', 'LUCIQ_APP_TOKEN', inferredToken)
71
+ def appToken
72
+ try {
73
+ appToken = resolveVar('App Token', 'LUCIQ_APP_TOKEN', inferredToken)
74
+ } catch (Exception e) {
75
+ project.logger.warn "⚠️ ${e.message}. Skipping sourcemap upload."
76
+ return
77
+ }
54
78
 
55
79
  if (!appToken) {
56
- throw new GradleException("Unable to infer Luciq token from script: ${tokenShellFile.absolutePath}")
80
+ project.logger.warn "⚠️ Unable to infer Luciq token from script: ${tokenJsFile.absolutePath}. Skipping sourcemap upload."
81
+ return
57
82
  }
58
83
 
59
- def versionName = resolveVar('Version Name', 'LUCIQ_VERSION_NAME', defaultVersionName)
60
- def versionCode = resolveVar('Version Code', 'LUCIQ_VERSION_CODE', defaultVersionCode)
84
+ def versionName
85
+ def versionCode
86
+ try {
87
+ versionName = resolveVar('Version Name', 'LUCIQ_VERSION_NAME', defaultVersionName)
88
+ versionCode = resolveVar('Version Code', 'LUCIQ_VERSION_CODE', defaultVersionCode)
89
+ } catch (Exception e) {
90
+ project.logger.warn "⚠️ ${e.message}. Skipping sourcemap upload."
91
+ return
92
+ }
61
93
 
62
94
  println "📦 Uploading with versionName=${versionName}, versionCode=${versionCode}, appToken=${appToken.take(5)}..."
63
95
 
@@ -75,10 +107,7 @@ Task createUploadSourcemapsTask(String flavor, String defaultVersionName, String
75
107
  commandLine(*osCompatibility, *args)
76
108
  }
77
109
  } catch (exception) {
78
- project.logger.error "Failed to upload source map file.\n" +
79
- "Reason: ${exception.message}"
80
- throw exception
81
-
110
+ project.logger.warn "⚠️ Failed to upload source map file. Reason: ${exception.message}. Build will continue."
82
111
  }
83
112
  }
84
113
  }
@@ -1,6 +1,8 @@
1
1
 
2
2
  package ai.luciq.reactlibrary;
3
3
 
4
+ import static ai.luciq.reactlibrary.utils.LuciqUtil.getMethod;
5
+
4
6
  import android.os.SystemClock;
5
7
  import android.util.Log;
6
8
 
@@ -18,7 +20,6 @@ import ai.luciq.reactlibrary.utils.EventEmitterModule;
18
20
  import ai.luciq.reactlibrary.utils.MainThreadHandler;
19
21
 
20
22
  import java.lang.reflect.Method;
21
-
22
23
  import java.util.HashMap;
23
24
 
24
25
  import javax.annotation.Nonnull;
@@ -389,4 +390,22 @@ public class RNLuciqAPMModule extends EventEmitterModule {
389
390
  e.printStackTrace();
390
391
  }
391
392
  }
393
+ /**
394
+ * Enables or disables screen rendering
395
+ *
396
+ * @param isEnabled boolean indicating enabled or disabled.
397
+ */
398
+ @ReactMethod
399
+ public void setScreenRenderingEnabled(boolean isEnabled) {
400
+ MainThreadHandler.runOnMainThread(new Runnable() {
401
+ @Override
402
+ public void run() {
403
+ try {
404
+ APM.setScreenRenderingEnabled(isEnabled);
405
+ } catch (Exception e) {
406
+ e.printStackTrace();
407
+ }
408
+ }
409
+ });
410
+ }
392
411
  }
@@ -7,27 +7,27 @@
7
7
  "searchReplace": [
8
8
  {
9
9
  "search": "com\\.instabug\\.library:instabug:[0-9]+\\.[0-9]+\\.[0-9]+",
10
- "replacement": "ai.luciq.library:luciq:18.2.0",
10
+ "replacement": "ai.luciq.library:luciq:19.0.0",
11
11
  "isRegex": true
12
12
  },
13
13
  {
14
14
  "search": "com\\.instabug\\.library:instabug:[0-9]+\\.[0-9]+\\.[0-9]+-.*",
15
- "replacement": "ai.luciq.library:luciq:18.2.0",
15
+ "replacement": "ai.luciq.library:luciq:19.0.0",
16
16
  "isRegex": true
17
17
  },
18
18
  {
19
19
  "search": "com\\.instabug\\.library:instabug:[0-9]+\\.[0-9]+\\.[0-9]+-SNAPSHOT",
20
- "replacement": "ai.luciq.library:luciq:18.2.0",
20
+ "replacement": "ai.luciq.library:luciq:19.0.0",
21
21
  "isRegex": true
22
22
  },
23
23
  {
24
24
  "search": "\"instabug-react-native\":\\s*\"[^\"]+\"",
25
- "replacement": "\"@luciq/react-native\": \"^18.2.0\"",
25
+ "replacement": "\"@luciq/react-native\": \"^19.0.0\"",
26
26
  "isRegex": true
27
27
  },
28
28
  {
29
29
  "search": "'instabug-react-native':\\s*'[^']+'",
30
- "replacement": "'@luciq/react-native': '^18.2.0'",
30
+ "replacement": "'@luciq/react-native': '^19.0.0'",
31
31
  "isRegex": true
32
32
  }
33
33
  ],
package/bin/index.js CHANGED
File without changes
@@ -7,27 +7,27 @@
7
7
  "searchReplace": [
8
8
  {
9
9
  "search": "com\\.instabug\\.library:instabug:[0-9]+\\.[0-9]+\\.[0-9]+",
10
- "replacement": "ai.luciq.library:luciq:18.2.0",
10
+ "replacement": "ai.luciq.library:luciq:19.0.0",
11
11
  "isRegex": true
12
12
  },
13
13
  {
14
14
  "search": "com\\.instabug\\.library:instabug:[0-9]+\\.[0-9]+\\.[0-9]+-.*",
15
- "replacement": "ai.luciq.library:luciq:18.2.0",
15
+ "replacement": "ai.luciq.library:luciq:19.0.0",
16
16
  "isRegex": true
17
17
  },
18
18
  {
19
19
  "search": "com\\.instabug\\.library:instabug:[0-9]+\\.[0-9]+\\.[0-9]+-SNAPSHOT",
20
- "replacement": "ai.luciq.library:luciq:18.2.0",
20
+ "replacement": "ai.luciq.library:luciq:19.0.0",
21
21
  "isRegex": true
22
22
  },
23
23
  {
24
24
  "search": "\"instabug-react-native\":\\s*\"[^\"]+\"",
25
- "replacement": "\"@luciq/react-native\": \"^18.2.0\"",
25
+ "replacement": "\"@luciq/react-native\": \"^19.0.0\"",
26
26
  "isRegex": true
27
27
  },
28
28
  {
29
29
  "search": "'instabug-react-native':\\s*'[^']+'",
30
- "replacement": "'@luciq/react-native': '^18.2.0'",
30
+ "replacement": "'@luciq/react-native': '^19.0.0'",
31
31
  "isRegex": true
32
32
  }
33
33
  ],
@@ -75,3 +75,8 @@ export declare const endUITrace: () => void;
75
75
  * Used for internal testing.
76
76
  */
77
77
  export declare const _lcqSleep: () => void;
78
+ /**
79
+ * Enables or disables Screen Render feature
80
+ * @param isEnabled
81
+ */
82
+ export declare const setScreenRenderingEnabled: (isEnabled: boolean) => void;
@@ -6,6 +6,7 @@ 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 });
9
10
  NativeAPM.setEnabled(isEnabled);
10
11
  };
11
12
  /**
@@ -14,6 +15,7 @@ export const setEnabled = (isEnabled) => {
14
15
  * @param isEnabled
15
16
  */
16
17
  export const setAppLaunchEnabled = (isEnabled) => {
18
+ console.log('[LCQ-RN] APM.setAppLaunchEnabled called', { isEnabled });
17
19
  NativeAPM.setAppLaunchEnabled(isEnabled);
18
20
  };
19
21
  /**
@@ -22,6 +24,7 @@ export const setAppLaunchEnabled = (isEnabled) => {
22
24
  * You can then view this data with the automatic cold app launch.
23
25
  */
24
26
  export const endAppLaunch = () => {
27
+ console.log('[LCQ-RN] APM.endAppLaunch called');
25
28
  NativeAPM.endAppLaunch();
26
29
  };
27
30
  /**
@@ -29,6 +32,7 @@ export const endAppLaunch = () => {
29
32
  * @param isEnabled - a boolean indicates either iOS monitoring is enabled or disabled.
30
33
  */
31
34
  export const setNetworkEnabledIOS = (isEnabled) => {
35
+ console.log('[LCQ-RN] APM.setNetworkEnabledIOS called', { isEnabled });
32
36
  if (Platform.OS === 'ios') {
33
37
  NativeLuciq.setNetworkLoggingEnabled(isEnabled);
34
38
  }
@@ -38,6 +42,7 @@ export const setNetworkEnabledIOS = (isEnabled) => {
38
42
  * @param isEnabled
39
43
  */
40
44
  export const setAutoUITraceEnabled = (isEnabled) => {
45
+ console.log('[LCQ-RN] APM.setAutoUITraceEnabled called', { isEnabled });
41
46
  NativeAPM.setAutoUITraceEnabled(isEnabled);
42
47
  };
43
48
  /**
@@ -52,6 +57,7 @@ export const setAutoUITraceEnabled = (isEnabled) => {
52
57
  * and the Luciq SDK is initialized.
53
58
  */
54
59
  export const startFlow = (name) => {
60
+ console.log('[LCQ-RN] APM.startFlow called', { name });
55
61
  NativeAPM.startFlow(name);
56
62
  };
57
63
  /**
@@ -60,6 +66,7 @@ export const startFlow = (name) => {
60
66
  * @param name - The name of the AppFlow to end. It cannot be an empty string or null.
61
67
  */
62
68
  export const endFlow = (name) => {
69
+ console.log('[LCQ-RN] APM.endFlow called', { name });
63
70
  NativeAPM.endFlow(name);
64
71
  };
65
72
  /**
@@ -79,6 +86,7 @@ export const endFlow = (name) => {
79
86
  * @param [value] - The value of the attribute. It cannot be an empty string. Use null to remove the attribute.
80
87
  */
81
88
  export const setFlowAttribute = (name, key, value) => {
89
+ console.log('[LCQ-RN] APM.setFlowAttribute called', { name, key, value });
82
90
  NativeAPM.setFlowAttribute(name, key, value);
83
91
  };
84
92
  /**
@@ -88,17 +96,28 @@ export const setFlowAttribute = (name, key, value) => {
88
96
  * the specific UI trace within the application.
89
97
  */
90
98
  export const startUITrace = (name) => {
99
+ console.log('[LCQ-RN] APM.startUITrace called', { name });
91
100
  NativeAPM.startUITrace(name);
92
101
  };
93
102
  /**
94
103
  * Ends the currently running custom trace.
95
104
  */
96
105
  export const endUITrace = () => {
106
+ console.log('[LCQ-RN] APM.endUITrace called');
97
107
  NativeAPM.endUITrace();
98
108
  };
99
109
  /**
100
110
  * Used for internal testing.
101
111
  */
102
112
  export const _lcqSleep = () => {
113
+ console.log('[LCQ-RN] APM._lcqSleep called');
103
114
  NativeAPM.lcqSleep();
104
115
  };
116
+ /**
117
+ * Enables or disables Screen Render feature
118
+ * @param isEnabled
119
+ */
120
+ export const setScreenRenderingEnabled = (isEnabled) => {
121
+ console.log('[LCQ-RN] APM.setScreenRenderingEnabled called', { isEnabled });
122
+ NativeAPM.setScreenRenderingEnabled(isEnabled);
123
+ };
@@ -5,6 +5,7 @@ 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 });
8
9
  NativeBugReporting.setEnabled(isEnabled);
9
10
  };
10
11
  /**
@@ -13,6 +14,7 @@ export const setEnabled = (isEnabled) => {
13
14
  * @param events Array of events that invokes the feedback form.
14
15
  */
15
16
  export const setInvocationEvents = (events) => {
17
+ console.log('[LCQ-RN] BugReporting.setInvocationEvents called', { events });
16
18
  NativeBugReporting.setInvocationEvents(events);
17
19
  };
18
20
  /**
@@ -21,6 +23,7 @@ export const setInvocationEvents = (events) => {
21
23
  * @param options Array of invocation options
22
24
  */
23
25
  export const setOptions = (options) => {
26
+ console.log('[LCQ-RN] BugReporting.setOptions called', { options });
24
27
  NativeBugReporting.setOptions(options);
25
28
  };
26
29
  /**
@@ -30,6 +33,7 @@ export const setOptions = (options) => {
30
33
  * @param handler A callback that gets executed before invoking the SDK
31
34
  */
32
35
  export const onInvokeHandler = (handler) => {
36
+ console.log('[LCQ-RN] BugReporting.onInvokeHandler called');
33
37
  emitter.addListener(NativeEvents.ON_INVOKE_HANDLER, handler);
34
38
  NativeBugReporting.setOnInvokeHandler(handler);
35
39
  };
@@ -40,6 +44,7 @@ export const onInvokeHandler = (handler) => {
40
44
  * @param handler A callback to get executed after dismissing the SDK.
41
45
  */
42
46
  export const onSDKDismissedHandler = (handler) => {
47
+ console.log('[LCQ-RN] BugReporting.onSDKDismissedHandler called');
43
48
  emitter.addListener(NativeEvents.ON_DISMISS_HANDLER, (payload) => {
44
49
  handler(payload.dismissType, payload.reportType);
45
50
  });
@@ -51,6 +56,7 @@ export const onSDKDismissedHandler = (handler) => {
51
56
  * @param threshold Threshold for iPhone.
52
57
  */
53
58
  export const setShakingThresholdForiPhone = (threshold) => {
59
+ console.log('[LCQ-RN] BugReporting.setShakingThresholdForiPhone called', { threshold });
54
60
  if (Platform.OS === 'ios') {
55
61
  NativeBugReporting.setShakingThresholdForiPhone(threshold);
56
62
  }
@@ -61,6 +67,7 @@ export const setShakingThresholdForiPhone = (threshold) => {
61
67
  * @param threshold Threshold for iPad.
62
68
  */
63
69
  export const setShakingThresholdForiPad = (threshold) => {
70
+ console.log('[LCQ-RN] BugReporting.setShakingThresholdForiPad called', { threshold });
64
71
  if (Platform.OS === 'ios') {
65
72
  NativeBugReporting.setShakingThresholdForiPad(threshold);
66
73
  }
@@ -73,6 +80,7 @@ export const setShakingThresholdForiPad = (threshold) => {
73
80
  * @param threshold Threshold for android devices.
74
81
  */
75
82
  export const setShakingThresholdForAndroid = (threshold) => {
83
+ console.log('[LCQ-RN] BugReporting.setShakingThresholdForAndroid called', { threshold });
76
84
  if (Platform.OS === 'android') {
77
85
  NativeBugReporting.setShakingThresholdForAndroid(threshold);
78
86
  }
@@ -84,6 +92,7 @@ export const setShakingThresholdForAndroid = (threshold) => {
84
92
  * enable it with required or with optional fields.
85
93
  */
86
94
  export const setExtendedBugReportMode = (mode) => {
95
+ console.log('[LCQ-RN] BugReporting.setExtendedBugReportMode called', { mode });
87
96
  NativeBugReporting.setExtendedBugReportMode(mode);
88
97
  };
89
98
  /**
@@ -91,6 +100,7 @@ export const setExtendedBugReportMode = (mode) => {
91
100
  * @param types Array of reportTypes
92
101
  */
93
102
  export const setReportTypes = (types) => {
103
+ console.log('[LCQ-RN] BugReporting.setReportTypes called', { types });
94
104
  NativeBugReporting.setReportTypes(types);
95
105
  };
96
106
  /**
@@ -99,6 +109,7 @@ export const setReportTypes = (types) => {
99
109
  * @param options
100
110
  */
101
111
  export const show = (type, options) => {
112
+ console.log('[LCQ-RN] BugReporting.show called', { type, options });
102
113
  NativeBugReporting.show(type, options ?? []);
103
114
  };
104
115
  /**
@@ -106,6 +117,7 @@ export const show = (type, options) => {
106
117
  * @param isEnabled enable/disable screen recording on crash feature
107
118
  */
108
119
  export const setAutoScreenRecordingEnabled = (isEnabled) => {
120
+ console.log('[LCQ-RN] BugReporting.setAutoScreenRecordingEnabled called', { isEnabled });
109
121
  NativeBugReporting.setAutoScreenRecordingEnabled(isEnabled);
110
122
  };
111
123
  /**
@@ -115,6 +127,7 @@ export const setAutoScreenRecordingEnabled = (isEnabled) => {
115
127
  * The maximum duration is 30 seconds
116
128
  */
117
129
  export const setAutoScreenRecordingDurationIOS = (maxDuration) => {
130
+ console.log('[LCQ-RN] BugReporting.setAutoScreenRecordingDurationIOS called', { maxDuration });
118
131
  if (Platform.OS !== 'ios') {
119
132
  return;
120
133
  }
@@ -129,6 +142,9 @@ export const setAutoScreenRecordingDurationIOS = (maxDuration) => {
129
142
  * of screen, or `bottomRight` to show on the bottom right of screen.
130
143
  */
131
144
  export const setVideoRecordingFloatingButtonPosition = (buttonPosition) => {
145
+ console.log('[LCQ-RN] BugReporting.setVideoRecordingFloatingButtonPosition called', {
146
+ buttonPosition,
147
+ });
132
148
  NativeBugReporting.setVideoRecordingFloatingButtonPosition(buttonPosition);
133
149
  };
134
150
  /**
@@ -136,6 +152,7 @@ export const setVideoRecordingFloatingButtonPosition = (buttonPosition) => {
136
152
  * @param isEnabled A boolean to set whether view hierarchy are enabled or disabled.
137
153
  */
138
154
  export const setViewHierarchyEnabled = (isEnabled) => {
155
+ console.log('[LCQ-RN] BugReporting.setViewHierarchyEnabled called', { isEnabled });
139
156
  NativeBugReporting.setViewHierarchyEnabled(isEnabled);
140
157
  };
141
158
  /**
@@ -147,6 +164,13 @@ export const setViewHierarchyEnabled = (isEnabled) => {
147
164
  * @param actionType A string representing the action type to map to SDK behavior.
148
165
  */
149
166
  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
+ });
150
174
  NativeBugReporting.addUserConsent(key, description, mandatory, checked, actionType);
151
175
  };
152
176
  /**
@@ -154,6 +178,7 @@ export const addUserConsent = (key, description, mandatory, checked, actionType)
154
178
  * @param handler - A callback that gets executed when a prompt option is selected.
155
179
  */
156
180
  export const setDidSelectPromptOptionHandler = (handler) => {
181
+ console.log('[LCQ-RN] BugReporting.setDidSelectPromptOptionHandler called');
157
182
  if (Platform.OS === 'android') {
158
183
  return;
159
184
  }
@@ -169,6 +194,7 @@ export const setDidSelectPromptOptionHandler = (handler) => {
169
194
  * @param offset The offset of the floating button from the top of the screen. Default is 50.
170
195
  */
171
196
  export const setFloatingButtonEdge = (edge, offset) => {
197
+ console.log('[LCQ-RN] BugReporting.setFloatingButtonEdge called', { edge, offset });
172
198
  NativeBugReporting.setFloatingButtonEdge(edge, offset);
173
199
  };
174
200
  /**
@@ -180,6 +206,12 @@ export const setFloatingButtonEdge = (edge, offset) => {
180
206
  * @param screenRecording A boolean to enable or disable screen recording attachments.
181
207
  */
182
208
  export const setEnabledAttachmentTypes = (screenshot, extraScreenshot, galleryImage, screenRecording) => {
209
+ console.log('[LCQ-RN] BugReporting.setEnabledAttachmentTypes called', {
210
+ screenshot,
211
+ extraScreenshot,
212
+ galleryImage,
213
+ screenRecording,
214
+ });
183
215
  NativeBugReporting.setEnabledAttachmentTypes(screenshot, extraScreenshot, galleryImage, screenRecording);
184
216
  };
185
217
  /**
@@ -187,6 +219,7 @@ export const setEnabledAttachmentTypes = (screenshot, extraScreenshot, galleryIm
187
219
  * @param text String text.
188
220
  */
189
221
  export const setDisclaimerText = (text) => {
222
+ console.log('[LCQ-RN] BugReporting.setDisclaimerText called', { text });
190
223
  NativeBugReporting.setDisclaimerText(text);
191
224
  };
192
225
  /**
@@ -196,6 +229,10 @@ export const setDisclaimerText = (text) => {
196
229
  * @platform iOS
197
230
  */
198
231
  export const setCommentMinimumCharacterCount = (limit, reportTypes) => {
232
+ console.log('[LCQ-RN] BugReporting.setCommentMinimumCharacterCount called', {
233
+ limit,
234
+ reportTypes,
235
+ });
199
236
  if (Platform.OS === 'ios') {
200
237
  NativeBugReporting.setCommentMinimumCharacterCount(limit, reportTypes ?? []);
201
238
  }
@@ -205,5 +242,6 @@ export const setCommentMinimumCharacterCount = (limit, reportTypes) => {
205
242
  * @param config configuration of proActive bug report.
206
243
  */
207
244
  export const setProactiveReportingConfigurations = (config) => {
245
+ console.log('[LCQ-RN] BugReporting.setProactiveReportingConfigurations called', { config });
208
246
  NativeBugReporting.setProactiveReportingConfigurations(config.enabled, config.gapBetweenModals, config.modalDelayAfterDetection);
209
247
  };
@@ -9,6 +9,7 @@ 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 });
12
13
  NativeCrashReporting.setEnabled(isEnabled);
13
14
  };
14
15
  /**
@@ -17,6 +18,7 @@ export const setEnabled = (isEnabled) => {
17
18
  * @param nonFatalOptions extra config for the non-fatal error sent with Error Object
18
19
  */
19
20
  export const reportError = (error, nonFatalOptions = {}) => {
21
+ console.log('[LCQ-RN] CrashReporting.reportError called', { error, nonFatalOptions });
20
22
  if (error instanceof Error) {
21
23
  let level = NonFatalErrorLevel.error;
22
24
  if (nonFatalOptions.level != null) {
@@ -34,6 +36,7 @@ export const reportError = (error, nonFatalOptions = {}) => {
34
36
  * @param isEnabled
35
37
  */
36
38
  export const setNDKCrashesEnabled = (isEnabled) => {
39
+ console.log('[LCQ-RN] CrashReporting.setNDKCrashesEnabled called', { isEnabled });
37
40
  if (Platform.OS === 'android') {
38
41
  NativeCrashReporting.setNDKCrashesEnabled(isEnabled);
39
42
  }
@@ -5,6 +5,7 @@ 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 });
8
9
  NativeFeatureRequests.setEnabled(isEnabled);
9
10
  };
10
11
  /**
@@ -16,6 +17,10 @@ export const setEnabled = (isEnabled) => {
16
17
  * @param types An enum that indicates which action types will have the isEmailFieldRequired
17
18
  */
18
19
  export const setEmailFieldRequired = (isEmailFieldRequired, type) => {
20
+ console.log('[LCQ-RN] FeatureRequests.setEmailFieldRequired called', {
21
+ isEmailFieldRequired,
22
+ type,
23
+ });
19
24
  NativeFeatureRequests.setEmailFieldRequiredForFeatureRequests(isEmailFieldRequired, [
20
25
  type,
21
26
  ]);
@@ -24,5 +29,6 @@ export const setEmailFieldRequired = (isEmailFieldRequired, type) => {
24
29
  * Shows the UI for feature requests list
25
30
  */
26
31
  export const show = () => {
32
+ console.log('[LCQ-RN] FeatureRequests.show called');
27
33
  NativeFeatureRequests.show();
28
34
  };