FFmpeg-Android icon indicating copy to clipboard operation
FFmpeg-Android copied to clipboard

Can I use multiple aaptOptions to exclude both ffprobe and x86 arch at once?

Open kartikj07 opened this issue 5 years ago • 3 comments

I am including this library in my project and I am trying to use multiple aaptOptions to exclude ffprobe and x86 code completely but when I am building the apk file I am getting ffprobe included in armv7 assets folder. Is there any way to exclude both, ffprobe and x86, all at the same time?

kartikj07 avatar Nov 08 '19 10:11 kartikj07

You can exclude both at build time by adding the following in you app level build.gradle:

android {
    ...
    aaptOptions {
        ignoreAssetsPattern "!*ffprobe"
        ignoreAssetsPattern "!x86"
    }
}

HBiSoft avatar Feb 01 '20 05:02 HBiSoft

The code may need to be changed like this to take effect

android {
    ...
    aaptOptions {
          ignoreAssetsPattern "!*ffprobe:!x86"
    }
}

panjianghao avatar Feb 01 '20 11:02 panjianghao

@panjianghao Yes, you are right, well spotted.

@kartikj07 This issue can be closed.

HBiSoft avatar Feb 01 '20 11:02 HBiSoft