android - How can I provide a "fakes" product flavor without also specifying a "real" (default) product flavor? -
i want provide build variant fake implementation of interfaces provided module. can use productflavors achieve this
android { flavordimensions "realorfake" productflavors { fakes {...} real {...} } } this generates 4 build variants
fakesdebugfakesreleaserealassemblerealrelease
however want provide default configuration, , optional fakes configuration (i don't want define real product flavor. 4 build variants should be:
fakesdebugfakesreleasedebugrelease
is possible? or have provide real product flavor , utilize matchingfallbacks? want avoid every downstream module having specify real flavor. i'd want compile use upstream's real product flavor, , testcompile use upstream's fakes product flavor.
note: using android gradle plugin 3.0
Comments
Post a Comment