From 0a6a273013e8185da95646acb1b227a280787f39 Mon Sep 17 00:00:00 2001 From: Mathew Inwood Date: Fri, 22 Jun 2018 15:30:02 +0100 Subject: Add build rule for API->source mapping. This is used to get source positions of all class members in the boot class path, to automate the addition of annotations. See go/hidden-api-annotations for more context. Mappings printed in: out/soong/.intermediates/frameworks/base/hiddenapi-mappings /android_common/dex-mapping.txt Test: make hiddenapi-mappings Bug: 110868826 Change-Id: Ie67a8be6a5a71447a25d081bd466b8b5e01b0725 --- Android.bp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Android.bp') diff --git a/Android.bp b/Android.bp index f11b6fe0e13c..599464ff39e9 100644 --- a/Android.bp +++ b/Android.bp @@ -1050,6 +1050,24 @@ droiddoc { " -showAnnotation android.annotation.TestApi", } +droiddoc { + name: "hiddenapi-mappings", + defaults: ["framework-docs-default"], + arg_files: [ + "core/res/AndroidManifest.xml", + ":api-version-xml", + "core/java/overview.html", + ":current-support-api", + ], + dex_mapping_filename: "dex-mapping.txt", + args: framework_docs_args + + " -referenceonly" + + " -nodocs" + + " -showUnannotated" + + " -showAnnotation android.annotation.SystemApi" + + " -showAnnotation android.annotation.TestApi", +} + filegroup { name: "apache-http-stubs-sources", srcs: [ -- cgit v1.2.3-59-g8ed1b