summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2024-10-07 13:12:08 +0100
committer Paul Duffin <paulduffin@google.com> 2024-10-07 13:31:59 +0100
commit63146cdec7c1f8ab5fac02dfec089f3571db372a (patch)
treec00cc18b23f3856ee4e7aa55bdae625f924fb400
parent448c575ee0e142492163e46507a66f5e2653ba3d (diff)
Add missing Javadoc dependency to `framework-nfc`
The `CardEmulation.java` file imports `android.app.role.RoleManager` and references it from some method bodies and the Javadoc of some of its API members. Strictly speaking, that class should have been imported in the stubs to ensure that the references in the Javadoc could be correctly resolved. However, due to some inaccurate handling of imports in Metalava the import was not added to the stubs. The handling of imports in Metalava will be improved and so the class will be correctly imported. However, that would lead to a compile time failure because `RoleManager` is not on the classpath when compiling the stubs. This change avoids that by adding the missing dependency in preparation for the Metalava changes. Bug: 371955471 Test: m droid tools/metalava/scripts/gather-android-metalava-artifacts.py before tools/metalava/scripts/gather-android-metalava-artifacts.py after meld before after Change-Id: Id2e10482baec9031541efab7c9496be2b76cb8e7
-rw-r--r--nfc/Android.bp4
1 files changed, 4 insertions, 0 deletions
diff --git a/nfc/Android.bp b/nfc/Android.bp
index db3dcb0631dd..7ad8c4c8de41 100644
--- a/nfc/Android.bp
+++ b/nfc/Android.bp
@@ -41,6 +41,10 @@ java_sdk_library {
"framework-permission-s.stubs.module_lib",
"framework-permission.stubs.module_lib",
],
+ stub_only_libs: [
+ // Needed for javadoc references.
+ "framework-permission-s.stubs.module_lib",
+ ],
static_libs: [
"android.nfc.flags-aconfig-java",
"android.permission.flags-aconfig-java",