summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Anton Hansson <hansson@google.com> 2020-05-01 18:25:09 +0100
committer Anton Hansson <hansson@google.com> 2020-05-05 19:17:08 +0100
commitf59aed9db3df3e776157f26828e9abafcdadf966 (patch)
treec22436cec753664fde91fbd6f8c0572dddc6186b
parentbf144cc3ea11b527dbed6bb16d56fd55c7e47e1d (diff)
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
-rw-r--r--framework/Android.bp27
-rw-r--r--service/Android.bp9
2 files changed, 36 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 {
diff --git a/service/Android.bp b/service/Android.bp
index 2d92d00b6..614497635 100644
--- a/service/Android.bp
+++ b/service/Android.bp
@@ -41,6 +41,15 @@ droidstubs {
name: "service-permission-stubs-srcs",
srcs: [ ":service-permission-sources" ],
defaults: ["service-module-stubs-srcs-defaults"],
+ check_api: {
+ last_released: {
+ api_file: ":service-permission.api.system-server.latest",
+ removed_api_file: ":service-permission-removed.api.system-server.latest",
+ },
+ api_lint: {
+ new_since: ":service-permission.api.system-server.latest",
+ },
+ },
visibility: ["//visibility:private"],
dist: { dest: "service-permission.txt" },
}