Skip to content

Commit

Permalink
Update dagger and enable incremental processing (#1001)
Browse files Browse the repository at this point in the history
Also disable formatting to make the build faster.
  • Loading branch information
ahmedre committed Oct 31, 2018
1 parent d3953cf commit 6a43228
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion build.gradle
@@ -1,7 +1,7 @@
buildscript {
ext {
kotlinVersion = '1.3.0'
daggerVersion = '2.17'
daggerVersion = '2.19'
androidxVersion = '1.0.0'
espressoVersion = '3.1.0-beta02'
okhttpVersion = '3.11.0'
Expand Down Expand Up @@ -45,4 +45,18 @@ allprojects {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}

tasks.withType(JavaCompile).all {
options.compilerArgs += [
'-Adagger.formatGeneratedSource=disabled',
'-Adagger.gradle.incremental=enabled'
]
}

afterEvaluate {
extensions.findByName('kapt')?.arguments {
arg("dagger.formatGeneratedSource", "disabled")
arg("dagger.gradle.incremental", "enabled")
}
}
}
1 change: 1 addition & 0 deletions gradle.properties
@@ -1,2 +1,3 @@
android.enableJetifier=true
android.useAndroidX=true
android.enableSeparateAnnotationProcessing=true

0 comments on commit 6a43228

Please sign in to comment.