Skip to content

Commit 353929a

Browse files
authored
Add a privacy manifest (#1175)
Fixes #1171
1 parent 98f1250 commit 353929a

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The changelog for **SwifterSwift**. Also see the [releases](https://github.com/S
88
- `blurred(withStyle:)` should have copied the image view and blurred the new instance, but instead it performed the same functionality as `blur(withStyle:)`, making the outcome unexpected as well as being obsolete. [#1161](https://github.com/SwifterSwift/SwifterSwift/pull/1161) by [guykogus](https://github.com/guykogus)
99

1010
### Added
11+
- **Swift Package Manager**
12+
- Added a privacy manifest to comply with Apple's requirements regarding [Describing use of required reason API](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api). [#1176](https://github.com/SwifterSwift/SwifterSwift/pull/1161) by [guykogus](https://github.com/guykogus)
1113
- **Measurement**
1214
- Added `+=`, `-=`, `*=`, `/=` to add, subtract, multiply and divide measurements. [#1162](https://github.com/SwifterSwift/SwifterSwift/pull/1162) by [Roman Podymov](https://github.com/RomanPodymov)
1315
- **Sequence**

Package.swift

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ let package = Package(
1515
.library(name: "SwifterSwift", targets: ["SwifterSwift"])
1616
],
1717
targets: [
18-
.target(name: "SwifterSwift",
19-
swiftSettings: [
20-
.enableUpcomingFeature("ConciseMagicFile"),
21-
.enableUpcomingFeature("ExistentialAny"),
22-
.enableUpcomingFeature("ForwardTrailingClosures")
23-
]),
18+
.target(
19+
name: "SwifterSwift",
20+
resources: [
21+
.process("Resources/PrivacyInfo.xcprivacy")
22+
],
23+
swiftSettings: [
24+
.enableUpcomingFeature("ConciseMagicFile"),
25+
.enableUpcomingFeature("ExistentialAny"),
26+
.enableUpcomingFeature("ForwardTrailingClosures")
27+
]),
2428
.testTarget(
2529
name: "SwifterSwiftTests",
2630
dependencies: ["SwifterSwift"],
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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>NSPrivacyAccessedAPITypes</key>
6+
<array>
7+
<dict>
8+
<key>NSPrivacyAccessedAPIType</key>
9+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
10+
<key>NSPrivacyAccessedAPITypeReasons</key>
11+
<array>
12+
<string>C56D.1</string>
13+
</array>
14+
</dict>
15+
</array>
16+
</dict>
17+
</plist>

0 commit comments

Comments
 (0)