Merge "Suppress R8 warnings for support library annotations"
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