Skip to content

Commit a04a10a

Browse files
authored
work around iOS SHA1 bug (#4143)
1 parent 85c56e2 commit a04a10a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
- Custom SessionReplay masks in MAUI Android apps ([#4121](https://github.com/getsentry/sentry-dotnet/pull/4121))
88

9+
### Fixes
10+
11+
- Work around iOS SHA1 bug ([#4143](https://github.com/getsentry/sentry-dotnet/pull/4143))
12+
913
## 5.6.0
1014

1115
### Features

src/Sentry/SentryOptions.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,8 +1816,11 @@ internal void SetupLogging()
18161816
{
18171817
return null;
18181818
}
1819-
1819+
#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
1820+
return Path.Combine(CacheDirectoryPath, "Sentry");
1821+
#else
18201822
return Path.Combine(CacheDirectoryPath, "Sentry", Dsn.GetHashString());
1823+
#endif
18211824
}
18221825

18231826
internal string? TryGetProcessSpecificCacheDirectoryPath()

0 commit comments

Comments
 (0)