Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d40c5a1b authored by William Escande's avatar William Escande
Browse files

Framework: Add the flag library in stub

Since this is adding a shared library and not a static, we expect this
to not have any side effect.
But this is a hack to workaround metalava that parse unconditionally
some javadoc. The Flags library should be considered hidden (or
assimilate) and not be exported in metalava

Bug: 332362688
Test: m the correct target (…/framework-bluetooth.stubs.from-source.jar)
Test: m out/soong/.intermediates/packages/modules/Bluetooth/framework/framework-bluetooth.stubs.exportable.from-source/android_common/javac/framework-bluetooth.stubs.exportable.from-source.jar

Flag: Exempt, comment only
Change-Id: I795b609b5a05829bd4f00a43989daea34290e7c3
parent 66a4893a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -33,7 +33,11 @@ java_defaults {
        "framework-tethering.stubs.module_lib",
        "unsupportedappusage", // for android.compat.annotation.UnsupportedAppUsage
    ],
    stub_only_libs: ["framework-tethering.stubs.module_lib"],
    stub_only_libs: [
        // TODO: b/332362688 --- Metalava should already ignore our library
        "bluetooth_flags_java_lib",
        "framework-tethering.stubs.module_lib",
    ],
    srcs: [
        ":Bluetooth-binder-aidl",
        ":framework-bluetooth-sources",