From 63146cdec7c1f8ab5fac02dfec089f3571db372a Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Mon, 7 Oct 2024 13:12:08 +0100 Subject: 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 --- nfc/Android.bp | 4 ++++ 1 file changed, 4 insertions(+) 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", -- cgit v1.2.3-59-g8ed1b