Skip to content

Commit 77af496

Browse files
committed
fix(android): native api usage fix
1 parent 81eb18a commit 77af496

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"io.sentry:Sentry*",
1212
"io.sentry:Breadcrumb*",
1313
"io.sentry:SentryLevel*",
14+
"io.sentry:SentryBaseEvent*",
1415
"io.sentry:SentryEvent*",
1516
"io.sentry:SentryOptions*",
1617
"io.sentry:UserFeedback*",
@@ -21,6 +22,7 @@
2122
"io.sentry.protocol:SentryStackFrame*",
2223
"io.sentry.protocol:SentryException*",
2324
"io.sentry.protocol:SdkVersion*",
25+
"io.sentry.protocol:SentryPackage*",
2426
"io.sentry.protocol:SentryId*",
2527
"io.sentry.protocol:Message*",
2628
"io.sentry:ILogger*",

src/wrapper.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ export namespace NATIVE {
700700

701701
function setEventOriginTag( event: io.sentry.SentryEvent) {
702702
const sdk = event.getSdk();
703-
if (sdk != null) {
703+
if (sdk) {
704704
switch (sdk.getName()) {
705705
// If the event is from capacitor js, it gets set there and we do not handle it
706706
// here.

0 commit comments

Comments
 (0)