diff --git a/CHANGELOG.md b/CHANGELOG.md index cbdabbe783..b5bd7b8d71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Custom SessionReplay masks in MAUI Android apps ([#4121](https://github.com/getsentry/sentry-dotnet/pull/4121)) +### Fixes + +- Work around iOS SHA1 bug ([#4143](https://github.com/getsentry/sentry-dotnet/pull/4143)) + ## 5.6.0 ### Features 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()