Skip to content

Commit cbcb39b

Browse files
authored
Add privacy manifest. (#367)
* Add privacy manifest. * Add empty arrays to privacy manifest. * Add PrivacyInfo.xcprivacy to Cocoapods resources.
1 parent 949b0d5 commit cbcb39b

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

DeviceKit.podspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ Pod::Spec.new do |s|
2222
s.source = { :git => 'https://github.com/devicekit/DeviceKit.git', :tag => s.version }
2323
s.source_files = 'Source/Device.generated.swift'
2424

25+
s.resources = 'PrivacyInfo.xcprivacy'
26+
2527
s.requires_arc = true
2628
end

DeviceKit.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
95C7E84D1C6130DB00B0189E /* .swiftlint.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .swiftlint.yml; sourceTree = "<group>"; };
5858
95C7E84E1C61332300B0189E /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
5959
FC5C20FA2A5197E2009406EE /* .github */ = {isa = PBXFileReference; lastKnownFileType = folder; path = .github; sourceTree = "<group>"; };
60+
FC6B86C22ACC1A0900E9D70B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
6061
FCF1EAD323381E5700B609AA /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = "<group>"; };
6162
/* End PBXFileReference section */
6263

@@ -118,6 +119,7 @@
118119
95CBDB631BFD2B440065FC66 = {
119120
isa = PBXGroup;
120121
children = (
122+
FC6B86C22ACC1A0900E9D70B /* PrivacyInfo.xcprivacy */,
121123
FC5C20FA2A5197E2009406EE /* .github */,
122124
95C7E83B1C6122BF00B0189E /* Source */,
123125
95C7E8411C61241200B0189E /* Tests */,

Package.swift

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,24 @@ let package = Package(
2323
// Products define the executables and libraries produced by a package, and make them visible to other packages.
2424
.library(
2525
name: "DeviceKit",
26-
targets: ["DeviceKit"])
26+
targets: ["DeviceKit"]
27+
)
2728
],
2829
targets: [
2930
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
3031
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
3132
.target(
3233
name: "DeviceKit",
3334
dependencies: [],
34-
path: "Source"),
35+
path: "Source",
36+
resources: [.copy("PrivacyInfo.xcprivacy")]
37+
),
3538
.testTarget(
3639
name: "DeviceKitTests",
3740
dependencies: ["DeviceKit"],
38-
path: "Tests")
41+
path: "Tests",
42+
resources: [.copy("PrivacyInfo.xcprivacy")]
43+
)
3944
],
4045
swiftLanguageVersions: [.v5]
4146
)

PrivacyInfo.xcprivacy

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSPrivacyTrackingDomains</key>
6+
<array/>
7+
<key>NSPrivacyCollectedDataTypes</key>
8+
<array/>
9+
<key>NSPrivacyAccessedAPITypes</key>
10+
<array>
11+
<dict>
12+
<key>NSPrivacyAccessedAPITypeReasons</key>
13+
<array>
14+
<string>85F4.1</string>
15+
<string>E174.1</string>
16+
</array>
17+
<key>NSPrivacyAccessedAPIType</key>
18+
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
19+
</dict>
20+
</array>
21+
<key>NSPrivacyTracking</key>
22+
<false/>
23+
</dict>
24+
</plist>

0 commit comments

Comments
 (0)