Skip to content

Commit 9d1bc10

Browse files
thomasvlzhangskz
authored andcommitted
[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
1 parent cec08dc commit 9d1bc10

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Protobuf-C++.podspec

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ Pod::Spec.new do |s|
55
s.homepage = 'https://github.com/google/protobuf'
66
s.license = 'BSD-3-Clause'
77
s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
8-
s.cocoapods_version = '>= 1.0'
8+
9+
# Ensure developers won't hit CocoaPods/CocoaPods#11402 with the resource
10+
# bundle for the privacy manifest.
11+
s.cocoapods_version = '>= 1.12.0'
912

1013
s.source = { :git => 'https://github.com/google/protobuf.git',
1114
:tag => "v#{s.version}" }
@@ -23,6 +26,10 @@ Pod::Spec.new do |s|
2326
'src/google/protobuf/map_test_util*.{h,cc,inc}',
2427
'src/google/protobuf/reflection_tester.{h,cc}'
2528

29+
s.resource_bundle = {
30+
"Protobuf-C++_Privacy" => "PrivacyInfo.xcprivacy"
31+
}
32+
2633
s.header_mappings_dir = 'src'
2734

2835
s.ios.deployment_target = '12.0'

0 commit comments

Comments
 (0)