Skip to content

Commit

Permalink
Merge pull request #289 from weichsel/enhancement/privacyManifest
Browse files Browse the repository at this point in the history
Privacy Manifest
  • Loading branch information
weichsel authored Sep 20, 2023
2 parents 1f10742 + b4eadfa commit 5559b82
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 1 deletion.
5 changes: 4 additions & 1 deletion [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ import PackageDescription

#if canImport(Compression)
let targets: [Target] = [
.target(name: "ZIPFoundation"),
.target(name: "ZIPFoundation",
resources: [
.copy("Resources/PrivacyInfo.xcprivacy")
]),
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"])
]
#else
Expand Down
32 changes: 32 additions & 0 deletions Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?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>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string></string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string></string>
</array>
</dict>
</array>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>3B52.1</string>
</array>
</dict>
</array>
</dict>
</plist>
1 change: 1 addition & 0 deletions ZIPFoundation.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ Pod::Spec.new do |s|
s.watchos.deployment_target = '2.0'

s.source_files = 'Sources/ZIPFoundation/*.swift'
s.resource = 'Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy'
end
25 changes: 25 additions & 0 deletions ZIPFoundation.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
BA58FB162951F49400892CE7 /* Date+ZIP.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA58FB152951F49400892CE7 /* Date+ZIP.swift */; };
BA643D7A264811FB00018273 /* URL+ZIP.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA643D79264811FB00018273 /* URL+ZIP.swift */; };
BA643D7C2648131C00018273 /* Archive+Progress.swift in Sources */ = {isa = PBXBuildFile; fileRef = BA643D7B2648131C00018273 /* Archive+Progress.swift */; };
BA9AFCCA2ABB645F00A1268C /* PrivacyInfo.xcprivacy in CopyFiles */ = {isa = PBXBuildFile; fileRef = BA9AFCC82ABB643E00A1268C /* PrivacyInfo.xcprivacy */; };
BAAF13DA25CC140300070A95 /* ZIPFoundationErrorConditionTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BAAF13D925CC140300070A95 /* ZIPFoundationErrorConditionTests.swift */; };
BACE20B826F7CE6C003BA312 /* Archive+BackingConfiguration.swift in Sources */ = {isa = PBXBuildFile; fileRef = BACE20B726F7CE6C003BA312 /* Archive+BackingConfiguration.swift */; };
BACE20BA26F7D18A003BA312 /* Archive+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = BACE20B926F7D18A003BA312 /* Archive+Helpers.swift */; };
Expand Down Expand Up @@ -57,6 +58,19 @@
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
BA9AFCC92ABB645100A1268C /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 7;
files = (
BA9AFCCA2ABB645F00A1268C /* PrivacyInfo.xcprivacy in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
590A7DA526B0F8F800CBEFB4 /* Archive+ZIP64.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Archive+ZIP64.swift"; sourceTree = "<group>"; };
590A7DA726B0F91E00CBEFB4 /* Entry+ZIP64.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Entry+ZIP64.swift"; sourceTree = "<group>"; };
Expand All @@ -77,6 +91,7 @@
BA58FB152951F49400892CE7 /* Date+ZIP.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Date+ZIP.swift"; sourceTree = "<group>"; };
BA643D79264811FB00018273 /* URL+ZIP.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "URL+ZIP.swift"; sourceTree = "<group>"; };
BA643D7B2648131C00018273 /* Archive+Progress.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Archive+Progress.swift"; sourceTree = "<group>"; };
BA9AFCC82ABB643E00A1268C /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
BAAF13D925CC140300070A95 /* ZIPFoundationErrorConditionTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZIPFoundationErrorConditionTests.swift; sourceTree = "<group>"; };
BACE20B726F7CE6C003BA312 /* Archive+BackingConfiguration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Archive+BackingConfiguration.swift"; sourceTree = "<group>"; };
BACE20B926F7D18A003BA312 /* Archive+Helpers.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Archive+Helpers.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -119,6 +134,14 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
BA9AFCC72ABB642000A1268C /* Resources */ = {
isa = PBXGroup;
children = (
BA9AFCC82ABB643E00A1268C /* PrivacyInfo.xcprivacy */,
);
path = Resources;
sourceTree = "<group>";
};
OBJ_16 /* Tests */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -183,6 +206,7 @@
OBJ_8 /* ZIPFoundation */ = {
isa = PBXGroup;
children = (
BA9AFCC72ABB642000A1268C /* Resources */,
OBJ_11 /* Archive.swift */,
BACE20B726F7CE6C003BA312 /* Archive+BackingConfiguration.swift */,
BACE20B926F7D18A003BA312 /* Archive+Helpers.swift */,
Expand Down Expand Up @@ -216,6 +240,7 @@
buildPhases = (
OBJ_47 /* Sources */,
OBJ_55 /* Frameworks */,
BA9AFCC92ABB645100A1268C /* CopyFiles */,
);
buildRules = (
);
Expand Down

0 comments on commit 5559b82

Please sign in to comment.