Search code examples
android-proguard

What is the correct ProGuard definition for latest mp4parser/isoparser library?


I've been struggling with that here and there -

What is the proguard definitions you need to add to your project proguard configuration file to allow the mp4parser library to work?


Solution

  • Tested with mp4parser version 1.1.7:

    -keep class * implements com.coremedia.iso.boxes.Box { *; }
    -dontwarn com.coremedia.iso.boxes.**
    -dontwarn com.googlecode.mp4parser.authoring.tracks.mjpeg.**
    -dontwarn com.googlecode.mp4parser.authoring.tracks.ttml.**
    

    Enjoy