Update Android.bp for api-stubs in order to do api-check.

Bug: b/78034256
Test: m clean && m checkapi

Change-Id: Ifbda8825f95e26bb79aac9b1bb73c5e43f12d1fb
Merged-In: Ifbda8825f95e26bb79aac9b1bb73c5e43f12d1fb
This commit is contained in:
Nan Zhang
2018-05-04 18:36:45 -07:00
parent acbd94d76f
commit 39d2d18b80

View File

@@ -911,6 +911,15 @@ doc_defaults {
installable: false,
}
check_last_released_api_args = "-hide 2 -hide 3 -hide 4 -hide 5 -hide 6 -hide 24 -hide 25 -hide 26 -hide 27 " +
"-error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 " +
"-error 16 -error 17 -error 18"
check_current_api_args = "-error 2 -error 3 -error 4 -error 5 -error 6 " +
"-error 7 -error 8 -error 9 -error 10 -error 11 -error 12 -error 13 -error 14 -error 15 "+
"-error 16 -error 17 -error 18 -error 19 -error 20 -error 21 -error 23 -error 24 " +
"-error 25 -error 26 -error 27"
droiddoc {
name: "api-stubs-docs",
defaults: ["framework-docs-default"],
@@ -924,6 +933,18 @@ droiddoc {
private_api_filename: "private.txt",
removed_api_filename: "removed.txt",
args: framework_docs_args + " -referenceonly -nodocs",
check_api: {
last_released: {
api_file: ":last-released-public-api",
removed_api_file: "api/removed.txt",
args: check_last_released_api_args,
},
current: {
api_file: "api/current.txt",
removed_api_file: "api/removed.txt",
args: check_current_api_args,
},
},
}
droiddoc {
@@ -942,6 +963,18 @@ droiddoc {
removed_api_filename: "system-removed.txt",
exact_api_filename: "system-exact.txt",
args: framework_docs_args + " -referenceonly -showAnnotation android.annotation.SystemApi -nodocs",
check_api: {
last_released: {
api_file: ":last-released-system-api",
removed_api_file: "api/system-removed.txt",
args: check_last_released_api_args,
},
current: {
api_file: "api/system-current.txt",
removed_api_file: "api/system-removed.txt",
args: check_current_api_args,
},
},
}
droiddoc {
@@ -958,6 +991,13 @@ droiddoc {
removed_api_filename: "test-removed.txt",
exact_api_filename: "test-exact.txt",
args: framework_docs_args + " -referenceonly -showAnnotation android.annotation.TestApi -nodocs",
check_api: {
current: {
api_file: "api/test-current.txt",
removed_api_file: "api/test-removed.txt",
args: check_current_api_args,
},
},
}
droiddoc {