https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
d

dave08

06/23/2021, 1:21 PM
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

ralf

06/23/2021, 4:46 PM
In Groovy something like that should work. With .kts it should be similar
Copy code
anvil {
  variantFilter {
    generateDaggerFactories = name == 'main'
  }
}
d

dave08

06/24/2021, 9:12 AM
👍🏼
2 Views