mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 20:14:23 +08:00
PR #1643: add xcprivacy to all subspecs
Imported from GitHub PR https://github.com/abseil/abseil-cpp/pull/1643 Addressing comments at https://github.com/abseil/abseil-cpp/pull/1604/#pullrequestreview-1937008657 Add a xcprivacy subspec and have all other subspecs depend on it (option 1) Didn't going with option 3 because there are several levels of subspecs in abseil podspec, it's difficult to track whether all of them directly or indirectly depends on abseil/base/config or ensure they will continue to depend on it. Example of generated podsped: https://gist.github.com/HannahShiSFB/15d8fb6aa637f2781b7be4218d080f11 Merge4405cdfe71into4539c540feMerging this change closes #1643 COPYBARA_INTEGRATE_REVIEW=https://github.com/abseil/abseil-cpp/pull/1643 from HannahShiSFB:privacy-manifests4405cdfe71PiperOrigin-RevId: 616914674 Change-Id: If56d5a4f1a7cc6f9fac7a2d8e95b55d140e645fc
This commit is contained in:
committed by
Copybara-Service
parent
50a8867335
commit
c1d4e4b98d
@@ -47,6 +47,11 @@ Pod::Spec.new do |s|
|
||||
s.osx.deployment_target = '10.11'
|
||||
s.tvos.deployment_target = '9.0'
|
||||
s.watchos.deployment_target = '2.0'
|
||||
s.subspec 'xcprivacy' do |ss|
|
||||
ss.resource_bundles = {
|
||||
ss.module_name => 'PrivacyInfo.xcprivacy',
|
||||
}
|
||||
end
|
||||
"""
|
||||
|
||||
# Rule object representing the rule of Bazel BUILD.
|
||||
@@ -191,6 +196,12 @@ def write_podspec_rule(f, rule, depth):
|
||||
name = get_spec_name(dep.replace(":", "/"))
|
||||
f.write("{indent}{var}.dependency '{dep}'\n".format(
|
||||
indent=indent, var=spec_var, dep=name))
|
||||
# Writes dependency to xcprivacy
|
||||
f.write(
|
||||
"{indent}{var}.dependency '{dep}'\n".format(
|
||||
indent=indent, var=spec_var, dep="abseil/xcprivacy"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
def write_indented_list(f, leading, values):
|
||||
|
||||
Reference in New Issue
Block a user