From 54c9748bb1631009ff3b1069d159e9abd328fafc Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Mon, 22 Apr 2024 16:15:53 -0700 Subject: [PATCH] add privacy manifest to React-cxxreact Summary: Changelog: [Internal] add this to the framework's resource bundle reasons: - C617.1 (JSBigString) current problem with this method is that the required reasons are not currently be aggregated during app store review, so those need to live in the app's. but go ahead and add it here for now, i think apple will try to fix it. Reviewed By: sammy-SC Differential Revision: D55624716 fbshipit-source-id: 400e9852a64e7f9fd9e32225b199f2664a069fc2 --- .../cxxreact/PrivacyInfo.xcprivacy | 21 +++++++++++++++++++ .../cxxreact/React-cxxreact.podspec | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 packages/react-native/ReactCommon/cxxreact/PrivacyInfo.xcprivacy diff --git a/packages/react-native/ReactCommon/cxxreact/PrivacyInfo.xcprivacy b/packages/react-native/ReactCommon/cxxreact/PrivacyInfo.xcprivacy new file mode 100644 index 00000000000..6be0f26360c --- /dev/null +++ b/packages/react-native/ReactCommon/cxxreact/PrivacyInfo.xcprivacy @@ -0,0 +1,21 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + + diff --git a/packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec b/packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec index 4cbcd4919e5..16895e1d78f 100644 --- a/packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec +++ b/packages/react-native/ReactCommon/cxxreact/React-cxxreact.podspec @@ -53,6 +53,8 @@ Pod::Spec.new do |s| s.dependency "React-logger", version s.dependency "React-debug", version + s.resource_bundles = {'React-cxxreact_privacy' => 'PrivacyInfo.xcprivacy'} + if ENV['USE_HERMES'] == nil || ENV['USE_HERMES'] == "1" s.dependency 'hermes-engine' end