bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
740 stars 176 forks source link

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

Open kartikj07 opened 4 years ago

kartikj07 commented 4 years ago

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?

HBiSoft commented 4 years ago

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

android {
    ...
    aaptOptions {
        ignoreAssetsPattern "!*ffprobe"
        ignoreAssetsPattern "!x86"
    }
}
panjianghao commented 4 years ago

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

android {
    ...
    aaptOptions {
          ignoreAssetsPattern "!*ffprobe:!x86"
    }
}
HBiSoft commented 4 years ago

@panjianghao Yes, you are right, well spotted.

@kartikj07 This issue can be closed.