Skip to content

Commit

Permalink
Merge pull request #48 from CH3COOH/master
Browse files Browse the repository at this point in the history
Support for Privacy Manifest
  • Loading branch information
takecian authored Apr 9, 2024
2 parents 3cf8ff5 + a300be5 commit 287b6b3
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ let package = Package(
.target(
name: "SwiftRater",
path: "SwiftRater",
exclude: ["Info.plist"]
exclude: ["Info.plist"],
resources: [.copy("PrivacyInfo.xcprivacy")]
),
.testTarget(
name: "SwiftRaterTests",
Expand Down
1 change: 1 addition & 0 deletions SwiftRater.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ SwiftRater is a class that you can drop into any iPhone app that will help remin

s.source_files = 'SwiftRater/**/*'
s.exclude_files = 'SwiftRater/**/*.{plist}'
s.resource_bundles = {"SwiftRater" => ["SwiftRater/PrivacyInfo.xcprivacy"]}
end
17 changes: 17 additions & 0 deletions SwiftRater.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
645FF6881E8B8D6A001D5563 /* SwiftRaterLocalization.strings in Resources */ = {isa = PBXBuildFile; fileRef = 645FF68A1E8B8D6A001D5563 /* SwiftRaterLocalization.strings */; };
645FF6951E8B9053001D5563 /* SwiftRaterErrorCode.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645FF6941E8B9053001D5563 /* SwiftRaterErrorCode.swift */; };
645FF6971E8B906E001D5563 /* SwiftRaterError.swift in Sources */ = {isa = PBXBuildFile; fileRef = 645FF6961E8B906E001D5563 /* SwiftRaterError.swift */; };
AA54CF342B86FAE0006BF411 /* PrivacyInfo.xcprivacy in CopyFiles */ = {isa = PBXBuildFile; fileRef = AA54CF322B86FA69006BF411 /* PrivacyInfo.xcprivacy */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -28,6 +29,19 @@
};
/* End PBXContainerItemProxy section */

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

/* Begin PBXFileReference section */
645FF6651E8B8CD0001D5563 /* SwiftRater.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SwiftRater.framework; sourceTree = BUILT_PRODUCTS_DIR; };
645FF6681E8B8CD0001D5563 /* SwiftRater.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SwiftRater.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -70,6 +84,7 @@
64B62F591E8E49C0000FFF09 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/SwiftRaterLocalization.strings; sourceTree = "<group>"; };
64B62F5A1E8E49CC000FFF09 /* ms */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ms; path = ms.lproj/SwiftRaterLocalization.strings; sourceTree = "<group>"; };
AA4717E21EA3CAC500C4EBC4 /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/SwiftRaterLocalization.strings"; sourceTree = "<group>"; };
AA54CF322B86FA69006BF411 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -119,6 +134,7 @@
645FF6821E8B8D0B001D5563 /* UsageDataManager.swift */,
645FF6681E8B8CD0001D5563 /* SwiftRater.h */,
645FF6691E8B8CD0001D5563 /* Info.plist */,
AA54CF322B86FA69006BF411 /* PrivacyInfo.xcprivacy */,
645FF68A1E8B8D6A001D5563 /* SwiftRaterLocalization.strings */,
);
path = SwiftRater;
Expand Down Expand Up @@ -155,6 +171,7 @@
645FF6611E8B8CD0001D5563 /* Frameworks */,
645FF6621E8B8CD0001D5563 /* Headers */,
645FF6631E8B8CD0001D5563 /* Resources */,
AA54CF332B86FAD9006BF411 /* CopyFiles */,
);
buildRules = (
);
Expand Down
23 changes: 23 additions & 0 deletions SwiftRater/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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>NSPrivacyTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypes</key>
<array/>
<key>NSPrivacyTrackingDomains</key>
<array/>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>CA92.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
</dict>
</array>
</dict>
</plist>

0 comments on commit 287b6b3

Please sign in to comment.