diff options
author | Thomas Van Lenten <thomasvl@google.com> | 2024-01-29 11:12:10 -0800 |
---|---|---|
committer | Sandy Zhang <sandyzhang@google.com> | 2024-02-12 14:11:09 -0500 |
commit | 9d1bc1041be5fefa82e8c9823e79c263f6d8b2ac (patch) | |
tree | 0a75e96af2d465af06dc659b835f98b16d8efbde | |
parent | cec08dc615df059d1a93fe03c4e617bba679fa69 (diff) | |
download | protobuf-9d1bc1041be5fefa82e8c9823e79c263f6d8b2ac.tar.gz |
[CPP] Add the privacy manifest to the C++ CocoaPod.
There are no restrict calls, so the manifest asserts that.
The CocoaPods support now ensures 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: 602443703
-rw-r--r-- | Protobuf-C++.podspec | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Protobuf-C++.podspec b/Protobuf-C++.podspec index 1600f710a..8c0e99e3e 100644 --- a/Protobuf-C++.podspec +++ b/Protobuf-C++.podspec @@ -5,7 +5,10 @@ Pod::Spec.new do |s| s.homepage = 'https://github.com/google/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/google/protobuf.git', :tag => "v#{s.version}" } @@ -23,6 +26,10 @@ Pod::Spec.new do |s| 'src/google/protobuf/map_test_util*.{h,cc,inc}', 'src/google/protobuf/reflection_tester.{h,cc}' + s.resource_bundle = { + "Protobuf-C++_Privacy" => "PrivacyInfo.xcprivacy" + } + s.header_mappings_dir = 'src' s.ios.deployment_target = '12.0' |