Skip to content

Commit

Permalink
fix(android): error fix on N 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Mar 24, 2022
1 parent 58322c6 commit 6bd880f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nssentry.android.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 6bd880f

Please sign in to comment.