Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a6a2730 authored by Mathew Inwood's avatar Mathew Inwood
Browse files

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
parent 079f03f5
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -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: [