Skip to content

Commit 5381272

Browse files
committed
fix(android): error fix on N 8.2
1 parent 3736f37 commit 5381272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nssentry.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Application } from '@nativescript/core';
1+
import { Application, Utils } from '@nativescript/core';
22
import { android as androidApp } from '@nativescript/core/application';
33
import { Breadcrumb, Event, Response, Status, User } from '@sentry/types';
44
import { NativescriptOptions, _processLevel } from './backend';
@@ -358,7 +358,7 @@ export namespace NSSentry {
358358

359359
try {
360360
io.sentry.android.core.SentryAndroid.init(
361-
Application.android.context,
361+
Utils.android.getApplicationContext(),
362362
new io.sentry.Sentry.OptionsConfiguration({
363363
configure(config: io.sentry.SentryOptions) {
364364
// config.setLogger(new io.sentry.SystemOutLogger());

0 commit comments

Comments
 (0)