summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorAnton Hansson <hansson@google.com>2020-05-01 18:25:09 +0100
committerAnton Hansson <hansson@google.com>2020-05-05 19:17:08 +0100
commitf59aed9db3df3e776157f26828e9abafcdadf966 (patch)
treec22436cec753664fde91fbd6f8c0572dddc6186b /framework
parentbf144cc3ea11b527dbed6bb16d56fd55c7e47e1d (diff)
downloadPermission-f59aed9db3df3e776157f26828e9abafcdadf966.tar.gz
Enable api lint and check_last_api for modules
This adds checking of module api compatibility to the individual module api rules. Until now, this checking has been done via the monolithic metalava runs which we are aiming to get rid of. Now is a good time to do this because we can compare them to the just finalized version 30 API, which we have no diffs with. Baseline the existing wifi failures that metalava fails to find in the previous API. Bug: 144149403 Test: m checkapi Change-Id: Id222895daa3a769c265965b052a17d5a1ca18462
Diffstat (limited to 'framework')
-rw-r--r--framework/Android.bp27
1 files changed, 27 insertions, 0 deletions
diff --git a/framework/Android.bp b/framework/Android.bp
index 3119b7d29..68c27a832 100644
--- a/framework/Android.bp
+++ b/framework/Android.bp
@@ -55,6 +55,15 @@ droidstubs {
"framework-module-stubs-defaults-publicapi",
"framework-permission-stubs-defaults",
],
+ check_api: {
+ last_released: {
+ api_file: ":framework-permission.api.public.latest",
+ removed_api_file: ":framework-permission-removed.api.public.latest",
+ },
+ api_lint: {
+ new_since: ":framework-permission.api.public.latest",
+ },
+ },
}
droidstubs {
@@ -63,6 +72,15 @@ droidstubs {
"framework-module-stubs-defaults-systemapi",
"framework-permission-stubs-defaults",
],
+ check_api: {
+ last_released: {
+ api_file: ":framework-permission.api.system.latest",
+ removed_api_file: ":framework-permission-removed.api.system.latest",
+ },
+ api_lint: {
+ new_since: ":framework-permission.api.system.latest",
+ },
+ },
}
droidstubs {
@@ -71,6 +89,15 @@ droidstubs {
"framework-module-api-defaults-module_libs_api",
"framework-permission-stubs-defaults",
],
+ check_api: {
+ last_released: {
+ api_file: ":framework-permission.api.module-lib.latest",
+ removed_api_file: ":framework-permission-removed.api.module-lib.latest",
+ },
+ api_lint: {
+ new_since: ":framework-permission.api.module-lib.latest",
+ },
+ },
}
droidstubs {