-
Notifications
You must be signed in to change notification settings - Fork 332
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
tvOS support #570
tvOS support #570
Conversation
Previously events that were marked as disabled in the tracking plan would still be sent to Segment (and other integrations, both client side and server side). The bug was that we were accidentally checking the class name of the SEGTrackPayload instead of the `event` in the payload.
- Fixed a bug that caused an incomplete set of traits to be persisted to NSUserDefaults - On tvOS, switched the order of loading of traits and the queue so it's attempted from the file first, then NSUserDefaults - Updated the Podspec - Bumped the version to 3.2.6 - Added a tvOS deployment target version (9.0)
It looks like the Travis build failed because the Xcode version selected for the project is too old - it doesn't contain the tvOS SDK. If you bump the version to Xcode 7.3, it should build fine. |
@@ -1,6 +1,6 @@ | |||
Pod::Spec.new do |s| | |||
s.name = "Analytics" | |||
s.version = "3.2.5" | |||
s.version = "3.2.6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave this as is? We'll bump it as part of the release process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@justindhill Thanks! Some comments:
|
NSUserDefaults to only NSUserDefaults on tvOS
@justindhill no worries, I'll test this locally as well and we can skip waiting on the CI to pass (it's been a bit flaky recently). Could you reopen this PR against |
👍 re-opened as #571 into |
This PR addresses #440. It fixes compilation issues under tvOS as well as re-adding NSUserDefaults storage of the trait collection and event queue under tvOS. We check for the file on disk as normal, then fall back onto the NSUserDefaults entry if it doesn't exist. In addition, the Podspec was updated with a version bump to 3.2.6 and a new deployment target for tvOS (9.0).
Couple of things: