I have searched for this a lot, but didn\'t get a solution and hence posting this.
Scenario: I\'m building an Android app which uses opencv library
Use proguard to obfuscate, minify, shrink resources. Just make sure to read docs by OpenCV for their proguard rules, Run android lint for unused resources.
You can enable ABI splitting in the build.gradle file like this:
android {
// Some other configuration here...
splits {
abi {
enable true
reset()
include 'x86', 'armeabi', 'armeabi-v7a', 'mips'
universalApk false
}
}
}
Refer this link https://realm.io/news/reducing-apk-size-native-libraries/