https://kotlinlang.org logo
Title
s

Sangeet

10/31/2018, 10:26 AM
@jw If I am using dagger on kotlin files,
kapt {
    
    arguments {
        arg("dagger.formatGeneratedSource", "disabled")
}
Is this enough ?
k

kingsley

11/05/2018, 3:28 PM
Hi @jw, I was wondering if setting this option once from the annotation processor options in the
android.defaultConfig
block will be sufficient. Something like this:
javaCompileOptions {
            annotationProcessorOptions {
                arguments = [
                        "dagger.formatGeneratedSource": "disabled"
                ]
            }
        }
With this option, do I still need to do it explicitly for both kapt and javac? Thanks.