diff --git a/PianoAnalytics-AppExtension.podspec b/PianoAnalytics-AppExtension.podspec index 414613c..20732ce 100644 --- a/PianoAnalytics-AppExtension.podspec +++ b/PianoAnalytics-AppExtension.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'PianoAnalytics-AppExtension' - s.version = '3.0.9' + s.version = '3.0.10' s.summary = 'Piano Analytics solution for extension Apple devices' s.homepage = 'https://github.com/at-internet/piano-analytics-apple' s.documentation_url = 'https://developers.atinternet-solutions.com/piano-analytics' diff --git a/PianoAnalytics.podspec b/PianoAnalytics.podspec index 14fe7c9..65809cb 100644 --- a/PianoAnalytics.podspec +++ b/PianoAnalytics.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'PianoAnalytics' - s.version = '3.0.9' + s.version = '3.0.10' s.summary = 'Piano Analytics library for Apple devices' s.homepage = 'https://github.com/at-internet/piano-analytics-apple' s.documentation_url = 'https://developers.atinternet-solutions.com/piano-analytics' diff --git a/Sources/PianoAnalytics/Steps/StorageStep.swift b/Sources/PianoAnalytics/Steps/StorageStep.swift index 70d9719..cce34e5 100644 --- a/Sources/PianoAnalytics/Steps/StorageStep.swift +++ b/Sources/PianoAnalytics/Steps/StorageStep.swift @@ -78,7 +78,11 @@ final class StorageStep: Step { private final func readData() -> [String: BuiltModel] { let fileManager = FileManager.default + #if os(tvOS) + let url = fileManager.urls(for: .cachesDirectory, in: .userDomainMask)[0] + #else let url = fileManager.urls(for: .documentDirectory, in: .userDomainMask)[0] + #endif var storedData = [String: BuiltModel]() do {