Files
build/tools/check-flagged-apis/Android.bp
Mårten Kongstad 20de405dd5 check-flagged-apis: parse API signature files
Teach check-flagged-apis to extract flagged APIs from API signature files.

To keep things simple, only consider fields for now: support for classes
and methods will be added in a later CL.

Note: `m frameworks-base-api-current.txt` will generate an API signature
file that includes both the platform and mainline APIs.

Bug: 334870672
Test: atest --host check-flagged-apis-test
Test: check-flagged-apis --api-signature out/target/product/mainline_x86/obj/ETC/frameworks-base-api-current.txt_intermediates/frameworks-base-api-current.txt
Change-Id: Ic244b896672569f44af793796189b34c1f9d0c36
2024-04-17 15:27:48 +02:00

51 lines
1.4 KiB
Plaintext

// Copyright (C) 2024 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_team: "trendy_team_updatable_sdk_apis",
default_applicable_licenses: ["Android-Apache-2.0"],
}
java_defaults {
name: "check-flagged-apis-defaults",
srcs: [
"src/com/android/checkflaggedapis/Main.kt",
],
static_libs: [
"metalava-signature-reader",
"metalava-tools-common-m2-deps",
],
}
java_binary_host {
name: "check-flagged-apis",
defaults: [
"check-flagged-apis-defaults",
],
main_class: "com.android.checkflaggedapis.Main",
}
java_test_host {
name: "check-flagged-apis-test",
defaults: [
"check-flagged-apis-defaults",
],
srcs: [
"src/com/android/checkflaggedapis/CheckFlaggedApisTest.kt",
],
static_libs: [
"tradefed",
],
}