xref: /aosp_15_r20/build/make/tools/check-flagged-apis/Android.bp (revision 9e94795a3d4ef5c1d47486f9a02bb378756cea8a)
1*9e94795aSAndroid Build Coastguard Worker// Copyright (C) 2024 The Android Open Source Project
2*9e94795aSAndroid Build Coastguard Worker//
3*9e94795aSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*9e94795aSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*9e94795aSAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*9e94795aSAndroid Build Coastguard Worker//
7*9e94795aSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
8*9e94795aSAndroid Build Coastguard Worker//
9*9e94795aSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*9e94795aSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*9e94795aSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*9e94795aSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*9e94795aSAndroid Build Coastguard Worker// limitations under the License.
14*9e94795aSAndroid Build Coastguard Worker
15*9e94795aSAndroid Build Coastguard Workerpackage {
16*9e94795aSAndroid Build Coastguard Worker    default_team: "trendy_team_updatable_sdk_apis",
17*9e94795aSAndroid Build Coastguard Worker    default_applicable_licenses: ["Android-Apache-2.0"],
18*9e94795aSAndroid Build Coastguard Worker}
19*9e94795aSAndroid Build Coastguard Worker
20*9e94795aSAndroid Build Coastguard Workerjava_defaults {
21*9e94795aSAndroid Build Coastguard Worker    name: "check-flagged-apis-defaults",
22*9e94795aSAndroid Build Coastguard Worker    srcs: [
23*9e94795aSAndroid Build Coastguard Worker        "src/com/android/checkflaggedapis/Main.kt",
24*9e94795aSAndroid Build Coastguard Worker    ],
25*9e94795aSAndroid Build Coastguard Worker    static_libs: [
26*9e94795aSAndroid Build Coastguard Worker        "libaconfig_java_proto_lite",
27*9e94795aSAndroid Build Coastguard Worker        "metalava-signature-reader",
28*9e94795aSAndroid Build Coastguard Worker        "metalava-tools-common-m2-deps",
29*9e94795aSAndroid Build Coastguard Worker    ],
30*9e94795aSAndroid Build Coastguard Worker}
31*9e94795aSAndroid Build Coastguard Worker
32*9e94795aSAndroid Build Coastguard Workerjava_binary_host {
33*9e94795aSAndroid Build Coastguard Worker    name: "check-flagged-apis",
34*9e94795aSAndroid Build Coastguard Worker    defaults: [
35*9e94795aSAndroid Build Coastguard Worker        "check-flagged-apis-defaults",
36*9e94795aSAndroid Build Coastguard Worker    ],
37*9e94795aSAndroid Build Coastguard Worker    main_class: "com.android.checkflaggedapis.Main",
38*9e94795aSAndroid Build Coastguard Worker}
39*9e94795aSAndroid Build Coastguard Worker
40*9e94795aSAndroid Build Coastguard Workerjava_test_host {
41*9e94795aSAndroid Build Coastguard Worker    name: "check-flagged-apis-test",
42*9e94795aSAndroid Build Coastguard Worker    defaults: [
43*9e94795aSAndroid Build Coastguard Worker        "check-flagged-apis-defaults",
44*9e94795aSAndroid Build Coastguard Worker    ],
45*9e94795aSAndroid Build Coastguard Worker    srcs: [
46*9e94795aSAndroid Build Coastguard Worker        "src/com/android/checkflaggedapis/CheckFlaggedApisTest.kt",
47*9e94795aSAndroid Build Coastguard Worker    ],
48*9e94795aSAndroid Build Coastguard Worker    static_libs: [
49*9e94795aSAndroid Build Coastguard Worker        "junit",
50*9e94795aSAndroid Build Coastguard Worker    ],
51*9e94795aSAndroid Build Coastguard Worker}
52