xref: /aosp_15_r20/tools/apifinder/Android.bp (revision ed3cc22572ea5fc243355a6e5093f0fcd823685c)
1*ed3cc225SMatt Banda// Copyright (C) 2020 The Android Open Source Project
2*ed3cc225SMatt Banda//
3*ed3cc225SMatt Banda// Licensed under the Apache License, Version 2.0 (the "License");
4*ed3cc225SMatt Banda// you may not use this file except in compliance with the License.
5*ed3cc225SMatt Banda// You may obtain a copy of the License at
6*ed3cc225SMatt Banda//
7*ed3cc225SMatt Banda//      http://www.apache.org/licenses/LICENSE-2.0
8*ed3cc225SMatt Banda//
9*ed3cc225SMatt Banda// Unless required by applicable law or agreed to in writing, software
10*ed3cc225SMatt Banda// distributed under the License is distributed on an "AS IS" BASIS,
11*ed3cc225SMatt Banda// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*ed3cc225SMatt Banda// See the License for the specific language governing permissions and
13*ed3cc225SMatt Banda// limitations under the License.
14*ed3cc225SMatt Banda
15*ed3cc225SMatt Bandapackage {
16*ed3cc225SMatt Banda    default_applicable_licenses: ["Android-Apache-2.0"],
17*ed3cc225SMatt Banda}
18*ed3cc225SMatt Banda
19*ed3cc225SMatt Banda// ------------------------- AndroidLint Checkers ----------------------------------
20*ed3cc225SMatt Banda
21*ed3cc225SMatt Bandajava_library_host {
22*ed3cc225SMatt Banda    name: "JavaKotlinApiFinder",
23*ed3cc225SMatt Banda    srcs: ["checks/src/main/java/**/*.kt"],
24*ed3cc225SMatt Banda    plugins: ["auto_service_plugin"],
25*ed3cc225SMatt Banda    libs: [
26*ed3cc225SMatt Banda        "auto_service_annotations",
27*ed3cc225SMatt Banda        "lint_api",
28*ed3cc225SMatt Banda    ],
29*ed3cc225SMatt Banda    kotlincflags: ["-Xjvm-default=all"],
30*ed3cc225SMatt Banda}
31*ed3cc225SMatt Banda
32*ed3cc225SMatt Banda// TODO: (b/162368644) Implement these (working in gradle) Kotlin Tests to run on Soong
33*ed3cc225SMatt Banda//java_test_host {
34*ed3cc225SMatt Banda//    name: "JavaKotlinApiFinderTest",
35*ed3cc225SMatt Banda//    srcs: [
36*ed3cc225SMatt Banda//    	"checks/src/test/java/**/*.kt",
37*ed3cc225SMatt Banda//    	"checks/src/main/java/**/*.kt",
38*ed3cc225SMatt Banda//    ],
39*ed3cc225SMatt Banda//    plugins: ["auto_service_plugin"],
40*ed3cc225SMatt Banda//    static_libs: [
41*ed3cc225SMatt Banda//        "auto_service_annotations",
42*ed3cc225SMatt Banda//        "lint_api",
43*ed3cc225SMatt Banda//    ],
44*ed3cc225SMatt Banda//}
45