Build variant is a really powerful tool for creating different variant of your codes by specifying minor difference and I largely use it in my projects. But I wonder if it is possible to select a specific variant as a base for another variant rather than main.
For example, lets assume my app has 3 variants: A (main), B and C. Variant B has a lot of different resource file from variant A, so I add them into B variant folder and everything goes well when I compile variant B. But for variant C, it has a very small changes based on variant B. Now I wonder what is the best approach for creating variant C. The simplest approach is to copy all changed files of B variant (in comparison with A variant) to variant C and apply small change to them for variant C. I personally don't like this approach, because I need to apply all changed to variant B to variant C too which is prone to mistakes and bugs.
Is there anyway to connect variant C to variant B, so while aar trying to create C variant's resources, it uses variant B as base rather than variant A? I think it will be possible with adding another dimension to variants, but I prefer to do this without adding new dimensions.