From 8e4b7fb4cf1679465f51fae6a656a60dcb3bea9e 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 native glog Summary: Changelog: [Internal] add this to the framework's resource bundle from the audit there was a callsite to fstat in our forked copy of glog, so use C617.1. callsites: - glog/src/logging.cc 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: cipolleschi Differential Revision: D55625116 fbshipit-source-id: b10ea2dad2238cc85b5fe30df56269a5808a35b5 --- .../third-party-podspecs/glog.podspec | 1 + .../glog/PrivacyInfo.xcprivacy | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 packages/react-native/third-party-podspecs/glog/PrivacyInfo.xcprivacy diff --git a/packages/react-native/third-party-podspecs/glog.podspec b/packages/react-native/third-party-podspecs/glog.podspec index 6fbda3a9427..ee1b5fbb605 100644 --- a/packages/react-native/third-party-podspecs/glog.podspec +++ b/packages/react-native/third-party-podspecs/glog.podspec @@ -29,6 +29,7 @@ Pod::Spec.new do |spec| 'src/base/*.h' spec.exclude_files = "src/windows/**/*" spec.compiler_flags = '-Wno-shorten-64-to-32' + spec.resource_bundles = {'glog_privacy' => 'glog/PrivacyInfo.xcprivacy'} spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO", diff --git a/packages/react-native/third-party-podspecs/glog/PrivacyInfo.xcprivacy b/packages/react-native/third-party-podspecs/glog/PrivacyInfo.xcprivacy new file mode 100644 index 00000000000..6be0f26360c --- /dev/null +++ b/packages/react-native/third-party-podspecs/glog/PrivacyInfo.xcprivacy @@ -0,0 +1,21 @@ + + + + + NSPrivacyAccessedAPITypes + + + NSPrivacyAccessedAPIType + NSPrivacyAccessedAPICategoryFileTimestamp + NSPrivacyAccessedAPITypeReasons + + C617.1 + + + + NSPrivacyCollectedDataTypes + + NSPrivacyTracking + + +