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_updatable_sdk_apis", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_defaults { 21 name: "check-flagged-apis-defaults", 22 srcs: [ 23 "src/com/android/checkflaggedapis/Main.kt", 24 ], 25 static_libs: [ 26 "libaconfig_java_proto_lite", 27 "metalava-signature-reader", 28 "metalava-tools-common-m2-deps", 29 ], 30} 31 32java_binary_host { 33 name: "check-flagged-apis", 34 defaults: [ 35 "check-flagged-apis-defaults", 36 ], 37 main_class: "com.android.checkflaggedapis.Main", 38} 39 40java_test_host { 41 name: "check-flagged-apis-test", 42 defaults: [ 43 "check-flagged-apis-defaults", 44 ], 45 srcs: [ 46 "src/com/android/checkflaggedapis/CheckFlaggedApisTest.kt", 47 ], 48 static_libs: [ 49 "junit", 50 ], 51} 52