Suppress ProGuard warnings about javax.annotation

These annotations are compile-only - so we don't mind they're not
accessible at runtime.

PiperOrigin-RevId: 285993063
This commit is contained in:
ibaker 2019-12-17 17:13:53 +00:00 committed by Oliver Woodman
parent 0a701abafe
commit 166e389c56
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,8 @@
* Propagate HTTP request headers through `CacheDataSource`. * Propagate HTTP request headers through `CacheDataSource`.
* AV1 extension: Fix ProGuard rules * AV1 extension: Fix ProGuard rules
([6773](https://github.com/google/ExoPlayer/issues/6773)). ([6773](https://github.com/google/ExoPlayer/issues/6773)).
* Suppress ProGuard warnings for compile-time `javax.annotation` package
([#6771](https://github.com/google/ExoPlayer/issues/6771)).
### 2.11.0 (2019-12-11) ### ### 2.11.0 (2019-12-11) ###

View File

@ -65,6 +65,7 @@
# Don't warn about checkerframework and Kotlin annotations # Don't warn about checkerframework and Kotlin annotations
-dontwarn org.checkerframework.** -dontwarn org.checkerframework.**
-dontwarn kotlin.annotations.jvm.** -dontwarn kotlin.annotations.jvm.**
-dontwarn javax.annotation.**
# Some members of this class are being accessed from native methods. Keep them unobfuscated. # Some members of this class are being accessed from native methods. Keep them unobfuscated.
-keep class com.google.android.exoplayer2.ext.video.VideoDecoderOutputBuffer { -keep class com.google.android.exoplayer2.ext.video.VideoDecoderOutputBuffer {