Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Offline caching #208

Merged
merged 14 commits into from
Jun 2, 2021
Merged

Feat: Offline caching #208

merged 14 commits into from
Jun 2, 2021

Conversation

bitsandfoxes
Copy link
Contributor

Setting default path on option creation.

@@ -84,6 +84,7 @@ public SentryUnityOptions()
{
// IL2CPP doesn't support Process.GetCurrentProcess().StartupTime
DetectStartupTime = StartupTimeDetectionMode.Fast;
CacheDirectoryPath = Application.persistentDataPath;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we might have multiple instances of the same game open and that would conflict here.
It isnt' a problem on mobile but it could happen on desktop. @Tyrrrz would the .NET SDK handle that today?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it won't. We decided not to add it for now.

Copy link
Member

@bruno-garcia bruno-garcia May 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. That makes me wonder if we need to solve this now, or just document this.

Note: For Desktop games: If more than one instance of your game can run at the same time, you'll need to pass a separate path explicitly.

Or something along those lines

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a terribly hard problem to solve i think

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We talked briefly and it was a bit annoying. Since crashes are sent after restart, we need a segment of the path that survives restart. So pid won't do for example. Not a hard problem but not trivial as 'add a hash of X in there' kind of trivial

@bitsandfoxes bitsandfoxes requested a review from bruno-garcia June 1, 2021 12:50
src/Sentry.Unity/SentryDefaultOptionSetter.cs Outdated Show resolved Hide resolved
src/Sentry.Unity/SentryDefaultOptionSetter.cs Outdated Show resolved Hide resolved
src/Sentry.Unity/SentryUnity.cs Outdated Show resolved Hide resolved
Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a couple of C# nits but it already LGTM!

@bruno-garcia bruno-garcia marked this pull request as ready for review June 1, 2021 18:20
@bitsandfoxes bitsandfoxes merged commit 5569fea into main Jun 2, 2021
@bitsandfoxes bitsandfoxes deleted the feat/offline-caching branch June 2, 2021 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants