diff --git a/core/proguard_basic_keeps.flags b/core/proguard_basic_keeps.flags index b5d14fa6b2..38feec37b8 100644 --- a/core/proguard_basic_keeps.flags +++ b/core/proguard_basic_keeps.flags @@ -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