aboutsummaryrefslogtreecommitdiff
path: root/rules/dex_desugar_aspect.bzl
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-23 03:04:56 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-09-23 03:04:56 +0000
commitbc67c32f96ccf8d0c503a88cbbf7b7ae91559be3 (patch)
tree8945eb9e0c501c6fc75d1b6a3cd0f9fffb4940cd /rules/dex_desugar_aspect.bzl
parentdc227b265664fd2771899371600cccb09b4647e4 (diff)
parent8d58e75763b3b83025a5d9402750b2033e184474 (diff)
downloadbazelbuild-rules_android-bc67c32f96ccf8d0c503a88cbbf7b7ae91559be3.tar.gz
Snap for 10851067 from 8d58e75763b3b83025a5d9402750b2033e184474 to 24Q1-release
Change-Id: Ib605b0602ae997964d21b7fbce245bdd0fe73ec0
Diffstat (limited to 'rules/dex_desugar_aspect.bzl')
-rw-r--r--rules/dex_desugar_aspect.bzl5
1 files changed, 1 insertions, 4 deletions
diff --git a/rules/dex_desugar_aspect.bzl b/rules/dex_desugar_aspect.bzl
index a360764..9d692d3 100644
--- a/rules/dex_desugar_aspect.bzl
+++ b/rules/dex_desugar_aspect.bzl
@@ -69,11 +69,8 @@ def _aspect_impl(target, ctx):
if not acls.in_android_binary_starlark_dex_desugar_proguard(str(ctx.label)):
return []
- min_sdk_version = getattr(ctx.rule.attr, "min_sdk_version", 0)
- if min_sdk_version != 0 and not acls.in_android_binary_min_sdk_version_attribute(str(ctx)):
- fail("Target is not allowed to set a min_sdk_version value.")
-
incremental_dexing = getattr(ctx.rule.attr, "incremental_dexing", _tristate.auto)
+ min_sdk_version = getattr(ctx.rule.attr, "min_sdk_version", 0)
if incremental_dexing == _tristate.no or \
(not ctx.fragments.android.use_incremental_dexing and