mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Ensure raw resources are kept
R8 does constant folding, so we need to keep buildRawResourceUri to ensure that resources passed to it are kept. PiperOrigin-RevId: 286153875
This commit is contained in:
parent
166e389c56
commit
c9109f437c
2 changed files with 8 additions and 1 deletions
|
|
@ -9,6 +9,8 @@
|
|||
([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)).
|
||||
* Fix proguard rules for R8 to ensure raw resources used with
|
||||
`RawResourceDataSource` are kept.
|
||||
|
||||
### 2.11.0 (2019-12-11) ###
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,10 @@
|
|||
# Proguard rules specific to the core module.
|
||||
|
||||
# Constant folding for resource integers may mean that a resource passed to this method appears to be unused. Keep the method to prevent this from happening.
|
||||
-keep class com.google.android.exoplayer2.upstream.RawResourceDataSource {
|
||||
public static android.net.Uri buildRawResourceUri(int);
|
||||
}
|
||||
|
||||
# Constructors accessed via reflection in DefaultRenderersFactory
|
||||
-dontnote com.google.android.exoplayer2.ext.vp9.LibvpxVideoRenderer
|
||||
-keepclassmembers class com.google.android.exoplayer2.ext.vp9.LibvpxVideoRenderer {
|
||||
|
|
@ -69,5 +74,5 @@
|
|||
|
||||
# Some members of this class are being accessed from native methods. Keep them unobfuscated.
|
||||
-keep class com.google.android.exoplayer2.ext.video.VideoDecoderOutputBuffer {
|
||||
*;
|
||||
*;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue