Skip to content

Commit

Permalink
Automated rollback of commit 61a91b8.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 667647893
Change-Id: I04bfa2d4ed24c8be80858cb91cf04d3eac7d3358
  • Loading branch information
ahumesky authored and copybara-github committed Aug 26, 2024
1 parent ee0f53d commit 7c13f90
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 deletions.
27 changes: 9 additions & 18 deletions rules/data_binding.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,8 @@ def _process(
if not enable_data_binding:
db_info[_PROVIDERS] = [
DataBindingV2Info(
setter_stores = depset(transitive = [info.setter_stores for info in exports]),
class_infos = depset(transitive = [info.class_infos for info in exports]),
transitive_br_files = depset(transitive =
[info.transitive_br_files for info in deps] +
[info.transitive_br_files for info in exports]),
databinding_v2_providers_in_deps = deps,
databinding_v2_providers_in_exports = exports,
),
]
return struct(**db_info)
Expand Down Expand Up @@ -296,19 +293,13 @@ def _process(

db_info[_PROVIDERS] = [
DataBindingV2Info(
setter_stores = depset(
direct = [setter_store_out] if setter_store_out else [],
transitive = [info.setter_stores for info in exports],
),
class_infos = depset(
direct = [class_info] if class_info else [],
transitive = [info.class_infos for info in exports],
),
transitive_br_files = depset(
direct = [br_out] if br_out else [],
transitive = [info.transitive_br_files for info in deps] +
[info.transitive_br_files for info in exports],
),
setter_store_file = setter_store_out,
class_info_file = class_info,
br_file = br_out,
label = str(ctx.label),
java_package = java_package,
databinding_v2_providers_in_deps = deps,
databinding_v2_providers_in_exports = exports,
),
]

Expand Down
10 changes: 1 addition & 9 deletions rules/providers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -280,20 +280,12 @@ ProguardMappingInfo = provider(
),
)

DataBindingV2Info = provider(
doc = "DataBindingV2Info",
fields = dict(
class_infos = "",
setter_stores = "",
transitive_br_files = "",
),
)

# Native defined providers which will be gradually migrated to Starlark.
# We re-export these here so that all our providers can be loaded from this file.
AndroidResourcesInfo = providers.AndroidResourcesInfo
AndroidSdkInfo = providers.AndroidSdkInfo
AndroidManifestInfo = providers.AndroidManifestInfo
AndroidAssetsInfo = providers.AndroidAssetsInfo
AndroidIdeInfo = providers.AndroidIdeInfo
DataBindingV2Info = providers.DataBindingV2Info
AndroidFeatureFlagSet = providers.AndroidFeatureFlagSet # buildifier: disable=name-conventions
1 change: 1 addition & 0 deletions rules/reexport_providers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ providers = struct(
AndroidManifestInfo = AndroidManifestInfo,
AndroidAssetsInfo = AndroidAssetsInfo,
AndroidIdeInfo = AndroidIdeInfo,
DataBindingV2Info = DataBindingV2Info,
AndroidFeatureFlagSet = AndroidFeatureFlagSet,
)

0 comments on commit 7c13f90

Please sign in to comment.