Closed nitrag closed 4 months ago
Hi @nitrag let me check this for you.
@nitrag I can confirm the bug, so sorry about that, we'll make sure this won't happen again. we'll cut a patch https://github.com/PostHog/posthog-ios/pull/132 just need to add some tests and make sure that there are no side effects, thanks for opening this.
Thank you for your quick attention to this!
Version
3.2.4
Steps to Reproduce
PostHogSDK.shared.reset()
Expected Result
Only delete PostHog related data
Actual Result
PostHog wipes the entire directory!! Shame on you guys for doing this, we have valuable data in this directory.
https://github.com/PostHog/posthog-ios/blob/a12c3418f0f38511b8dc3d8cfb572681785ecf62/PostHog/PostHogStorage.swift#L17-L20