bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.27k stars 8.09k forks source link

proguard rules for ijkplayer? #190

Open Palatis opened 9 years ago

Palatis commented 9 years ago

proguard strips IjkMediaPlayer._stop() if I didn't call mp.stop()...

I tried -keep class tv.danmaku.ijk.media.player.* { ; } but it didn't work.

I'm not really familiar with proguard, what do I have to study or what do I have to put in proguard-rules.txt?

Palatis commented 9 years ago

NVM, it worked by also keep the interface...

-dontwarn tv.danmaku.ijk.media.player.* -keep class tv.danmaku.ijk.media.player.* { ; } -keep interface tv.danmaku.ijk.media.player.* { *; }

JunaYa commented 7 years ago

it's OK

-keep class tv.danmaku.ijk.media.player.* { ; } -dontwarn tv.danmaku.ijk.media.player. -keep interface tv.danmaku.ijk.media.player. { *; }