Also, how do I use gradle kotlin dsl to enable `ge...
# squarelibraries
d
Also, how do I use gradle kotlin dsl to enable
generateDaggerFactories.set(true)
only when not compiling the module for tests (I declare a component in the tests but not in the main module's code)? I noticed the
variantFilter
I just don't see how it works...?
r
In Groovy something like that should work. With .kts it should be similar
Copy code
anvil {
  variantFilter {
    generateDaggerFactories = name == 'main'
  }
}
d
👍🏼