Skip to content

Commit fa05952

Browse files
committed
privacy file
1 parent 662456f commit fa05952

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

Diff for: packages/default-storage/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ msbuild.binlog
1717
buck-out/
1818
\.buckd/
1919
*.keystore
20-
21-
20+
xcuserdata
21+
xcshareddata

Diff for: packages/default-storage/RNCAsyncStorage.podspec

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Pod::Spec.new do |s|
1515

1616
s.source = { :git => "https://github.com/react-native-async-storage/async-storage.git", :tag => "v#{s.version}" }
1717
s.source_files = "ios/**/*.{h,m,mm}"
18+
s.resource_bundles = { "RNCAsyncStorage_resources" => "ios/PrivacyInfo.xcprivacy" }
1819

1920
if fabric_enabled
2021
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'

Diff for: packages/default-storage/ios/PrivacyInfo.xcprivacy

+17
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>NSPrivacyAccessedAPICategoryFileTimestamp</string>
10+
<key>NSPrivacyAccessedAPITypeReasons</key>
11+
<array>
12+
<string>C617.1</string>
13+
</array>
14+
</dict>
15+
</array>
16+
</dict>
17+
</plist>

Diff for: packages/default-storage/ios/RNCAsyncStorage.xcodeproj/project.pbxproj

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1990B97B223993B0009E5EA1 /* RNCAsyncStorageDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1990B9402233FE3A009E5EA1 /* RNCAsyncStorageDelegate.h */; };
1212
747102F0243FFB7400D4F466 /* RNCAsyncStorage.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = B3E7B5881CC2AC0600A0062D /* RNCAsyncStorage.h */; };
1313
747102F1243FFB7400D4F466 /* RNCAsyncStorageDelegate.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 1990B9402233FE3A009E5EA1 /* RNCAsyncStorageDelegate.h */; };
14-
B3E7B58A1CC2AC0600A0062D /* RNCAsyncStorage.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNCAsyncStorage.m */; };
14+
E29A30832BA9DF6000E66900 /* RNCAsyncStorage.mm in Sources */ = {isa = PBXBuildFile; fileRef = E29A30822BA9DF6000E66900 /* RNCAsyncStorage.mm */; };
1515
/* End PBXBuildFile section */
1616

1717
/* Begin PBXCopyFilesBuildPhase section */
@@ -32,7 +32,8 @@
3232
134814201AA4EA6300B7C361 /* libRNCAsyncStorage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNCAsyncStorage.a; sourceTree = BUILT_PRODUCTS_DIR; };
3333
1990B9402233FE3A009E5EA1 /* RNCAsyncStorageDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNCAsyncStorageDelegate.h; sourceTree = "<group>"; };
3434
B3E7B5881CC2AC0600A0062D /* RNCAsyncStorage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNCAsyncStorage.h; sourceTree = "<group>"; };
35-
B3E7B5891CC2AC0600A0062D /* RNCAsyncStorage.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNCAsyncStorage.m; sourceTree = "<group>"; };
35+
E29A30822BA9DF6000E66900 /* RNCAsyncStorage.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RNCAsyncStorage.mm; sourceTree = "<group>"; };
36+
E29A30842BA9E0E600E66900 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
3637
/* End PBXFileReference section */
3738

3839
/* Begin PBXFrameworksBuildPhase section */
@@ -57,8 +58,9 @@
5758
58B511D21A9E6C8500147676 = {
5859
isa = PBXGroup;
5960
children = (
61+
E29A30842BA9E0E600E66900 /* PrivacyInfo.xcprivacy */,
6062
B3E7B5881CC2AC0600A0062D /* RNCAsyncStorage.h */,
61-
B3E7B5891CC2AC0600A0062D /* RNCAsyncStorage.m */,
63+
E29A30822BA9DF6000E66900 /* RNCAsyncStorage.mm */,
6264
1990B9402233FE3A009E5EA1 /* RNCAsyncStorageDelegate.h */,
6365
134814211AA4EA7D00B7C361 /* Products */,
6466
);
@@ -134,7 +136,7 @@
134136
isa = PBXSourcesBuildPhase;
135137
buildActionMask = 2147483647;
136138
files = (
137-
B3E7B58A1CC2AC0600A0062D /* RNCAsyncStorage.m in Sources */,
139+
E29A30832BA9DF6000E66900 /* RNCAsyncStorage.mm in Sources */,
138140
);
139141
runOnlyForDeploymentPostprocessing = 0;
140142
};

0 commit comments

Comments
 (0)