Hi all! Does it make sense to only enable KAPT for...
# kapt
s
Hi all! Does it make sense to only enable KAPT for modules only if they are being tested? E.g. run it only if
testDebug
task is being called. Using Anvil right now with
generateDaggerFactories
flag for regular app building flow but we have to use
kaptTest
to build local Dagger components in tests. I feel like this causes unnecessary stub generation tasks to run for regular compilation and was wondering if I could get rid of it somehow while keeping KAPT in tests. think smart
b
This post points to do exactly the opposite (disable for tests) but I assume that it will help you: https://www.google.com/amp/s/www.zacsweers.dev/kapts-hidden-test-costs/amp/