blob: 7d0d33b383a6e320fc87dac8f3f42230ca4de135 [file] [log] [blame]
Mårten Kongstad90087242024-04-16 09:55:56 +02001// 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 {
Mårten Kongstadf242ec82024-04-16 17:12:26 +020016 default_team: "trendy_team_updatable_sdk_apis",
Mårten Kongstad90087242024-04-16 09:55:56 +020017 default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
Mårten Kongstadf242ec82024-04-16 17:12:26 +020020java_defaults {
21 name: "check-flagged-apis-defaults",
Mårten Kongstad90087242024-04-16 09:55:56 +020022 srcs: [
Mårten Kongstadf242ec82024-04-16 17:12:26 +020023 "src/com/android/checkflaggedapis/Main.kt",
Mårten Kongstad90087242024-04-16 09:55:56 +020024 ],
Mårten Kongstadacfeb112024-04-16 10:30:26 +020025 static_libs: [
Mårten Kongstad20de4052024-04-16 11:33:56 +020026 "metalava-signature-reader",
Mårten Kongstadacfeb112024-04-16 10:30:26 +020027 "metalava-tools-common-m2-deps",
28 ],
Mårten Kongstadf242ec82024-04-16 17:12:26 +020029}
30
31java_binary_host {
32 name: "check-flagged-apis",
33 defaults: [
34 "check-flagged-apis-defaults",
35 ],
Mårten Kongstad90087242024-04-16 09:55:56 +020036 main_class: "com.android.checkflaggedapis.Main",
37}
Mårten Kongstadf242ec82024-04-16 17:12:26 +020038
39java_test_host {
40 name: "check-flagged-apis-test",
41 defaults: [
42 "check-flagged-apis-defaults",
43 ],
44 srcs: [
45 "src/com/android/checkflaggedapis/CheckFlaggedApisTest.kt",
46 ],
47 static_libs: [
48 "tradefed",
49 ],
50}