File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -122,19 +122,15 @@ export class DebugSymbolicator implements Integration {
122
122
* @inheritDoc
123
123
*/
124
124
public setupOnce ( ) : void {
125
- console . log ( 'setupOnce' ) ;
126
125
addGlobalEventProcessor ( async ( event : Event , hint ?: EventHint ) => {
127
126
const self = getCurrentHub ( ) . getIntegration ( DebugSymbolicator ) ;
128
- console . log ( 'addGlobalEventProcessor' , hint . originalException ) ;
129
127
if ( ! self || hint === undefined || hint . originalException === undefined ) {
130
128
return event ;
131
129
}
132
130
// @ts -ignore
133
131
const error : NativescriptError = hint . originalException ;
134
132
// const parseErrorStack = require('react-native/Libraries/Core/Devtools/parseErrorStack');
135
133
const stack = parseErrorStack ( error ) ;
136
- console . log ( 'stack' , stack ) ;
137
- console . log ( 'event.exception?.values?.[0].stacktrace' , event . exception ?. values ?. [ 0 ] . stacktrace ) ;
138
134
// console.log('stack', stack);
139
135
140
136
@@ -177,7 +173,6 @@ export class DebugSymbolicator implements Integration {
177
173
* @param frames StackFrame[]
178
174
*/
179
175
private _replaceFramesInEvent ( event : Event , frames : StackFrame [ ] ) : void {
180
- console . log ( '_replaceFramesInEvent' ) ;
181
176
if ( event . exception ?. values ?. [ 0 ] . stacktrace ) {
182
177
event . exception . values [ 0 ] . stacktrace . frames = frames . reverse ( ) ;
183
178
}
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ export namespace NATIVE {
349
349
enableNative : true ,
350
350
autoInitializeNativeSdk : true ,
351
351
...originalOptions ,
352
- } ;
352
+ } as NativescriptOptions ;
353
353
if ( ! options . enableNative ) {
354
354
if ( options . enableNativeNagger ) {
355
355
console . warn ( 'Note: Native Sentry SDK is disabled.' ) ;
@@ -477,6 +477,15 @@ export namespace NATIVE {
477
477
// } else {
478
478
// disableNativeFramesTracking();
479
479
// }
480
+ if ( options . enableFragmentLifecycleBreadcrumbs !== undefined || options . enableAutoFragmentLifecycleTracing !== undefined ) {
481
+ config . addIntegration (
482
+ new io . sentry . android . fragment . FragmentLifecycleIntegration (
483
+ this ,
484
+ options . enableFragmentLifecycleBreadcrumbs ?? true , // enabled by default
485
+ options . enableAutoFragmentLifecycleTracing ?? false // disabled by default
486
+ )
487
+ ) ;
488
+ }
480
489
481
490
// config.setEnableNdk(true);
482
491
if ( enableNativeCrashHandling === false ) {
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ export namespace NATIVE {
306
306
const options = {
307
307
enableNative : true ,
308
308
...originalOptions ,
309
- } ;
309
+ } as NativescriptOptions ;
310
310
if ( ! options . enableNative ) {
311
311
if ( options . enableNativeNagger ) {
312
312
console . warn ( 'Note: Native Sentry SDK is disabled.' ) ;
You can’t perform that action at this time.
0 commit comments