Skip to content

Commit

Permalink
add Apple Privacy Manifest (PrivacyInfo.xcprivacy) (#14)
Browse files Browse the repository at this point in the history
* add Apple Privacy Manifest (PrivacyInfo.xcprivacy)

* update version
  • Loading branch information
goenning authored Oct 7, 2023
1 parent 422c566 commit 64e60d8
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Aptabase.podspec
Original file line number Diff line number Diff line change
@@ -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' }
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.3

* Added Privacy Manifest (PrivacyInfo.xcprivacy)

## 0.3.2

* Dropped support for Swift 5.6
Expand Down
4 changes: 3 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 0 additions & 2 deletions Sources/Aptabase/Aptabase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import TVUIKit

/// The Aptabase client used to track events.
public class Aptabase: NSObject {
private static var sdkVersion = "[email protected]";

private var env = EnvironmentInfo.current()
private var client: AptabaseClient?

Expand Down
2 changes: 1 addition & 1 deletion Sources/Aptabase/AptabaseClient.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

internal class AptabaseClient {
private static let sdkVersion = "[email protected].2";
private static let sdkVersion = "[email protected].3";
// Session expires after 1 hour of inactivity
private static let sessionTimeout: TimeInterval = 1 * 60 * 60

Expand Down
23 changes: 23 additions & 0 deletions Sources/Aptabase/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
</array>
</dict>
</array>
</dict>
</plist>

0 comments on commit 64e60d8

Please sign in to comment.