From 6bd880f1498d0cae7f76c2dcd796504a323e3f24 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Thu, 24 Mar 2022 20:57:52 +0100 Subject: [PATCH] fix(android): error fix on N 8.2 --- src/nssentry.android.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nssentry.android.ts b/src/nssentry.android.ts index 9f06364..e244b6c 100644 --- a/src/nssentry.android.ts +++ b/src/nssentry.android.ts @@ -1,4 +1,4 @@ -import { Application } from '@nativescript/core'; +import { Application, Utils } from '@nativescript/core'; import { android as androidApp } from '@nativescript/core/application'; import { Breadcrumb, Event, Response, Status, User } from '@sentry/types'; import { NativescriptOptions, _processLevel } from './backend'; @@ -358,7 +358,7 @@ export namespace NSSentry { try { io.sentry.android.core.SentryAndroid.init( - Application.android.context, + Utils.android.getApplicationContext(), new io.sentry.Sentry.OptionsConfiguration({ configure(config: io.sentry.SentryOptions) { // config.setLogger(new io.sentry.SystemOutLogger());