You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[tvOS] Move SEGQueue from UserDefaults to caches directory (#861)
* Stops using UserDefaults for queue on tvOS and uses NSCachesDirectory
Changes storage to fileStorage and userDefaultsStorage. Utilizes userDefaults on tvOS for information such as anonymousID and configuration, but moves tvOS's queue into the NSCachesDirectory. The reasoning is that tvOS has a 1mb limit for UserDefaults and the queue can grow rapidly in size, leading to app crashes when saving more than 1mb of data to UserDefaults.
* Adds a constant for key. Seperate cache dir and appSupport dir functions. Removes unused init.
* Adds functionality to remove old UserDefaults queue on tvOS.
Updates migrated removal block to account for tvOS now that the queue is no longer in UserDefaults. Adds back in a #else and #endif that was accidently removed.
* Adds tvOS unit test target
* Adds new AnalyticsTestsTVOS scheme
* Updates pods to include all test pods for AnalyticsTestsTVOS
* Fixes unit test import for QuickTVOS
* Add tvOS options for make file
* Enabled code coverage on tvOS tests
* Fix up unit test warning
"result of expect is never nil"
* Adds test to ensure that UserDefaults SEGQueue is cleared on initialization for tvOS & iOS
* Adds test to ensure SEGQueue is empty when missing form file storage
* Reverts unnecessary import for QuickTVOS
* Adds test for FileStorage caches directory helper
* Fix up: Adds SwiftTryCatch pod to tvOS test target
* Fix up makefile to have correct build target for build-ios & build-tvos
* Fix up: updates xcodebuild destination to match devices found on circleci
* Break up ios and tvos build/test steps
* Circleci: Cache pods
* Fix up: tvOS test build
* Fix up spacing
* Fix up flaky unit test
Co-authored-by: Connor Ricks <[email protected]>
0 commit comments