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

Commit e561260e authored by Nan Zhang's avatar Nan Zhang
Browse files

Add update-api for Metalava based api-stubs-docs

Use check_api section to put the target files which need to be updated.
But check_api doesn't do actually checking work.

Bug: b/112668343
Test: m -j api-stubs-docs-update-current-api
Change-Id: I0f28e6e480413e0ac5cdff51bc4b2df478a867f6
parent eb973c97
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -1489,6 +1489,12 @@ droiddoc {
        "core/res/AndroidManifest.xml",
    ],
    args: metalava_framework_docs_args,
    check_api: {
        current: {
            api_file: "api/current.txt",
            removed_api_file: "api/removed.txt",
        },
    },
}

droiddoc {
@@ -1503,6 +1509,12 @@ droiddoc {
        "core/res/AndroidManifest.xml",
    ],
    args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi",
    check_api: {
        current: {
            api_file: "api/system-current.txt",
            removed_api_file: "api/system-removed.txt",
        },
    },
}

droiddoc {
@@ -1515,4 +1527,10 @@ droiddoc {
        "core/res/AndroidManifest.xml",
    ],
    args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi",
    check_api: {
        current: {
            api_file: "api/test-current.txt",
            removed_api_file: "api/test-removed.txt",
        },
    },
}