Skip to content

Commit 66984a2

Browse files
authored
Add Privacy manifest (#2045)
* chore(ios): add privacy manifest add privacy manifest time stamp apis usage * chore(ios): update podspec add resource bundles to include PrivacyInfo as resource * chore(ios): set TOCropViewController min version to 2.7.3 TOCropViewController v2.7.3 supports privacy manifest
1 parent b8084fd commit 66984a2

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

RNImageCropPicker.podspec

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ Pod::Spec.new do |s|
1313
s.platform = :ios, "8.0"
1414
s.dependency 'React-Core'
1515
s.dependency 'React-RCTImage'
16-
s.dependency 'TOCropViewController'
16+
s.dependency 'TOCropViewController', '~> 2.7.3'
17+
s.resource_bundles = {
18+
'RNImageCropPickerPrivacyInfo' => ['ios/PrivacyInfo.xcprivacy'],
19+
}
1720

1821
s.subspec 'QBImagePickerController' do |qb|
1922
qb.name = "QBImagePickerController"

ios/PrivacyInfo.xcprivacy

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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>NSPrivacyAccessedAPITypeReasons</key>
9+
<array>
10+
<string>3B52.1</string>
11+
</array>
12+
<key>NSPrivacyAccessedAPIType</key>
13+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
14+
</dict>
15+
</array>
16+
<key>NSPrivacyCollectedDataTypes</key>
17+
<array>
18+
<dict>
19+
<key>NSPrivacyCollectedDataType</key>
20+
<string>NSPrivacyCollectedDataTypePhotosorVideos</string>
21+
<key>NSPrivacyCollectedDataTypeLinked</key>
22+
<false/>
23+
<key>NSPrivacyCollectedDataTypeTracking</key>
24+
<false/>
25+
<key>NSPrivacyCollectedDataTypePurposes</key>
26+
<array>
27+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
28+
</array>
29+
</dict>
30+
</array>
31+
</dict>
32+
</plist>

ios/imageCropPicker.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
347ACA051E4B2B2F0068D500 /* libRCTImage.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libRCTImage.a; path = "../../../../Library/Developer/Xcode/DerivedData/example-grvsvunjwoajzcfynrlckgmefufr/Build/Products/Debug-iphonesimulator/libRCTImage.a"; sourceTree = "<group>"; };
3434
34963A931D6B919800F9CA2F /* UIImage+Resize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+Resize.h"; sourceTree = "<group>"; };
3535
34963A941D6B919800F9CA2F /* UIImage+Resize.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+Resize.m"; sourceTree = "<group>"; };
36+
F2E728362BCE586000953E6E /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
3637
/* End PBXFileReference section */
3738

3839
/* Begin PBXFrameworksBuildPhase section */
@@ -50,6 +51,7 @@
5051
3400A7FF1CEB54A6008A0BC7 = {
5152
isa = PBXGroup;
5253
children = (
54+
F2E728362BCE586000953E6E /* PrivacyInfo.xcprivacy */,
5355
34ECC8E3204DEEA90053BBC0 /* src */,
5456
34434E251D6F5E5600BF5063 /* Libraries */,
5557
3400A8091CEB54A6008A0BC7 /* Products */,

0 commit comments

Comments
 (0)