Skip to content

Commit

Permalink
add xcprivacy to all subspecs
Browse files Browse the repository at this point in the history
  • Loading branch information
HannahShiSFB committed Mar 15, 2024
1 parent 16e2195 commit 4405cdf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions absl/abseil.podspec.gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
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.
Expand Down Expand Up @@ -191,6 +196,9 @@ 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):
Expand Down

0 comments on commit 4405cdf

Please sign in to comment.