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

fix: ensure event data is sandboxed per app for all platforms #113

Merged
merged 17 commits into from
Feb 5, 2024

Conversation

justin-fiedler
Copy link
Contributor

@justin-fiedler justin-fiedler commented Feb 1, 2024

Summary

iOS - App Sandbox On (always)

Create amplitude directory in application specific /Library/Application Support

file:///Users/justin/Library/Developer/CoreSimulator/Devices/AA0CFF70-35A4-4D85-AB9A-C27A8DBF94D7/data/Containers/Data/Application/06213CC5-0BE3-4822-BF6A-44C711467CB7/Library/Application%20Support/amplitude/amplitude-swift-identify-default_instance.events.index

macOs - App Sandbox Off

Create amplitude/<bundleId> directory in shared /Library/Application Support

file:///Users/justin/Library/Application%20Support/amplitude/com.amplitude.Amplitude.AmplitudeSwiftUIExample/amplitude-swift-identify-default_instance.events.index

macOs - App Sandbox On

Create amplitude directory in application specific/Library/Containers/<bundleId>/.../Application Support

file:///Users/justin/Library/Containers/com.amplitude.Amplitude.AmplitudeSwiftUIExample/Data/Library/Application%20Support/amplitude/amplitude-swift-identify-default_instance.events.index

Testing

To toggle app sandbox in XCode for macOS
image

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?:

Copy link
Contributor

@qingzhuozhen qingzhuozhen left a comment

Choose a reason for hiding this comment

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

lg, wonder if we could have a simple unit test for this function

@justin-fiedler
Copy link
Contributor Author

@bgiori added you incase there are any concerns on this affecting Experiment integration

@justin-fiedler justin-fiedler marked this pull request as draft February 1, 2024 21:54
@justin-fiedler
Copy link
Contributor Author

justin-fiedler commented Feb 1, 2024

lg, wonder if we could have a simple unit test for this function

Thanks @qingzhuozhen, I meant this to be a draft PR for early feedback. In process of adding tests now.

@justin-fiedler justin-fiedler marked this pull request as ready for review February 2, 2024 21:06
Copy link
Collaborator

@Mercy811 Mercy811 left a comment

Choose a reason for hiding this comment

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

Thank you Justin. GLTM and love the tests.

Copy link
Contributor

@theolampert theolampert left a comment

Choose a reason for hiding this comment

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

Nice one, thanks @justin-fiedler!

@justin-fiedler justin-fiedler linked an issue Feb 5, 2024 that may be closed by this pull request
@justin-fiedler justin-fiedler merged commit 72da9f8 into main Feb 5, 2024
3 checks passed
@justin-fiedler justin-fiedler deleted the AMP-92879-sandbox-storage-location-on-macos branch February 5, 2024 17:36
github-actions bot pushed a commit that referenced this pull request Feb 5, 2024
# [1.2.0](v1.1.0...v1.2.0) (2024-02-05)

### Bug Fixes

* ensure event data is sandboxed per app for all platforms ([#113](#113)) ([72da9f8](72da9f8))
* should track coarse location by default ([#110](#110)) ([2aab265](2aab265))

### Features

* add privacy manifest for ios 17 ([#109](#109)) ([cf0ca47](cf0ca47))
Copy link

github-actions bot commented Feb 5, 2024

🎉 This PR is included in version 1.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential issue with cache file location
4 participants