blob: caaca99bdc4500ed36256f1e4acb256d01e6ebf1 [file] [log] [blame]
Yiming Pana95134c2023-11-15 00:26:25 +00001// 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
15java_binary_host {
16 name: "extract-flagged-apis",
17 srcs: ["ExtractFlaggedApis.kt"],
18 main_class: "android.platform.coverage.ExtractFlaggedApisKt",
19 static_libs: [
20 "metalava-signature-reader",
21 "extract_flagged_apis_proto",
22 ],
23}
24
25java_library_host {
26 name: "extract_flagged_apis_proto",
27 srcs: ["extract_flagged_apis.proto"],
28 static_libs: ["libprotobuf-java-full"],
29 proto: {
30 type: "full",
31 },
32}
Yiming Pan823c15d2024-04-01 07:30:27 +000033
34java_test_host {
35 name: "extract-flagged-apis-test",
36 srcs: ["ExtractFlaggedApisTest.kt"],
37 libs: [
38 "extract_flagged_apis_proto",
39 "junit",
40 "libprotobuf-java-full",
41 ],
42 static_libs: [
43 "truth",
44 "truth-liteproto-extension",
45 "truth-proto-extension",
46 ],
47 data: [
48 ":extract-flagged-apis",
49 ],
50 test_options: {
51 unit_test: true,
52 },
53}