Skip to content

Commit

Permalink
Add Privacy manifest (#2045)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ujeon authored May 4, 2024
1 parent b8084fd commit 66984a2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RNImageCropPicker.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ Pod::Spec.new do |s|
s.platform = :ios, "8.0"
s.dependency 'React-Core'
s.dependency 'React-RCTImage'
s.dependency 'TOCropViewController'
s.dependency 'TOCropViewController', '~> 2.7.3'
s.resource_bundles = {
'RNImageCropPickerPrivacyInfo' => ['ios/PrivacyInfo.xcprivacy'],
}

s.subspec 'QBImagePickerController' do |qb|
qb.name = "QBImagePickerController"
Expand Down
32 changes: 32 additions & 0 deletions ios/PrivacyInfo.xcprivacy
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrivacyAccessedAPITypes</key>
<array>
<dict>
<key>NSPrivacyAccessedAPITypeReasons</key>
<array>
<string>3B52.1</string>
</array>
<key>NSPrivacyAccessedAPIType</key>
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
</dict>
</array>
<key>NSPrivacyCollectedDataTypes</key>
<array>
<dict>
<key>NSPrivacyCollectedDataType</key>
<string>NSPrivacyCollectedDataTypePhotosorVideos</string>
<key>NSPrivacyCollectedDataTypeLinked</key>
<false/>
<key>NSPrivacyCollectedDataTypeTracking</key>
<false/>
<key>NSPrivacyCollectedDataTypePurposes</key>
<array>
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
</array>
</dict>
</array>
</dict>
</plist>
2 changes: 2 additions & 0 deletions ios/imageCropPicker.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
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>"; };
34963A931D6B919800F9CA2F /* UIImage+Resize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+Resize.h"; sourceTree = "<group>"; };
34963A941D6B919800F9CA2F /* UIImage+Resize.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+Resize.m"; sourceTree = "<group>"; };
F2E728362BCE586000953E6E /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -50,6 +51,7 @@
3400A7FF1CEB54A6008A0BC7 = {
isa = PBXGroup;
children = (
F2E728362BCE586000953E6E /* PrivacyInfo.xcprivacy */,
34ECC8E3204DEEA90053BBC0 /* src */,
34434E251D6F5E5600BF5063 /* Libraries */,
3400A8091CEB54A6008A0BC7 /* Products */,
Expand Down

0 comments on commit 66984a2

Please sign in to comment.