diff --git a/android/android_library.bzl b/android/android_library.bzl index 40f562904..cff455e34 100644 --- a/android/android_library.bzl +++ b/android/android_library.bzl @@ -5,6 +5,7 @@ # License, Version 2.0 found in the LICENSE-APACHE file in the root directory # of this source tree. +load("@prelude//:attrs_validators.bzl", "get_attrs_validators_info") load("@prelude//:validation_deps.bzl", "get_validation_deps_outputs") load( "@prelude//android:android_providers.bzl", @@ -54,7 +55,7 @@ def android_library_impl(ctx: AnalysisContext) -> list[Provider]: manifest = ctx.attrs.manifest, ), merge_exported_android_resource_info(ctx.attrs.exported_deps), - ] + android_providers + ] + android_providers + get_attrs_validators_info(ctx) def optional_jars(ctx: AnalysisContext) -> list[Artifact]: return ctx.attrs.android_optional_jars or [] diff --git a/decls/android_rules.bzl b/decls/android_rules.bzl index 9373d3309..dd7dd2885 100644 --- a/decls/android_rules.bzl +++ b/decls/android_rules.bzl @@ -10,6 +10,7 @@ # the generated docs, and so those should be verified to be accurate and # well-formatted (and then delete this TODO) +load("@prelude//:attrs_validators.bzl", "ATTRS_VALIDATORS_NAME", "ATTRS_VALIDATORS_TYPE") load("@prelude//decls:test_common.bzl", "test_common") load("@prelude//utils:clear_platform.bzl", "clear_platform_transition") load(":android_common.bzl", "android_common") @@ -783,6 +784,7 @@ android_library = prelude_rule( "runtime_deps": attrs.list(attrs.dep(), default = []), "source_abi_verification_mode": attrs.option(attrs.enum(SourceAbiVerificationMode), default = None), "use_jvm_abi_gen": attrs.option(attrs.bool(), default = None), + ATTRS_VALIDATORS_NAME: ATTRS_VALIDATORS_TYPE, } ) | jvm_common.plugins(), )