From dadfcb7c16313c3e84af6779f3e0857379da5c74 Mon Sep 17 00:00:00 2001 From: olegivo Date: Tue, 8 Oct 2019 13:57:18 +0300 Subject: [PATCH] extracted AUTO_FACTORY_VERSION --- android/gradle.properties | 1 + android/uhabits-android/build.gradle | 6 +++--- android/uhabits-core/build.gradle | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/android/gradle.properties b/android/gradle.properties index 00b5b964a..daa1f5d46 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -9,6 +9,7 @@ DAGGER_VERSION = 2.9 BUILD_TOOLS_VERSION = 27.0.3 KOTLIN_VERSION = 1.2.41 SUPPORT_LIBRARY_VERSION = 27.1.1 +AUTO_FACTORY_VERSION = 1.0-beta3 org.gradle.parallel=false org.gradle.daemon=true diff --git a/android/uhabits-android/build.gradle b/android/uhabits-android/build.gradle index 85df89fa2..dc1f20fbb 100644 --- a/android/uhabits-android/build.gradle +++ b/android/uhabits-android/build.gradle @@ -111,17 +111,17 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$KOTLIN_VERSION" compileOnly "javax.annotation:jsr250-api:1.0" - compileOnly "com.google.auto.factory:auto-factory:1.0-beta3" + compileOnly "com.google.auto.factory:auto-factory:${AUTO_FACTORY_VERSION}" kapt "com.google.dagger:dagger-compiler:$DAGGER_VERSION" kapt "com.jakewharton:butterknife-compiler:8.6.1-SNAPSHOT" - kapt "com.google.auto.factory:auto-factory:1.0-beta3" + kapt "com.google.auto.factory:auto-factory:${AUTO_FACTORY_VERSION}" androidTestImplementation "com.android.support.test.espresso:espresso-contrib:2.2.2" androidTestImplementation "com.android.support.test.espresso:espresso-core:2.2.2" androidTestImplementation "com.android.support.test.uiautomator:uiautomator-v18:2.1.1" androidTestImplementation "com.google.dagger:dagger:$DAGGER_VERSION" androidTestImplementation "com.linkedin.testbutler:test-butler-library:1.3.1" - androidTestCompileOnly "com.google.auto.factory:auto-factory:1.0-beta3" + androidTestCompileOnly "com.google.auto.factory:auto-factory:${AUTO_FACTORY_VERSION}" androidTestImplementation "com.android.support:support-annotations:$SUPPORT_LIBRARY_VERSION" androidTestImplementation "com.android.support.test:rules:0.5" androidTestImplementation "com.android.support.test:runner:0.5" diff --git a/android/uhabits-core/build.gradle b/android/uhabits-core/build.gradle index 1a0bb7763..f53fd970c 100644 --- a/android/uhabits-core/build.gradle +++ b/android/uhabits-core/build.gradle @@ -6,12 +6,12 @@ apply plugin: 'java' apply plugin: 'jacoco' dependencies { - apt 'com.google.auto.factory:auto-factory:1.0-beta3' + apt "com.google.auto.factory:auto-factory:${AUTO_FACTORY_VERSION}" apt 'com.google.dagger:dagger:2.11-rc2' compileOnly 'javax.annotation:jsr250-api:1.0' compileOnly 'org.jetbrains:annotations-java5:15.0' - compileOnly 'com.google.auto.factory:auto-factory:1.0-beta3' + compileOnly "com.google.auto.factory:auto-factory:${AUTO_FACTORY_VERSION}" compileOnly 'com.google.dagger:dagger:2.11-rc2' implementation "com.android.support:support-annotations:$SUPPORT_LIBRARY_VERSION"