diff --git a/DeviceKit.podspec b/DeviceKit.podspec index 5adeeb8..10e9b53 100644 --- a/DeviceKit.podspec +++ b/DeviceKit.podspec @@ -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 diff --git a/DeviceKit.xcodeproj/project.pbxproj b/DeviceKit.xcodeproj/project.pbxproj index 663db8f..21d198a 100644 --- a/DeviceKit.xcodeproj/project.pbxproj +++ b/DeviceKit.xcodeproj/project.pbxproj @@ -57,6 +57,7 @@ 95C7E84D1C6130DB00B0189E /* .swiftlint.yml */ = {isa = PBXFileReference; lastKnownFileType = text; path = .swiftlint.yml; sourceTree = ""; }; 95C7E84E1C61332300B0189E /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = ""; }; FC5C20FA2A5197E2009406EE /* .github */ = {isa = PBXFileReference; lastKnownFileType = folder; path = .github; sourceTree = ""; }; + FC6B86C22ACC1A0900E9D70B /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; FCF1EAD323381E5700B609AA /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = ""; }; /* End PBXFileReference section */ @@ -118,6 +119,7 @@ 95CBDB631BFD2B440065FC66 = { isa = PBXGroup; children = ( + FC6B86C22ACC1A0900E9D70B /* PrivacyInfo.xcprivacy */, FC5C20FA2A5197E2009406EE /* .github */, 95C7E83B1C6122BF00B0189E /* Source */, 95C7E8411C61241200B0189E /* Tests */, diff --git a/Package.swift b/Package.swift index 156ebaa..0bf4ca4 100644 --- a/Package.swift +++ b/Package.swift @@ -23,7 +23,8 @@ 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. @@ -31,11 +32,15 @@ let package = Package( .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] ) diff --git a/PrivacyInfo.xcprivacy b/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..e6de236 --- /dev/null +++ b/PrivacyInfo.xcprivacy @@ -0,0 +1,24 @@ + + + + + NSPrivacyTrackingDomains + + NSPrivacyCollectedDataTypes + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPITypeReasons + + 85F4.1 + E174.1 + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryDiskSpace + + + NSPrivacyTracking + + +