1// Copyright (C) 2024 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 15package { 16 default_team: "trendy_team_android_permissions", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_defaults { 21 name: "PermissionLintDefaults", 22 plugins: ["auto_service_plugin"], 23 libs: [ 24 "auto_service_annotations", 25 "lint_api", 26 ], 27 static_libs: [ 28 "AndroidCommonLint", 29 ], 30 kotlincflags: [ 31 "-Xjvm-default=all", 32 ], 33} 34 35java_library_host { 36 name: "PermissionPolicyLintChecker", 37 defaults: [ 38 "PermissionLintDefaults", 39 ], 40 srcs: [ 41 "checks/src/main/java/com/android/permissioncontroller/lint/permissionpolicy/**/*.kt", 42 ], 43} 44 45java_test_host { 46 name: "PermissionPolicyLintCheckerTest", 47 defaults: [ 48 "AndroidLintCheckerTestDefaults", 49 "PermissionLintDefaults", 50 ], 51 srcs: [ 52 "checks/src/test/java/**/*.kt", 53 "checks/src/main/java/**/*.kt", 54 ], 55} 56