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
diff --git a/Android.bp b/Android.bp
index d21bb36..ee205d4 100644
--- a/Android.bp
+++ b/Android.bp
@@ -935,7 +935,11 @@
// 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 @@
"-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 @@
":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 @@
":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 @@
":api-version-xml",
"core/java/overview.html",
":current-support-api",
+ "api/current.txt",
],
api_tag_name: "TEST",
api_filename: "test-api.txt",