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

  • fakesdebug
  • fakesrelease
  • realassemble
  • realrelease

however want provide default configuration, , optional fakes configuration (i don't want define real product flavor. 4 build variants should be:

  • fakesdebug
  • fakesrelease
  • debug
  • release

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

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -