I\'m facing the following problem at the moment:
I have developed app \'A\' which uses permissions 1, 2, 3 and uses an 3rd party library \'B\' as a dependency (added
You need to use Selector
Each tools:node or tools:attr declaration can be augmented by a tools:selector attribute which is contextual information on whether or not the merging strategy should be applied to the current lower priority XML description. For instance, this is useful when removing a permission only if coming for one particular library as opposed to any library:
It would be next according your initial requirements
but keep in mind that all other will be removed.