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

Commit 7f769487 authored by Mårten Kongstad's avatar Mårten Kongstad
Browse files

doclava: include "Added in API <version>" in offline docs

Pass -metalavaApiSince to doclava when generating offline docs. This
will make the output include the "Added in API <version>" next to each
symbol, just like the online docs at DAC.

Bug: 259632341
Test: m docs # manually inspect out/target/common/docs/offline-sdk-docs-docs.zip
Change-Id: I4a6fd211ca535040d53312131df0d214d1785a0b
parent 3c318cc2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -183,6 +183,7 @@ droidstubs {
/////////////////////////////////////////////////////////////////////

framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " +
    "-metalavaApiSince " +
    "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
    "-overview $(location core/java/overview.html) " +
    // Federate Support Library references against local API file.
@@ -374,7 +375,7 @@ droiddoc {
    ],
    proofread_file: "ds-docs-proofread.txt",
    args: framework_docs_only_args +
        " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " +
        " -toroot / -yamlV2 -samplegroup Admin " +
        " -samplegroup Background " +
        " -samplegroup Connectivity " +
        " -samplegroup Content " +