From f33e1947b7a3af7fd6239cba2208d2279a9d6b1c Mon Sep 17 00:00:00 2001 From: Nan Zhang Date: Fri, 23 Mar 2018 00:57:00 -0700 Subject: [PATCH] Add additional droiddoc options for stubs-api There's slightly different for droiddoc options between AOSP and internal Master. So set droiddoc options to be consistent with current ones in internal Master. Test: m android_stubs_current Bug: b/70351683 b/76179848 Change-Id: I3b87021b8a882e0934faedf51a9f84c996654c1f --- Android.bp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Android.bp b/Android.bp index d21bb36c61b3..ee205d43ec3f 100644 --- a/Android.bp +++ b/Android.bp @@ -935,7 +935,11 @@ packages_to_document = [ // Conscrypt (com.android.org.conscrypt) is an implementation detail and should // not be referenced in the documentation. framework_docs_args = "-android -manifest $(location core/res/AndroidManifest.xml) " + - "-hidePackage com.android.okhttp -hidePackage com.android.org.conscrypt -hidePackage com.android.server " + + "-hidePackage com.android.internal " + + "-hidePackage com.android.internal.util " + + "-hidePackage com.android.okhttp " + + "-hidePackage com.android.org.conscrypt " + + "-hidePackage com.android.server " + "-since $(location api/1.xml) 1 " + "-since $(location api/2.xml) 2 " + "-since $(location api/3.xml) 3 " + @@ -963,6 +967,7 @@ framework_docs_args = "-android -manifest $(location core/res/AndroidManifest.xm "-since $(location api/25.txt) 25 " + "-since $(location api/26.txt) 26 " + "-since $(location api/27.txt) 27 " + + "-since $(location api/current.txt) P " + "-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. @@ -1026,6 +1031,7 @@ droiddoc { ":api-version-xml", "core/java/overview.html", ":current-support-api", + "api/current.txt", ], api_filename: "public_api.txt", removed_api_filename: "removed.txt", @@ -1040,6 +1046,7 @@ droiddoc { ":api-version-xml", "core/java/overview.html", ":current-support-api", + "api/current.txt", ], api_tag_name: "SYSTEM", api_filename: "system-api.txt", @@ -1056,6 +1063,7 @@ droiddoc { ":api-version-xml", "core/java/overview.html", ":current-support-api", + "api/current.txt", ], api_tag_name: "TEST", api_filename: "test-api.txt",