From 2b9da096eec41f05757713adb5b0b61b59960a14 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Fri, 25 Apr 2025 12:47:25 -0400 Subject: [PATCH 1/2] work around iOS SHA1 bug --- src/Sentry/SentryOptions.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Sentry/SentryOptions.cs b/src/Sentry/SentryOptions.cs index e70f16e70b..a3bba2f9c9 100644 --- a/src/Sentry/SentryOptions.cs +++ b/src/Sentry/SentryOptions.cs @@ -1816,8 +1816,11 @@ internal void SetupLogging() { return null; } - +#if IOS || ANDROID // on iOS or Android the app is already sandboxed so there's no risk of sending data from 1 app to another Sentry's DSN + return Path.Combine(CacheDirectoryPath, "Sentry"); +#else return Path.Combine(CacheDirectoryPath, "Sentry", Dsn.GetHashString()); +#endif } internal string? TryGetProcessSpecificCacheDirectoryPath() From b00c817c7482bbb86a1377938dcc99dc83640d10 Mon Sep 17 00:00:00 2001 From: James Crosswell Date: Sun, 27 Apr 2025 13:14:17 +1200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b45fefa4d..5595102794 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Fixes + +- Work around iOS SHA1 bug ([#4143](https://github.com/getsentry/sentry-dotnet/pull/4143)) + ## 5.6.0 ### Features