From 7f769487eab979391b58604d44b5990a0aae3ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Kongstad?= Date: Fri, 18 Nov 2022 08:27:45 +0100 Subject: [PATCH] doclava: include "Added in API " in offline docs Pass -metalavaApiSince to doclava when generating offline docs. This will make the output include the "Added in API " 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 --- ApiDocs.bp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ApiDocs.bp b/ApiDocs.bp index bf3a6a356e31f..a46ecce5c7219 100644 --- a/ApiDocs.bp +++ b/ApiDocs.bp @@ -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 " +