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

Commit 3669711d authored by Colin Cross's avatar Colin Cross
Browse files

Include annotations in metalava stubs

Pass --include-annotation-classes tools/metalava/stub-annotations
to metalava so that the stubs end up in the final jar.  They will be
post-processed with metalava --rewrite-annotations to avoid affecting
the public SDK.

Bug: 110532131
Test: m out/target/common/obj/JAVA_LIBRARIES/metalava_android_stubs_current_intermediates/classes.jar
Change-Id: Icb9268a72aa7de82ed6ad88aef9ac813796f9bf9
Merged-In: I116643925a3a9594e8590c3714e93d0fb0ac372f
parent d7b59466
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -264,7 +264,8 @@ framework_metalava_docs_LOCAL_DROIDDOC_OPTIONS := \
    --hide RequiresPermission \
    --hide MissingPermission --hide BroadcastBehavior \
    --hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol \
    --hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo
    --hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo \
    --include-annotation-classes tools/metalava/stub-annotations \

# ====  Public API diff ===========================
include $(CLEAR_VARS)