@bugsee/react-native 7.0.0-beta2 → 7.0.0-beta4
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/README.md +264 -9
- package/android/build.gradle +9 -0
- package/android/consumer-rules.pro +3 -0
- package/android/src/main/java/com/bugsee/reactnative/BreadcrumbFilterBridge.java +224 -20
- package/android/src/main/java/com/bugsee/reactnative/BugseeModule.java +44 -21
- package/android/src/main/java/com/bugsee/reactnative/BugseeOptionEnums.java +15 -0
- package/android/src/main/java/com/bugsee/reactnative/LogFilterBridge.java +119 -5
- package/android/src/main/java/com/bugsee/reactnative/NetworkCaptureProbe.java +107 -0
- package/android/src/main/java/com/bugsee/reactnative/NetworkFilterBridge.java +129 -14
- package/android/src/main/java/com/bugsee/reactnative/ReactNativeWrapperInitProvider.java +48 -0
- package/android/src/main/java/com/bugsee/reactnative/SpanHandles.java +64 -8
- package/android/src/main/java/com/bugsee/reactnative/StartupHold.java +237 -0
- package/ios/BugseeModule.mm +293 -155
- package/ios/Support/Package.resolved +2 -2
- package/ios/Support/Package.swift +1 -1
- package/ios/Support/Sources/BugseeRNSupport/BGSRNBlackout.m +14 -0
- package/ios/Support/Sources/BugseeRNSupport/BGSRNDeleteCollectedData.m +33 -0
- package/ios/Support/Sources/BugseeRNSupport/BGSRNFilterArming.m +22 -0
- package/ios/Support/Sources/BugseeRNSupport/BGSRNFilterDeadline.m +110 -0
- package/ios/Support/Sources/BugseeRNSupport/BGSRNSpanHandles.m +40 -6
- package/ios/Support/Sources/BugseeRNSupport/BGSRNWrapper.m +1 -1
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNBlackout.h +23 -0
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNCreatedReportOps.h +2 -0
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNDeleteCollectedData.h +29 -0
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNFilterArming.h +26 -0
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNFilterDeadline.h +68 -0
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNReportHandlerBridge.h +5 -0
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNReportOps.h +5 -0
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNSpanHandles.h +16 -2
- package/ios/Support/Sources/BugseeRNSupport/include/BGSRNWrapperChannelHolder.h +5 -0
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNBlackoutTests.m +38 -0
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNDeleteCollectedDataTests.m +135 -0
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNFakeReport.h +5 -0
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNFilterArmingTests.m +48 -0
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNFilterDeadlineTests.m +230 -0
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNReportHandlerBridgeTests.m +5 -0
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNSpanHandlesTests.m +86 -6
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNWrapperChannelHolderTests.m +5 -0
- package/ios/Support/Tests/BugseeRNSupportTests/BGSRNWrapperTests.m +1 -1
- package/native-versions.json +2 -2
- package/package.json +2 -2
- package/plugin/build/dsym-script.d.ts +11 -0
- package/plugin/build/dsym-script.js +26 -3
- package/plugin/build/dsym-script.js.map +1 -1
- package/plugin/build/index.d.ts +27 -0
- package/plugin/build/index.js +33 -21
- package/plugin/build/index.js.map +1 -1
- package/plugin/build/manifest.d.ts +37 -0
- package/plugin/build/manifest.js +67 -1
- package/plugin/build/manifest.js.map +1 -1
- package/plugin/build/native-versions.baked.json +1 -1
- package/scripts/bugsee-xcode.sh +0 -0
- package/scripts/compose-then-inject.js +4 -2
- package/scripts/hermes-sourcemaps.js +40 -3
- package/scripts/hermesc-preserve-js.js +0 -0
- package/scripts/hermesc-preserve-js.sh +0 -0
- package/src/NativeBugsee.ts +39 -22
- package/src/apm/span.ts +42 -7
- package/src/breadcrumbs/filter.ts +104 -13
- package/src/breadcrumbs/types.ts +6 -4
- package/src/breadcrumbs/url-scrub.ts +75 -0
- package/src/exceptions/ErrorBoundary.tsx +4 -1
- package/src/exceptions/RootErrorReporter.tsx +1 -1
- package/src/exceptions/handlers.ts +17 -1
- package/src/exceptions/report.ts +30 -8
- package/src/index.ts +125 -33
- package/src/logs/filter.ts +19 -8
- package/src/network/filter.ts +17 -5
- package/src/options/AndroidLaunchOptions.ts +310 -24
- package/src/options/BugseeLaunchOptions.ts +463 -18
- package/src/options/IOSLaunchOptions.ts +164 -8
- package/src/options/android-options-manifest.json +63 -6
- package/src/options/enums.ts +28 -0
- package/src/options/ios-enums.json +6 -5
- package/src/options/ios-options-manifest.json +594 -0
- package/src/options/keys.ts +19 -1
- package/src/options/noAccessor.ts +16 -0
- package/src/options/option-keys.json +9 -3
- package/src/options/unknownKeys.ts +198 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { FrameRate, IssueSeverity, LogLevel, VideoQuality } from './enums';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Launch options, keyed by the SDKs' real 7.x option keys.
|
|
3
5
|
*
|
|
@@ -75,6 +77,9 @@ export abstract class BugseeLaunchOptions {
|
|
|
75
77
|
// live on the subclasses, so an iOS-only key is not reachable from an
|
|
76
78
|
// Android options object.
|
|
77
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Capture logs. Lines sent with `Bugsee.log()` are always recorded.
|
|
82
|
+
*/
|
|
78
83
|
get captureLogs(): boolean | undefined {
|
|
79
84
|
return this.$get('com.bugsee.option.capture.logs');
|
|
80
85
|
}
|
|
@@ -82,13 +87,20 @@ export abstract class BugseeLaunchOptions {
|
|
|
82
87
|
this.$set('com.bugsee.option.capture.logs', value);
|
|
83
88
|
}
|
|
84
89
|
|
|
85
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Least severe level captured; see {@link LogLevel}. Also accepts a plain `number`, which this
|
|
92
|
+
* accessor always took, so a level read from config still compiles.
|
|
93
|
+
*/
|
|
94
|
+
get captureLogsLevel(): LogLevel | number | undefined {
|
|
86
95
|
return this.$get('com.bugsee.option.capture.logs.level');
|
|
87
96
|
}
|
|
88
|
-
set captureLogsLevel(value: number | undefined) {
|
|
97
|
+
set captureLogsLevel(value: LogLevel | number | undefined) {
|
|
89
98
|
this.$set('com.bugsee.option.capture.logs.level', value);
|
|
90
99
|
}
|
|
91
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Capture network events.
|
|
103
|
+
*/
|
|
92
104
|
get captureNetwork(): boolean | undefined {
|
|
93
105
|
return this.$get('com.bugsee.option.capture.network');
|
|
94
106
|
}
|
|
@@ -96,6 +108,49 @@ export abstract class BugseeLaunchOptions {
|
|
|
96
108
|
this.$set('com.bugsee.option.capture.network', value);
|
|
97
109
|
}
|
|
98
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Largest request or response body captured, in bytes.
|
|
113
|
+
*/
|
|
114
|
+
get captureNetworkBodySizeLimit(): number | undefined {
|
|
115
|
+
return this.$get('com.bugsee.option.capture.network.body-size-limit');
|
|
116
|
+
}
|
|
117
|
+
set captureNetworkBodySizeLimit(value: number | undefined) {
|
|
118
|
+
this.$set('com.bugsee.option.capture.network.body-size-limit', value);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Also capture bodies that declare no content type. Off keeps only textual bodies.
|
|
123
|
+
*/
|
|
124
|
+
get captureNetworkBodyWithoutType(): boolean | undefined {
|
|
125
|
+
return this.$get('com.bugsee.option.capture.network.body-without-type');
|
|
126
|
+
}
|
|
127
|
+
set captureNetworkBodyWithoutType(value: boolean | undefined) {
|
|
128
|
+
this.$set('com.bugsee.option.capture.network.body-without-type', value);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Redact known-sensitive values (query parameters, headers, JSON bodies) when no network filter is set.
|
|
133
|
+
*/
|
|
134
|
+
get captureNetworkUseDefaultSanitizer(): boolean | undefined {
|
|
135
|
+
return this.$get('com.bugsee.option.capture.network.default-sanitizer');
|
|
136
|
+
}
|
|
137
|
+
set captureNetworkUseDefaultSanitizer(value: boolean | undefined) {
|
|
138
|
+
this.$set('com.bugsee.option.capture.network.default-sanitizer', value);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Subscribe network capture synchronously during launch, so requests issued in the launch window are seen.
|
|
143
|
+
*/
|
|
144
|
+
get captureNetworkOnLaunch(): boolean | undefined {
|
|
145
|
+
return this.$get('com.bugsee.option.capture.network.on-launch');
|
|
146
|
+
}
|
|
147
|
+
set captureNetworkOnLaunch(value: boolean | undefined) {
|
|
148
|
+
this.$set('com.bugsee.option.capture.network.on-launch', value);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Capture breadcrumbs (user and system events).
|
|
153
|
+
*/
|
|
99
154
|
get captureBreadcrumbs(): boolean | undefined {
|
|
100
155
|
return this.$get('com.bugsee.option.capture.breadcrumbs');
|
|
101
156
|
}
|
|
@@ -103,6 +158,39 @@ export abstract class BugseeLaunchOptions {
|
|
|
103
158
|
this.$set('com.bugsee.option.capture.breadcrumbs', value);
|
|
104
159
|
}
|
|
105
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Attach the extra detail of automatically collected device-event breadcrumbs.
|
|
163
|
+
*/
|
|
164
|
+
get captureBreadcrumbsExtras(): boolean | undefined {
|
|
165
|
+
return this.$get('com.bugsee.option.capture.breadcrumbs.extras');
|
|
166
|
+
}
|
|
167
|
+
set captureBreadcrumbsExtras(value: boolean | undefined) {
|
|
168
|
+
this.$set('com.bugsee.option.capture.breadcrumbs.extras', value);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Capture screenshots for reports, independent of video.
|
|
173
|
+
*/
|
|
174
|
+
get captureScreenshot(): boolean | undefined {
|
|
175
|
+
return this.$get('com.bugsee.option.capture.screenshot');
|
|
176
|
+
}
|
|
177
|
+
set captureScreenshot(value: boolean | undefined) {
|
|
178
|
+
this.$set('com.bugsee.option.capture.screenshot', value);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Privacy scaling applied to screenshots; below `1` removes fine detail such as text.
|
|
183
|
+
*/
|
|
184
|
+
get captureScreenshotScale(): number | undefined {
|
|
185
|
+
return this.$get('com.bugsee.option.capture.screenshot.scale');
|
|
186
|
+
}
|
|
187
|
+
set captureScreenshotScale(value: number | undefined) {
|
|
188
|
+
this.$set('com.bugsee.option.capture.screenshot.scale', value);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Record video for reports.
|
|
193
|
+
*/
|
|
106
194
|
get captureVideo(): boolean | undefined {
|
|
107
195
|
return this.$get('com.bugsee.option.capture.video');
|
|
108
196
|
}
|
|
@@ -110,27 +198,79 @@ export abstract class BugseeLaunchOptions {
|
|
|
110
198
|
this.$set('com.bugsee.option.capture.video', value);
|
|
111
199
|
}
|
|
112
200
|
|
|
113
|
-
|
|
114
|
-
|
|
201
|
+
/**
|
|
202
|
+
* Skip capture work while the screen is idle. The SDKs' own defaults differ.
|
|
203
|
+
*/
|
|
204
|
+
get captureVideoAdaptive(): boolean | undefined {
|
|
205
|
+
return this.$get('com.bugsee.option.capture.video.adaptive');
|
|
115
206
|
}
|
|
116
|
-
set
|
|
117
|
-
this.$set('com.bugsee.option.
|
|
207
|
+
set captureVideoAdaptive(value: boolean | undefined) {
|
|
208
|
+
this.$set('com.bugsee.option.capture.video.adaptive', value);
|
|
118
209
|
}
|
|
119
210
|
|
|
120
|
-
|
|
121
|
-
|
|
211
|
+
/**
|
|
212
|
+
* How often frames are captured; see {@link FrameRate}.
|
|
213
|
+
*/
|
|
214
|
+
get captureVideoFrameRate(): FrameRate | undefined {
|
|
215
|
+
return this.$get('com.bugsee.option.capture.video.frame-rate');
|
|
122
216
|
}
|
|
123
|
-
set
|
|
124
|
-
this.$set('com.bugsee.option.
|
|
217
|
+
set captureVideoFrameRate(value: FrameRate | undefined) {
|
|
218
|
+
this.$set('com.bugsee.option.capture.video.frame-rate', value);
|
|
125
219
|
}
|
|
126
220
|
|
|
127
|
-
|
|
128
|
-
|
|
221
|
+
/**
|
|
222
|
+
* Quality of the encoded video; see {@link VideoQuality}.
|
|
223
|
+
*/
|
|
224
|
+
get captureVideoQuality(): VideoQuality | undefined {
|
|
225
|
+
return this.$get('com.bugsee.option.capture.video.quality');
|
|
129
226
|
}
|
|
130
|
-
set
|
|
131
|
-
this.$set('com.bugsee.option.
|
|
227
|
+
set captureVideoQuality(value: VideoQuality | undefined) {
|
|
228
|
+
this.$set('com.bugsee.option.capture.video.quality', value);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Extra down-scaling of recorded video; `0.5` halves width and height.
|
|
233
|
+
*/
|
|
234
|
+
get captureVideoScale(): number | undefined {
|
|
235
|
+
return this.$get('com.bugsee.option.capture.video.scale');
|
|
236
|
+
}
|
|
237
|
+
set captureVideoScale(value: number | undefined) {
|
|
238
|
+
this.$set('com.bugsee.option.capture.video.scale', value);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Capture the view hierarchy for reports.
|
|
243
|
+
*/
|
|
244
|
+
get captureViewHierarchy(): boolean | undefined {
|
|
245
|
+
return this.$get('com.bugsee.option.capture.view-hierarchy');
|
|
246
|
+
}
|
|
247
|
+
set captureViewHierarchy(value: boolean | undefined) {
|
|
248
|
+
this.$set('com.bugsee.option.capture.view-hierarchy', value);
|
|
132
249
|
}
|
|
133
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Inject the advanced WebView SDK into instrumented WebViews for full-fidelity in-page capture.
|
|
253
|
+
*/
|
|
254
|
+
get captureWebViewAdvanced(): boolean | undefined {
|
|
255
|
+
return this.$get('com.bugsee.option.capture.webview.advanced');
|
|
256
|
+
}
|
|
257
|
+
set captureWebViewAdvanced(value: boolean | undefined) {
|
|
258
|
+
this.$set('com.bugsee.option.capture.webview.advanced', value);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Let an incident raised inside an instrumented WebView open a native bug report.
|
|
263
|
+
*/
|
|
264
|
+
get captureWebViewReportTrigger(): boolean | undefined {
|
|
265
|
+
return this.$get('com.bugsee.option.capture.webview.report-trigger');
|
|
266
|
+
}
|
|
267
|
+
set captureWebViewReportTrigger(value: boolean | undefined) {
|
|
268
|
+
this.$set('com.bugsee.option.capture.webview.report-trigger', value);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Seconds of history a report carries.
|
|
273
|
+
*/
|
|
134
274
|
get duration(): number | undefined {
|
|
135
275
|
return this.$get('com.bugsee.option.config.duration');
|
|
136
276
|
}
|
|
@@ -139,10 +279,8 @@ export abstract class BugseeLaunchOptions {
|
|
|
139
279
|
}
|
|
140
280
|
|
|
141
281
|
/**
|
|
142
|
-
* Disk space, in megabytes, that reports waiting to be sent may occupy.
|
|
143
|
-
*
|
|
144
|
-
* the SDKs' defaults differ (iOS 50, Android 150), and the wrapper sets
|
|
145
|
-
* neither.
|
|
282
|
+
* Disk space, in megabytes, that reports waiting to be sent may occupy. Past it the
|
|
283
|
+
* oldest reports are deleted whole.
|
|
146
284
|
*/
|
|
147
285
|
get maxDataSize(): number | undefined {
|
|
148
286
|
return this.$get('com.bugsee.option.config.max-data-size');
|
|
@@ -151,6 +289,313 @@ export abstract class BugseeLaunchOptions {
|
|
|
151
289
|
this.$set('com.bugsee.option.config.max-data-size', value);
|
|
152
290
|
}
|
|
153
291
|
|
|
292
|
+
/**
|
|
293
|
+
* The fatal signals the native crash handler intercepts, as a bit set: ABRT 1, SEGV 2,
|
|
294
|
+
* BUS 4, ILL 8, FPE 16, TRAP 32 (the same layout on both platforms). Unset leaves the SDK
|
|
295
|
+
* default, 128 (the "let the SDK choose" bit, which resolves to every signal; it counts only on
|
|
296
|
+
* its own). Leave SEGV and BUS out when the app hosts a Mono runtime. On Android
|
|
297
|
+
* it is read once, when the native handler is first armed in the process. iOS 7.0.0-beta7,
|
|
298
|
+
* Android 7.6.0.
|
|
299
|
+
*/
|
|
300
|
+
get crashSignals(): number | undefined {
|
|
301
|
+
return this.$get('com.bugsee.option.capture.crash-signals');
|
|
302
|
+
}
|
|
303
|
+
set crashSignals(value: number | undefined) {
|
|
304
|
+
this.$set('com.bugsee.option.capture.crash-signals', value);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Most reports kept waiting to be sent. Android 7.3.0, iOS 7.0.0.
|
|
309
|
+
*/
|
|
310
|
+
get maxPendingReports(): number | undefined {
|
|
311
|
+
return this.$get('com.bugsee.option.config.max-pending-reports');
|
|
312
|
+
}
|
|
313
|
+
set maxPendingReports(value: number | undefined) {
|
|
314
|
+
this.$set('com.bugsee.option.config.max-pending-reports', value);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Oldest a report waiting to be sent may get, in days; `0` or less keeps reports until
|
|
319
|
+
* they are sent or evicted. Android 7.3.0, iOS 7.0.0.
|
|
320
|
+
*/
|
|
321
|
+
get maxPendingReportAge(): number | undefined {
|
|
322
|
+
return this.$get('com.bugsee.option.config.max-pending-report-age');
|
|
323
|
+
}
|
|
324
|
+
set maxPendingReportAge(value: number | undefined) {
|
|
325
|
+
this.$set('com.bugsee.option.config.max-pending-report-age', value);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Coalesce window, in milliseconds, before `Bugsee.notify` uploads flush; `0` posts as soon as the item is on disk.
|
|
330
|
+
*/
|
|
331
|
+
get notifyFlushDelay(): number | undefined {
|
|
332
|
+
return this.$get('com.bugsee.option.config.notify-flush-delay');
|
|
333
|
+
}
|
|
334
|
+
set notifyFlushDelay(value: number | undefined) {
|
|
335
|
+
this.$set('com.bugsee.option.config.notify-flush-delay', value);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Upload only over Wi-Fi.
|
|
340
|
+
*/
|
|
341
|
+
get wifiOnlyUpload(): boolean | undefined {
|
|
342
|
+
return this.$get('com.bugsee.option.config.wifi-only-upload');
|
|
343
|
+
}
|
|
344
|
+
set wifiOnlyUpload(value: boolean | undefined) {
|
|
345
|
+
this.$set('com.bugsee.option.config.wifi-only-upload', value);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Detect and report performance anomalies.
|
|
350
|
+
*/
|
|
351
|
+
get detectAndReportAnomaly(): boolean | undefined {
|
|
352
|
+
return this.$get('com.bugsee.option.detect.anomaly');
|
|
353
|
+
}
|
|
354
|
+
set detectAndReportAnomaly(value: boolean | undefined) {
|
|
355
|
+
this.$set('com.bugsee.option.detect.anomaly', value);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Detect and report crashes.
|
|
360
|
+
*/
|
|
361
|
+
get detectAndReportCrash(): boolean | undefined {
|
|
362
|
+
return this.$get('com.bugsee.option.detect.crash');
|
|
363
|
+
}
|
|
364
|
+
set detectAndReportCrash(value: boolean | undefined) {
|
|
365
|
+
this.$set('com.bugsee.option.detect.crash', value);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Recover crashes that happen during app start-up.
|
|
370
|
+
*/
|
|
371
|
+
get detectAndReportEarlyCrash(): boolean | undefined {
|
|
372
|
+
return this.$get('com.bugsee.option.detect.early-crash');
|
|
373
|
+
}
|
|
374
|
+
set detectAndReportEarlyCrash(value: boolean | undefined) {
|
|
375
|
+
this.$set('com.bugsee.option.detect.early-crash', value);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Detect and report app exits.
|
|
380
|
+
*/
|
|
381
|
+
get detectAndReportExit(): boolean | undefined {
|
|
382
|
+
return this.$get('com.bugsee.option.detect.exit');
|
|
383
|
+
}
|
|
384
|
+
set detectAndReportExit(value: boolean | undefined) {
|
|
385
|
+
this.$set('com.bugsee.option.detect.exit', value);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Detect and report user-frustration patterns such as rage taps.
|
|
390
|
+
*/
|
|
391
|
+
get detectFrustration(): boolean | undefined {
|
|
392
|
+
return this.$get('com.bugsee.option.detect.frustration');
|
|
393
|
+
}
|
|
394
|
+
set detectFrustration(value: boolean | undefined) {
|
|
395
|
+
this.$set('com.bugsee.option.detect.frustration', value);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* Detect and report hangs.
|
|
400
|
+
*/
|
|
401
|
+
get detectAndReportHang(): boolean | undefined {
|
|
402
|
+
return this.$get('com.bugsee.option.detect.hang');
|
|
403
|
+
}
|
|
404
|
+
set detectAndReportHang(value: boolean | undefined) {
|
|
405
|
+
this.$set('com.bugsee.option.detect.hang', value);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Main-thread block, in milliseconds, that raises a "fair" hang. Less than the medium level.
|
|
410
|
+
*/
|
|
411
|
+
get detectAndReportHangFairLevel(): number | undefined {
|
|
412
|
+
return this.$get('com.bugsee.option.detect.hang.level.fair');
|
|
413
|
+
}
|
|
414
|
+
set detectAndReportHangFairLevel(value: number | undefined) {
|
|
415
|
+
this.$set('com.bugsee.option.detect.hang.level.fair', value);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Main-thread block, in milliseconds, that raises a "medium" hang.
|
|
420
|
+
*/
|
|
421
|
+
get detectAndReportHangMediumLevel(): number | undefined {
|
|
422
|
+
return this.$get('com.bugsee.option.detect.hang.level.medium');
|
|
423
|
+
}
|
|
424
|
+
set detectAndReportHangMediumLevel(value: number | undefined) {
|
|
425
|
+
this.$set('com.bugsee.option.detect.hang.level.medium', value);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Main-thread block, in milliseconds, that raises a "severe" hang. Greater than the medium level.
|
|
430
|
+
*/
|
|
431
|
+
get detectAndReportHangSevereLevel(): number | undefined {
|
|
432
|
+
return this.$get('com.bugsee.option.detect.hang.level.severe');
|
|
433
|
+
}
|
|
434
|
+
set detectAndReportHangSevereLevel(value: number | undefined) {
|
|
435
|
+
this.$set('com.bugsee.option.detect.hang.level.severe', value);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Turn HTTP 5xx responses into error reports.
|
|
440
|
+
*/
|
|
441
|
+
get detectAndReportHttpErrors(): boolean | undefined {
|
|
442
|
+
return this.$get('com.bugsee.option.detect.http-errors');
|
|
443
|
+
}
|
|
444
|
+
set detectAndReportHttpErrors(value: boolean | undefined) {
|
|
445
|
+
this.$set('com.bugsee.option.detect.http-errors', value);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Detect and report blocking work on the main thread.
|
|
450
|
+
*/
|
|
451
|
+
get detectAndReportMainThreadMisuse(): boolean | undefined {
|
|
452
|
+
return this.$get('com.bugsee.option.detect.main_thread_misuse');
|
|
453
|
+
}
|
|
454
|
+
set detectAndReportMainThreadMisuse(value: boolean | undefined) {
|
|
455
|
+
this.$set('com.bugsee.option.detect.main_thread_misuse', value);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Promote "interesting" transactions that lost the random sampling draw.
|
|
460
|
+
*/
|
|
461
|
+
get performanceAdaptiveSampling(): boolean | undefined {
|
|
462
|
+
return this.$get('com.bugsee.option.performance.adaptive-sampling');
|
|
463
|
+
}
|
|
464
|
+
set performanceAdaptiveSampling(value: boolean | undefined) {
|
|
465
|
+
this.$set('com.bugsee.option.performance.adaptive-sampling', value);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Enable performance monitoring (APM).
|
|
470
|
+
*/
|
|
471
|
+
get performanceMonitoring(): boolean | undefined {
|
|
472
|
+
return this.$get('com.bugsee.option.performance.enabled');
|
|
473
|
+
}
|
|
474
|
+
set performanceMonitoring(value: boolean | undefined) {
|
|
475
|
+
this.$set('com.bugsee.option.performance.enabled', value);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Probability, `0` to `1`, that a transaction is sampled.
|
|
480
|
+
*/
|
|
481
|
+
get performanceSampleRate(): number | undefined {
|
|
482
|
+
return this.$get('com.bugsee.option.performance.sample-rate');
|
|
483
|
+
}
|
|
484
|
+
set performanceSampleRate(value: number | undefined) {
|
|
485
|
+
this.$set('com.bugsee.option.performance.sample-rate', value);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Default priority of bug reports; see {@link IssueSeverity}.
|
|
490
|
+
*/
|
|
491
|
+
get reportingDefaultBugPriority(): IssueSeverity | undefined {
|
|
492
|
+
return this.$get('com.bugsee.option.reporting.defaults.bug-priority');
|
|
493
|
+
}
|
|
494
|
+
set reportingDefaultBugPriority(value: IssueSeverity | undefined) {
|
|
495
|
+
this.$set('com.bugsee.option.reporting.defaults.bug-priority', value);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Default priority of crash reports; see {@link IssueSeverity}.
|
|
500
|
+
*/
|
|
501
|
+
get reportingDefaultCrashPriority(): IssueSeverity | undefined {
|
|
502
|
+
return this.$get('com.bugsee.option.reporting.defaults.crash-priority');
|
|
503
|
+
}
|
|
504
|
+
set reportingDefaultCrashPriority(value: IssueSeverity | undefined) {
|
|
505
|
+
this.$set('com.bugsee.option.reporting.defaults.crash-priority', value);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Default priority of error reports; see {@link IssueSeverity}.
|
|
510
|
+
*/
|
|
511
|
+
get reportingDefaultErrorPriority(): IssueSeverity | undefined {
|
|
512
|
+
return this.$get('com.bugsee.option.reporting.defaults.error-priority');
|
|
513
|
+
}
|
|
514
|
+
set reportingDefaultErrorPriority(value: IssueSeverity | undefined) {
|
|
515
|
+
this.$set('com.bugsee.option.reporting.defaults.error-priority', value);
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Let the user open the report dialog by shaking the device. **The SDK default is off
|
|
520
|
+
* (Android 7.6.0, iOS 7.1.0; on before):** set this to `true` to turn shake-to-report on.
|
|
521
|
+
*/
|
|
522
|
+
get triggerByShake(): boolean | undefined {
|
|
523
|
+
return this.$get('com.bugsee.option.reporting.triggers.shake');
|
|
524
|
+
}
|
|
525
|
+
set triggerByShake(value: boolean | undefined) {
|
|
526
|
+
this.$set('com.bugsee.option.reporting.triggers.shake', value);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* Let the user open the report dialog by taking a screenshot.
|
|
531
|
+
*/
|
|
532
|
+
get triggerByScreenshot(): boolean | undefined {
|
|
533
|
+
return this.$get('com.bugsee.option.reporting.triggers.screenshot');
|
|
534
|
+
}
|
|
535
|
+
set triggerByScreenshot(value: boolean | undefined) {
|
|
536
|
+
this.$set('com.bugsee.option.reporting.triggers.screenshot', value);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Make the Description field mandatory in the report dialog.
|
|
541
|
+
*/
|
|
542
|
+
get reportingUIDescriptionRequired(): boolean | undefined {
|
|
543
|
+
return this.$get('com.bugsee.option.reporting.ui.description-required');
|
|
544
|
+
}
|
|
545
|
+
set reportingUIDescriptionRequired(value: boolean | undefined) {
|
|
546
|
+
this.$set('com.bugsee.option.reporting.ui.description-required', value);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Make the Email field mandatory in the report dialog.
|
|
551
|
+
*/
|
|
552
|
+
get reportingUIEmailRequired(): boolean | undefined {
|
|
553
|
+
return this.$get('com.bugsee.option.reporting.ui.email-required');
|
|
554
|
+
}
|
|
555
|
+
set reportingUIEmailRequired(value: boolean | undefined) {
|
|
556
|
+
this.$set('com.bugsee.option.reporting.ui.email-required', value);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Show the Labels field in the report dialog.
|
|
561
|
+
*/
|
|
562
|
+
get reportingUILabelsEnabled(): boolean | undefined {
|
|
563
|
+
return this.$get('com.bugsee.option.reporting.ui.labels-enabled');
|
|
564
|
+
}
|
|
565
|
+
set reportingUILabelsEnabled(value: boolean | undefined) {
|
|
566
|
+
this.$set('com.bugsee.option.reporting.ui.labels-enabled', value);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* Make the Labels field mandatory in the report dialog.
|
|
571
|
+
*/
|
|
572
|
+
get reportingUILabelsRequired(): boolean | undefined {
|
|
573
|
+
return this.$get('com.bugsee.option.reporting.ui.labels-required');
|
|
574
|
+
}
|
|
575
|
+
set reportingUILabelsRequired(value: boolean | undefined) {
|
|
576
|
+
this.$set('com.bugsee.option.reporting.ui.labels-required', value);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Let the user change the priority in the report dialog.
|
|
581
|
+
*/
|
|
582
|
+
get reportingUIPrioritySelectorEnabled(): boolean | undefined {
|
|
583
|
+
return this.$get('com.bugsee.option.reporting.ui.priority-selector-enabled');
|
|
584
|
+
}
|
|
585
|
+
set reportingUIPrioritySelectorEnabled(value: boolean | undefined) {
|
|
586
|
+
this.$set('com.bugsee.option.reporting.ui.priority-selector-enabled', value);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Make the Summary field mandatory in the report dialog.
|
|
591
|
+
*/
|
|
592
|
+
get reportingUISummaryRequired(): boolean | undefined {
|
|
593
|
+
return this.$get('com.bugsee.option.reporting.ui.summary-required');
|
|
594
|
+
}
|
|
595
|
+
set reportingUISummaryRequired(value: boolean | undefined) {
|
|
596
|
+
this.$set('com.bugsee.option.reporting.ui.summary-required', value);
|
|
597
|
+
}
|
|
598
|
+
|
|
154
599
|
/**
|
|
155
600
|
* Sets any option by its real `com.bugsee.option.*` key, surfaced or not.
|
|
156
601
|
* `undefined` deletes, exactly as a first-class accessor does.
|