Skip to content

Commit b1e7ac1

Browse files
author
farfromrefug
committed
fix(android): some options fix
1 parent a09f317 commit b1e7ac1

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

plugin/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
},
3434
"dependencies": {
3535
"@nativescript-community/arraybuffers": "^1.1.5",
36-
"@sentry/browser": "^7.88.0",
37-
"@sentry/core": "^7.88.0",
38-
"@sentry/hub": "^7.88.0",
39-
"@sentry/integrations": "^7.88.0",
40-
"@sentry/tracing": "^7.88.0",
41-
"@sentry/types": "^7.88.0",
42-
"@sentry/utils": "^7.88.0",
36+
"@sentry/browser": "^7.102.1",
37+
"@sentry/core": "^7.102.1",
38+
"@sentry/hub": "^7.102.1",
39+
"@sentry/integrations": "^7.102.1",
40+
"@sentry/tracing": "^7.102.1",
41+
"@sentry/types": "^7.102.1",
42+
"@sentry/utils": "^7.102.1",
4343
"stacktrace-parser": "^0.1.10"
4444
},
4545
"gitHead": "1e799d9f3a3eeb19c0fc4188be82a6cded4ea727"

plugin/platforms/android/native-api-usage.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"io.sentry.transport:ITransportGate",
2222
"io.sentry.transport:RateLimiter",
2323
"io.sentry:Breadcrumb",
24+
"io.sentry:Integration",
2425
"io.sentry:ILogger",
2526
"io.sentry:ITransportFactory",
2627
"io.sentry:RequestDetails",
@@ -35,6 +36,7 @@
3536
"io.sentry:SentryOptions.BeforeSendCallback",
3637
"io.sentry:UncaughtExceptionHandlerIntegration",
3738
"io.sentry:UserFeedback",
39+
"io.sentry.android.fragment:FragmentLifecycleIntegration",
3840
"java.lang:Boolean",
3941
"java.lang:Integer",
4042
"java.lang:Long",

src/wrapper.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ export namespace NATIVE {
480480
if (options.enableFragmentLifecycleBreadcrumbs !== undefined || options.enableAutoFragmentLifecycleTracing !== undefined) {
481481
config.addIntegration(
482482
new io.sentry.android.fragment.FragmentLifecycleIntegration(
483-
this,
483+
Application.android.getNativeApplication(),
484484
options.enableFragmentLifecycleBreadcrumbs ?? true, // enabled by default
485485
options.enableAutoFragmentLifecycleTracing ?? false // disabled by default
486486
)

0 commit comments

Comments
 (0)