-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): patch react-native-cookies with privacy policy (#5332)
### Description This PR puts the following change into a patch: https://github.com/react-native-cookies/cookies/pull/189/files - the last publish for this lib was 2 years ago and I am concerned that this will not be published in time. ### Test plan n/a ### Related issues - Related to RET-1058 ### Backwards compatibility Y ### Network scalability If a new NetworkId and/or Network are added in the future, the changes in this PR will: - [x] Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)
- Loading branch information
1 parent
c2ffb18
commit ceba569
Showing
3 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
diff --git a/node_modules/@react-native-cookies/cookies/ios/PrivacyInfo.xcprivacy b/node_modules/@react-native-cookies/cookies/ios/PrivacyInfo.xcprivacy | ||
new file mode 100644 | ||
index 0000000..6c7b849 | ||
--- /dev/null | ||
+++ b/node_modules/@react-native-cookies/cookies/ios/PrivacyInfo.xcprivacy | ||
@@ -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>NSPrivacyCollectedDataTypes</key> | ||
+ <array> | ||
+ <dict> | ||
+ <key>NSPrivacyCollectedDataType</key> | ||
+ <string>NSPrivacyCollectedDataTypeOtherDataTypes</string> | ||
+ <key>NSPrivacyCollectedDataTypeLinked</key> | ||
+ <false/> | ||
+ <key>NSPrivacyCollectedDataTypeTracking</key> | ||
+ <false/> | ||
+ <key>NSPrivacyCollectedDataTypePurposes</key> | ||
+ <array> | ||
+ <string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string> | ||
+ </array> | ||
+ </dict> | ||
+ </array> | ||
+ <key>NSPrivacyAccessedAPITypes</key> | ||
+ <array> | ||
+ <dict> | ||
+ <key>NSPrivacyAccessedAPIType</key> | ||
+ <string>NSPrivacyAccessedAPICategoryUserDefaults</string> | ||
+ <key>NSPrivacyAccessedAPITypeReasons</key> | ||
+ <array> | ||
+ <string>CA92.1</string> | ||
+ </array> | ||
+ </dict> | ||
+ </array> | ||
+</dict> | ||
+</plist> | ||
\ No newline at end of file | ||
diff --git a/node_modules/@react-native-cookies/cookies/ios/RNCookieManagerIOS.xcodeproj/project.pbxproj b/node_modules/@react-native-cookies/cookies/ios/RNCookieManagerIOS.xcodeproj/project.pbxproj | ||
index d93a306..facf90c 100644 | ||
--- a/node_modules/@react-native-cookies/cookies/ios/RNCookieManagerIOS.xcodeproj/project.pbxproj | ||
+++ b/node_modules/@react-native-cookies/cookies/ios/RNCookieManagerIOS.xcodeproj/project.pbxproj | ||
@@ -30,6 +30,7 @@ | ||
6CDA467A38779CEFE54AF652 /* Pods-RNCookieManagerIOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNCookieManagerIOS.debug.xcconfig"; path = "Target Support Files/Pods-RNCookieManagerIOS/Pods-RNCookieManagerIOS.debug.xcconfig"; sourceTree = "<group>"; }; | ||
7A3E91C9DB889DAEAB299FB5 /* Pods_RNCookieManagerIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RNCookieManagerIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
AC0CCEFD0D5DDBC08A3F9FDB /* Pods-RNCookieManagerIOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNCookieManagerIOS.release.xcconfig"; path = "Target Support Files/Pods-RNCookieManagerIOS/Pods-RNCookieManagerIOS.release.xcconfig"; sourceTree = "<group>"; }; | ||
+ F29511B12BBF92D200DF6087 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
@@ -55,6 +56,7 @@ | ||
1BD725CD1CF7795C005DBD79 = { | ||
isa = PBXGroup; | ||
children = ( | ||
+ F29511B12BBF92D200DF6087 /* PrivacyInfo.xcprivacy */, | ||
1BD725FF1CF77DD1005DBD79 /* RNCookieManagerIOS */, | ||
1BD725DB1CF77A8B005DBD79 /* Products */, | ||
71405C5FF90D2ACAB4F0366B /* Pods */, | ||
diff --git a/node_modules/@react-native-cookies/cookies/react-native-cookies.podspec b/node_modules/@react-native-cookies/cookies/react-native-cookies.podspec | ||
index ec1b754..d8954f3 100644 | ||
--- a/node_modules/@react-native-cookies/cookies/react-native-cookies.podspec | ||
+++ b/node_modules/@react-native-cookies/cookies/react-native-cookies.podspec | ||
@@ -15,4 +15,7 @@ Pod::Spec.new do |s| | ||
s.preserve_paths = "*.framework" | ||
s.source_files = "ios/**/*.{h,m}" | ||
s.dependency "React-Core" | ||
+ s.resource_bundles = { | ||
+ 'RNCookiePrivacyInfo' => ['ios/PrivacyInfo.xcprivacy'], | ||
+ } | ||
end |