Skip to content

Commit e7888a1

Browse files
zhangskzthomasvl
andauthored
[CPP] Add the privacy manifest to the C++ CocoaPod. (#15664)
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 Co-authored-by: Thomas Van Lenten <[email protected]>
1 parent 935fcb7 commit e7888a1

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Protobuf-C++.podspec

Lines changed: 8 additions & 1 deletion
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' => '[email protected]' }
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)