diff --git a/Aptabase.podspec b/Aptabase.podspec index 4300ca5..3ab02f8 100644 --- a/Aptabase.podspec +++ b/Aptabase.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Aptabase' - s.version = '0.3.2' + s.version = '0.3.3' s.summary = 'Swift SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps' s.homepage = 'https://aptabase.com' s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/CHANGELOG.md b/CHANGELOG.md index f9f2dcf..56f870f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.3.3 + +* Added Privacy Manifest (PrivacyInfo.xcprivacy) + ## 0.3.2 * Dropped support for Swift 5.6 diff --git a/Package.swift b/Package.swift index 756cae6..6e8ef65 100644 --- a/Package.swift +++ b/Package.swift @@ -24,7 +24,9 @@ let package = Package( // Targets can depend on other targets in this package, and on products in packages this package depends on. .target( name: "Aptabase", - dependencies: []), + resources: [ + .copy("PrivacyInfo.xcprivacy") + ]), .testTarget( name: "AptabaseTests", dependencies: ["Aptabase"] diff --git a/Sources/Aptabase/Aptabase.swift b/Sources/Aptabase/Aptabase.swift index c842c41..dc15dac 100644 --- a/Sources/Aptabase/Aptabase.swift +++ b/Sources/Aptabase/Aptabase.swift @@ -12,8 +12,6 @@ import TVUIKit /// The Aptabase client used to track events. public class Aptabase: NSObject { - private static var sdkVersion = "aptabase-swift@0.3.2"; - private var env = EnvironmentInfo.current() private var client: AptabaseClient? diff --git a/Sources/Aptabase/AptabaseClient.swift b/Sources/Aptabase/AptabaseClient.swift index d2c1505..134878b 100644 --- a/Sources/Aptabase/AptabaseClient.swift +++ b/Sources/Aptabase/AptabaseClient.swift @@ -1,7 +1,7 @@ import Foundation internal class AptabaseClient { - private static let sdkVersion = "aptabase-swift@0.3.2"; + private static let sdkVersion = "aptabase-swift@0.3.3"; // Session expires after 1 hour of inactivity private static let sessionTimeout: TimeInterval = 1 * 60 * 60 diff --git a/Sources/Aptabase/PrivacyInfo.xcprivacy b/Sources/Aptabase/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..d658eec --- /dev/null +++ b/Sources/Aptabase/PrivacyInfo.xcprivacy @@ -0,0 +1,23 @@ + + + + + NSPrivacyTracking + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeProductInteraction + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAnalytics + + + + +