Skip to content

Commit

Permalink
Revert "Set xccurrentversion owners (#748)"
Browse files Browse the repository at this point in the history
This reverts commit 433a260.
  • Loading branch information
thiagohmcruz committed Aug 9, 2023
1 parent 433a260 commit f4d9d02
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions rules/precompiled_apple_resource_bundle.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -198,27 +198,20 @@ def _precompiled_apple_resource_bundle_impl(ctx):

# See https://github.com/bazel-ios/rules_ios/pull/747 for context
xccurrentversions = [
f
(None, None, depset([f]))
for resource_files in ctx.attr.resources
for f in resource_files.files.to_list()
if f.extension == "xccurrentversion"
]

return [
AppleResourceInfo(
datamodels = [
(None, None, depset(xccurrentversions)),
],
datamodels = xccurrentversions,
unowned_resources = depset(),
owners = depset(
[
(output_bundle_dir.short_path, ctx.label),
(output_plist.short_path, ctx.label),
] + [
(f.short_path, ctx.label)
for f in xccurrentversions
],
),
owners = depset([
(output_bundle_dir.short_path, ctx.label),
(output_plist.short_path, ctx.label),
]),
# This is a list of the resources to propagate without changing further
# In this case the tuple parameters are:
# 1. The final directory the resources should end up in, ex Foo.bundle
Expand Down

0 comments on commit f4d9d02

Please sign in to comment.