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
This commit is contained in:
Mårten Kongstad
2022-11-18 08:27:45 +01:00
parent 3c318cc21a
commit 7f769487ea

View File

@@ -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 " +