Patrick Jackson

08/02/2019, 7:25 PM
anyone know how to add a dependency to a specific configuration of a KMP module? i.e. in android module I want to use a certain configuration from the common module in a specific buildflavor Thought it would be along the lines of:
Copy code
implementation project(path: ':common', configuration: 'mock')


08/02/2019, 9:51 PM
I would say go give a look at how the .module format is done and look at the dependency resolution rules to figure out which attributes to spec out to make it match?
another example of it might be the new testFixture stuff in gradle 5.6
fairly certain the testFixture is exactly the sort of thing you are after
it just already has a bunch of DSL sugar on top of it