Merge "Suppress R8 warnings for support library annotations" am: 2dca04c64d
am: 8c90005ff0
am: 19ca755ba3
Original change: https://android-review.googlesource.com/c/platform/build/+/2182775 Change-Id: I143b236a22eeb5846658df9116a1829216e07921 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -75,6 +75,19 @@
|
||||
# has a fallback, but again, don't use Futures.getChecked on Android regardless.
|
||||
-dontwarn java.lang.ClassValue
|
||||
|
||||
# Ignore missing annotation references for various support libraries.
|
||||
# While this is not ideal, it should be relatively safe given that
|
||||
# 1) runtime-visible annotations will still be kept, and 2) compile-time
|
||||
# annotations are stripped by R8 anyway.
|
||||
# Note: The ** prefix is used to accommodate jarjar repackaging.
|
||||
# TODO(b/242088131): Remove these exemptions after resolving transitive libs
|
||||
# dependencies that are provided to R8.
|
||||
-dontwarn **android**.annotation*.**
|
||||
-dontwarn **com.google.errorprone.annotations.**
|
||||
-dontwarn javax.annotation.**
|
||||
-dontwarn org.checkerframework.**
|
||||
-dontwarn org.jetbrains.annotations.**
|
||||
|
||||
# Less spammy.
|
||||
-dontnote
|
||||
|
||||
|
Reference in New Issue
Block a user