moneytoo / Player

▶ Simple and lightweight, yet polished and powerful Android video player based on ExoPlayer
https://play.google.com/store/apps/details?id=com.brouken.player
The Unlicense
1.46k stars 172 forks source link

play pause not working with proguard #456

Closed milansevenseasol closed 1 year ago

milansevenseasol commented 1 year ago

Describe the bug When I set proguard in app. play pause video not working in release apk. how can i solve ?

brentonv commented 1 year ago

For most situations, the default ProGuard rules file is sufficient for R8 to remove only the unused code. However, some situations are difficult for R8 to analyze correctly and it might remove code your app actually needs

To fix errors and force R8 to keep certain code, add a -keep line in the ProGuard rules file

https://developer.android.com/studio/build/shrink-code

moneytoo commented 1 year ago

This is expected as the play pause buttons are modified with reflection.