Suppose I have the following resources in my Android project:
res/values/strings.xml
res/values-land/strings.xml
I would like to exclude the resources defined for land
qualifier from packaging into apk. Is there such a possibility?
And, no, I can not just remove the res/values-land/
, as it's required for some flavors.
I tried several options, like using the sourceSets.main.res.filter.exclude
or packagingOptions
, but no success.