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 "hack" with appropriate values
  • Loading branch information
aritchie committed Mar 4, 2025
commit 09a9d544d66a240d0b12884537e7afbfbcb87225
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Sentry.Internal;

namespace Sentry.Android.Extensions;

internal static class SentryEventExtensions
Expand All @@ -20,8 +22,8 @@
if (sentryEvent.Sdk != null)
{
// when we cast this serialize this over, this value must be set
sentryEvent.Sdk.Name ??= "Sentry";
sentryEvent.Sdk.Version ??= "1.0.0";
sentryEvent.Sdk.Name ??= Constants.SdkName;
sentryEvent.Sdk.Version ??= SdkVersion.Instance.Version;

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / build

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / .NET (ubuntu-22.04)

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / .NET (ubuntu-22.04)

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / .NET (ubuntu-22.04)

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / .NET (ubuntu-22.04)

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / Analyze

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / Analyze

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / Analyze

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / Analyze

Possible null reference assignment.

Check failure on line 26 in src/Sentry/Platforms/Android/Extensions/SentryEventExtensions.cs

View workflow job for this annotation

GitHub Actions / Trim analysis

Possible null reference assignment.
}
using var stream = new MemoryStream();
using var streamWriter = new JavaOutputStreamWriter(stream);
Expand All @@ -39,8 +41,8 @@
{
if (sentryEvent.Sdk != null)
{
sentryEvent.Sdk.Name ??= "Sentry";
sentryEvent.Sdk.Version ??= "1.0.0";
sentryEvent.Sdk.Name ??= Constants.SdkName;
sentryEvent.Sdk.Version ??= SdkVersion.Instance.Version;
}
using var stream = new MemoryStream();
using var jsonWriter = new Utf8JsonWriter(stream);
Expand Down
Loading