Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update SentrySdk.cs
  • Loading branch information
aritchie committed Mar 4, 2025
commit 482c3d06ebc2a6df3154884e012cf2034e656ef8
5 changes: 3 additions & 2 deletions src/Sentry/Platforms/Android/SentrySdk.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@

if (options.Android.SuppressSegfaults)
{
// user BeforeSend will be run by the wrapper as well if it is set
o.BeforeSend = new BeforeSendCallback(BeforeSendWrapper(options), options, o);
}
else if (options.Native.EnableBeforeSend && options.BeforeSendInternal is { } beforeSend)
else if (options.Native.EnableBeforeSend && options.BeforeSendInternal != null)
{
o.BeforeSend = beforeSend;
o.BeforeSend = options.BeforeSendInternal;

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / build

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / .NET (ubuntu-22.04)

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / .NET (ubuntu-22.04)

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / .NET (ubuntu-22.04)

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / .NET (ubuntu-22.04)

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / Analyze

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / Analyze

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / Analyze

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / Analyze

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / Trim analysis

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / .NET (windows-latest)

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'

Check failure on line 110 in src/Sentry/Platforms/Android/SentrySdk.cs

View workflow job for this annotation

GitHub Actions / .NET (windows-latest)

Cannot implicitly convert type 'System.Func<Sentry.SentryEvent, Sentry.SentryHint, Sentry.SentryEvent?>' to 'Sentry.JavaSdk.SentryOptions.IBeforeSendCallback'
}

// These options are from SentryAndroidOptions
Expand Down
Loading