Skip to content

Commit

Permalink
Add PrivacyInfo to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Mar 18, 2024
1 parent 80dea04 commit d15bb03
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions APNGKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/onevcat/APNGKit.git", :tag => s.version }

s.source_files = "Source/**/*.swift"
s.resource_bundles = {"APNGKit" => ["Source/APNGKit/PrivacyInfo.xcprivacy"]}

s.swift_versions = ["5.3", "5.4", "5.5"]
s.dependency "Delegate", "~> 1.1"
end
28 changes: 28 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// swift-tools-version:5.9
import PackageDescription

let package = Package(
name: "APNGKit",
platforms: [.macOS(.v10_11), .iOS(.v9), .tvOS(.v9)],
products: [
.library(name: "APNGKit", targets: ["APNGKit"])
],
dependencies: [
.package(name: "Delegate", url: "https://github.com/onevcat/Delegate.git", .upToNextMajor(from: "1.1.1"))
],
targets: [
.target(
name: "APNGKit",
dependencies: ["Delegate"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "APNGKitTests",
dependencies: ["APNGKit"],
resources: [
.copy("Resources/SpecTesting"),
.copy("Resources/General"),
]
)
]
)
14 changes: 14 additions & 0 deletions Source/APNGKit/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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>NSPrivacyAccessedAPITypes</key>
<array/>
<key>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
</dict>
</plist>

0 comments on commit d15bb03

Please sign in to comment.