From 026e9c758ccef3bac6593a57c2c28402d4776f90 Mon Sep 17 00:00:00 2001 From: ujeon Date: Fri, 5 Apr 2024 11:10:13 +0900 Subject: [PATCH 1/2] chore(ios): add privacy manifest add privacy manifest about NSUserDefaults usage --- ios/PrivacyInfo.xcprivacy | 32 +++++++++++++++++++ .../project.pbxproj | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 ios/PrivacyInfo.xcprivacy diff --git a/ios/PrivacyInfo.xcprivacy b/ios/PrivacyInfo.xcprivacy new file mode 100644 index 0000000..4ce9f2a --- /dev/null +++ b/ios/PrivacyInfo.xcprivacy @@ -0,0 +1,32 @@ + + + + + NSPrivacyCollectedDataTypes + + + NSPrivacyCollectedDataType + NSPrivacyCollectedDataTypeOtherDataTypes + NSPrivacyCollectedDataTypeLinked + + NSPrivacyCollectedDataTypeTracking + + NSPrivacyCollectedDataTypePurposes + + NSPrivacyCollectedDataTypePurposeAppFunctionality + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryUserDefaults + NSPrivacyAccessedAPITypeReasons + + CA92.1 + + + + + diff --git a/ios/RNCookieManagerIOS.xcodeproj/project.pbxproj b/ios/RNCookieManagerIOS.xcodeproj/project.pbxproj index d93a306..3166322 100644 --- a/ios/RNCookieManagerIOS.xcodeproj/project.pbxproj +++ b/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 = ""; }; 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 = ""; }; + F29511B12BBF92D200DF6087 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -55,6 +56,7 @@ 1BD725CD1CF7795C005DBD79 = { isa = PBXGroup; children = ( + F29511B12BBF92D200DF6087 /* PrivacyInfo.xcprivacy */, 1BD725FF1CF77DD1005DBD79 /* RNCookieManagerIOS */, 1BD725DB1CF77A8B005DBD79 /* Products */, 71405C5FF90D2ACAB4F0366B /* Pods */, From f46cea94a99c861643a6357c166bd9b71fc209a1 Mon Sep 17 00:00:00 2001 From: ujeon Date: Fri, 5 Apr 2024 13:16:19 +0900 Subject: [PATCH 2/2] chore(ios): update podspec add resource bundles to include PrivacyInfo as resource --- react-native-cookies.podspec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/react-native-cookies.podspec b/react-native-cookies.podspec index ec1b754..d8954f3 100644 --- a/react-native-cookies.podspec +++ b/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