Skip to content

Commit

Permalink
Add privacy manifest. (#367)
Browse files Browse the repository at this point in the history
* Add privacy manifest.

* Add empty arrays to privacy manifest.

* Add PrivacyInfo.xcprivacy to Cocoapods resources.
  • Loading branch information
Zandor300 authored Jan 15, 2024
1 parent 949b0d5 commit cbcb39b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
2 changes: 2 additions & 0 deletions DeviceKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ Pod::Spec.new do |s|
s.source = { :git => 'https://github.com/devicekit/DeviceKit.git', :tag => s.version }
s.source_files = 'Source/Device.generated.swift'

s.resources = 'PrivacyInfo.xcprivacy'

s.requires_arc = true
end
2 changes: 2 additions & 0 deletions DeviceKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
95C7E84D1C6130DB00B0189E /* .swiftlint.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .swiftlint.yml; sourceTree = "<group>"; };
95C7E84E1C61332300B0189E /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
FC5C20FA2A5197E2009406EE /* .github */ = {isa = PBXFileReference; lastKnownFileType = folder; path = .github; sourceTree = "<group>"; };
FC6B86C22ACC1A0900E9D70B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
FCF1EAD323381E5700B609AA /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -118,6 +119,7 @@
95CBDB631BFD2B440065FC66 = {
isa = PBXGroup;
children = (
FC6B86C22ACC1A0900E9D70B /* PrivacyInfo.xcprivacy */,
FC5C20FA2A5197E2009406EE /* .github */,
95C7E83B1C6122BF00B0189E /* Source */,
95C7E8411C61241200B0189E /* Tests */,
Expand Down
11 changes: 8 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,24 @@ let package = Package(
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "DeviceKit",
targets: ["DeviceKit"])
targets: ["DeviceKit"]
)
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "DeviceKit",
dependencies: [],
path: "Source"),
path: "Source",
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "DeviceKitTests",
dependencies: ["DeviceKit"],
path: "Tests")
path: "Tests",
resources: [.copy("PrivacyInfo.xcprivacy")]
)
],
swiftLanguageVersions: [.v5]
)
24 changes: 24 additions & 0 deletions PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?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>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>85F4.1</string>
<string>E174.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
</dict>
</array>
<key>NSPrivacyTracking</key>
<false/>
</dict>
</plist>

0 comments on commit cbcb39b

Please sign in to comment.