Skip to content

Commit 9cd625e

Browse files
philIipcipolleschi
authored andcommitted
add privacy manifest to hello world template
Summary: Changelog: [iOS][Added] this change will be included in the RN CLI. so all new apps running the RN CLI to get created will get this manifest. the reasons have been added for the following APIs: NSPrivacyAccessedAPICategoryFileTimestamp - C617.1: We use fstat and stat in a few places in the C++ layer. We use these to read information about the JavaScript files in RN. NSPrivacyAccessedAPICategoryUserDefaults - CA92.1: We access NSUserDefaults in a few places. 1) To store RTL preferences 2) As part of caching server URLs for developer mode 3) A generic native module that wraps NSUserDefaults NSPrivacyAccessedAPICategorySystemBootTime - 35F9.1: Best guess reason from RR API pulled in by boost Reviewed By: cipolleschi Differential Revision: D53682756 fbshipit-source-id: 0426fe0002a3bc8b45ef24053ac4228c9f61eb85
1 parent 7b803b2 commit 9cd625e

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

template/ios/HelloWorld.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
5DCACB8F33CDC322A6C60F78 /* libPods-HelloWorld.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-HelloWorld.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4444
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = HelloWorld/LaunchScreen.storyboard; sourceTree = "<group>"; };
4545
89C6BE57DB24E9ADA2F236DE /* Pods-HelloWorld-HelloWorldTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-HelloWorld-HelloWorldTests.release.xcconfig"; path = "Target Support Files/Pods-HelloWorld-HelloWorldTests/Pods-HelloWorld-HelloWorldTests.release.xcconfig"; sourceTree = "<group>"; };
46+
CD42C8902BDBCB100036610F /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = HelloWorld/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
4647
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
4748
/* End PBXFileReference section */
4849

@@ -86,6 +87,7 @@
8687
13B07FAE1A68108700A75B9A /* HelloWorld */ = {
8788
isa = PBXGroup;
8889
children = (
90+
CD42C8902BDBCB100036610F /* PrivacyInfo.xcprivacy */,
8991
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
9092
13B07FB01A68108700A75B9A /* AppDelegate.mm */,
9193
13B07FB51A68108700A75B9A /* Images.xcassets */,
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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>NSPrivacyCollectedDataTypes</key>
6+
<array>
7+
</array>
8+
<key>NSPrivacyAccessedAPITypes</key>
9+
<array>
10+
<dict>
11+
<key>NSPrivacyAccessedAPIType</key>
12+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
13+
<key>NSPrivacyAccessedAPITypeReasons</key>
14+
<array>
15+
<string>C617.1</string>
16+
</array>
17+
</dict>
18+
<dict>
19+
<key>NSPrivacyAccessedAPIType</key>
20+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
21+
<key>NSPrivacyAccessedAPITypeReasons</key>
22+
<array>
23+
<string>CA92.1</string>
24+
</array>
25+
</dict>
26+
<dict>
27+
<key>NSPrivacyAccessedAPIType</key>
28+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
29+
<key>NSPrivacyAccessedAPITypeReasons</key>
30+
<array>
31+
<string>35F9.1</string>
32+
</array>
33+
</dict>
34+
</array>
35+
<key>NSPrivacyTracking</key>
36+
<false/>
37+
</dict>
38+
</plist>

0 commit comments

Comments
 (0)