add Apple Privacy Manifest (PrivacyInfo.xcprivacy) (#14)

* add Apple Privacy Manifest (PrivacyInfo.xcprivacy)

* update version
This commit is contained in:
Guilherme Oenning
2023-10-07 13:45:07 +01:00
committed by GitHub
parent 422c5663de
commit 64e60d829c
6 changed files with 32 additions and 5 deletions

View File

@@ -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' }

View File

@@ -1,3 +1,7 @@
## 0.3.3
* Added Privacy Manifest (PrivacyInfo.xcprivacy)
## 0.3.2
* Dropped support for Swift 5.6

View File

@@ -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"]

View File

@@ -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?

View File

@@ -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

View File

@@ -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>