From 96c9cbc1a1830780f8509434c766d77a49015b60 Mon Sep 17 00:00:00 2001 From: David Brazdil Date: Thu, 26 Apr 2018 14:05:13 +0100 Subject: [PATCH] Build same hidden API lists as in pi-dev P branch builds hidden API lists in a separate invocation of droiddoc which includes @SystemApi and @TestApi annotated class members in the public API. This patch creates the same build rule in the master branch, only with Soong instead of Makefile. Test: make out/soong/.intermediates/frameworks/base/hiddenapi-lists/android_common/private-dex.txt Merged-In: Ifa912f8751025b7de24a982a1a227a9c27d18267 Change-Id: I80860c2b9f7213db65d0a9ca65bd645187aa0ce0 --- Android.bp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Android.bp b/Android.bp index 5bdfc8745b8ea..dd3c91a24cd40 100644 --- a/Android.bp +++ b/Android.bp @@ -922,9 +922,7 @@ droiddoc { ], api_filename: "public_api.txt", private_api_filename: "private.txt", - private_dex_api_filename: "private-dex.txt", removed_api_filename: "removed.txt", - removed_dex_api_filename: "removed-dex.txt", args: framework_docs_args + " -referenceonly -nodocs", } @@ -993,6 +991,25 @@ java_library_static { ], } +droiddoc { + name: "hiddenapi-lists", + defaults: ["framework-docs-default"], + arg_files: [ + "core/res/AndroidManifest.xml", + ":api-version-xml", + "core/java/overview.html", + ":current-support-api", + ], + private_dex_api_filename: "private-dex.txt", + removed_dex_api_filename: "removed-dex.txt", + args: framework_docs_args + + " -referenceonly" + + " -nodocs" + + " -showUnannotated" + + " -showAnnotation android.annotation.SystemApi" + + " -showAnnotation android.annotation.TestApi", +} + filegroup { name: "apache-http-stubs-sources", srcs: [