bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.6k stars 1.59k forks source link

reduce size of librairie android #2264

Closed openmotion closed 3 months ago

openmotion commented 3 months ago

Hello the android plugin is very big ( 509 mo ) is there a way to keep only arm64 version i would like to keep only for example ffmpeg and opencv thanks for your response

saudet commented 3 months ago

Please follow the instructions at https://github.com/bytedeco/javacpp-presets/wiki/Reducing-the-Number-of-Dependencies

openmotion commented 3 months ago

ok thanks it works using this setup and the size is now 53 mo :

implementation group: 'org.bytedeco', name: 'javacv', version: '1.5.7'

implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.7' implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.7', classifier: 'android-arm64'

implementation group: 'org.bytedeco', name: 'ffmpeg', version: '5.0-1.5.7' implementation group: 'org.bytedeco', name: 'ffmpeg', version: '5.0-1.5.7', classifier: 'android-arm64'