I am wondering if there is a way in java to do an import with a relative package path. Something like this:
import *.fragments.MyFragment;
I would use this in cases that I had a whitelabel app in which I wanted to have the main app have one definition of "MyFragment," but a product flavor needed to define it differently.
As an extension to @dcow's answer - You can combine flavours in dimensions. So if you wanna have 4 flavours for example and only two variants of view for them - add two more flavours, set them to one dimension, and your initial flavours to another. And after that build any combination you need.