With regular gradle app I am able to exclude a file from apk (native lib specifically) with this, but at the same time keep another native lib called say mylib2.so
in the apk.
packagingOptions {
exclude "**/mylib1.so"
}
Is there a possibility to do the same using AOSP Soong build system when describing android_app
type of module?
The goal is to have mylib1.so
shared among many apps and exclude it, but mylib2.so
is app specific and it's better to be in the apk.