1# Copyright (C) 2023 The Android Open Source Project 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15load( 16 "@rules_android//rules:attrs.bzl", 17 _attrs = "attrs", 18) 19load( 20 "@rules_android//rules/aar_import:attrs.bzl", 21 _BASE_ATTRS = "ATTRS", 22) 23 24ATTRS = _attrs.replace( 25 _BASE_ATTRS, 26 exports = attr.label_list( 27 allow_files = False, 28 allow_rules = [ 29 "aar_import", 30 "java_import", 31 "kt_jvm_import", 32 "aar_import_sdk_transition", 33 "java_import_sdk_transition", 34 "kt_jvm_import_sdk_transition", 35 ], 36 doc = "The closure of all rules reached via `exports` attributes are considered " + 37 "direct dependencies of any rule that directly depends on the target with " + 38 "`exports`. The `exports` are not direct deps of the rule they belong to.", 39 ), 40) 41