Skip to content

Commit bf70a3f

Browse files
tgoynejedelbo
authored andcommitted
Add a privacy manifest to the Swift package (#7570)
(cherry picked from commit 9e86d1f)
1 parent 7e37967 commit bf70a3f

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
### Fixed
44
* Clearing a nested collection may end with a crash ([#7556](https://github.com/realm/realm-core/issues/7556), since v14.0.0)
5+
* Add a privacy manifest to the Swift package ([Swift #8535](https://github.com/realm/realm-swift/issues/8535)).
56

67
### Compatibility
78
* Fileformat: Generates files with format v24. Reads and automatically upgrade from fileformat v10. If you want to upgrade from an earlier file format version you will have to use RealmCore v13.x.y or earlier.

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ let package = Package(
420420
"swift",
421421
"win32",
422422
] + syncExcludes + syncServerSources) as [String],
423+
resources: [
424+
.copy("realm/PrivacyInfo.xcprivacy")
425+
],
423426
publicHeadersPath: ".",
424427
cxxSettings: ([
425428
.headerSearchPath("external"),

src/realm/PrivacyInfo.xcprivacy

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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>C617.1</string>
15+
</array>
16+
<key>NSPrivacyAccessedAPIType</key>
17+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
18+
</dict>
19+
<dict>
20+
<key>NSPrivacyAccessedAPITypeReasons</key>
21+
<array>
22+
<string>E174.1</string>
23+
</array>
24+
<key>NSPrivacyAccessedAPIType</key>
25+
<string>NSPrivacyAccessedAPICategoryDiskSpace</string>
26+
</dict>
27+
</array>
28+
<key>NSPrivacyTracking</key>
29+
<false/>
30+
</dict>
31+
</plist>

0 commit comments

Comments
 (0)