aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Van Lenten <thomasvl@google.com>2024-01-29 10:41:19 -0800
committerSandy Zhang <sandyzhang@google.com>2024-02-12 14:10:45 -0500
commitcec08dc615df059d1a93fe03c4e617bba679fa69 (patch)
tree99db9e4da79b52d9a56bef75029dae1f897d02c7
parentcf87faa29b57a304a0cfe5af4e9b7a5c659c62b4 (diff)
downloadprotobuf-cec08dc615df059d1a93fe03c4e617bba679fa69.tar.gz
[ObjC] Add the privacy manifest to the ObjC CocoaPod.
There are no restrict calls, so the manifest asserts that. The CocoaPods support now ensure you are using CocoaPods >= 1.12 as that avoids all the know bugs in CocoaPods support needed to capture the Privacy Manifest in a resource bundle. PiperOrigin-RevId: 602433417
-rw-r--r--Protobuf.podspec9
1 files changed, 8 insertions, 1 deletions
diff --git a/Protobuf.podspec b/Protobuf.podspec
index fe62bdc43..9a76fba1d 100644
--- a/Protobuf.podspec
+++ b/Protobuf.podspec
@@ -10,7 +10,10 @@ Pod::Spec.new do |s|
s.homepage = 'https://github.com/protocolbuffers/protobuf'
s.license = 'BSD-3-Clause'
s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
- s.cocoapods_version = '>= 1.0'
+
+ # Ensure developers won't hit CocoaPods/CocoaPods#11402 with the resource
+ # bundle for the privacy manifest.
+ s.cocoapods_version = '>= 1.12.0'
s.source = { :git => 'https://github.com/protocolbuffers/protobuf.git',
:tag => "v#{s.version}" }
@@ -30,6 +33,10 @@ Pod::Spec.new do |s|
# left out, as it's an umbrella implementation file.
s.exclude_files = 'objectivec/GPBProtocolBuffers.m'
+ s.resource_bundle = {
+ "Protobuf_Privacy" => "PrivacyInfo.xcprivacy"
+ }
+
# Set a CPP symbol so the code knows to use framework imports.
s.user_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }