https://kotlinlang.org logo
#android
Title
# android
s

Sangeet

10/31/2018, 10:26 AM
@jw If I am using dagger on kotlin files,
Copy code
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:
Copy code
javaCompileOptions {
            annotationProcessorOptions {
                arguments = [
                        "dagger.formatGeneratedSource": "disabled"
                ]
            }
        }
With this option, do I still need to do it explicitly for both kapt and javac? Thanks.