From f62c7653336822b69b8d2c533d532f48e0c0c73c Mon Sep 17 00:00:00 2001 From: Kizito Nwose Date: Thu, 21 Feb 2019 20:42:39 +0100 Subject: [PATCH] Organise dependencies. --- build.gradle | 8 +++++++- core/build.gradle | 2 +- sample/build.gradle | 6 +++--- support/build.gradle | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index e3ca1b0..ad6b5d7 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,13 @@ allprojects { targetSdkVersion = 28 buildToolsVersion = '28.0.3' versionCode = 8 - versionName = '1.0.7' + versionName = '1.1.0' + + annotationVersion = '1.1.0-alpha01' + preferenceVersion = '1.1.0-alpha03' + preferencev14Version = '1.0.0' + appCompatVersion = '1.1.0-alpha02' + materialVersion = '1.1.0-alpha03' } } diff --git a/core/build.gradle b/core/build.gradle index 9aba5f7..ad897f1 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -22,5 +22,5 @@ android { } dependencies { - api "androidx.annotation:annotation:1.1.0-alpha01" + api "androidx.annotation:annotation:$annotationVersion" } diff --git a/sample/build.gradle b/sample/build.gradle index 67ed921..682a623 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -26,8 +26,8 @@ android { } dependencies { - implementation "androidx.appcompat:appcompat:1.1.0-alpha02" - implementation "com.google.android.material:material:1.1.0-alpha03" + implementation "androidx.appcompat:appcompat:$appCompatVersion" + implementation "com.google.android.material:material:$materialVersion" //compile 'com.github.kizitonwose.colorpreference:core:1.0.6' //compile 'com.github.kizitonwose.colorpreference:support:1.0.6' @@ -40,6 +40,6 @@ dependencies { //You don't need this to use the color preference library. This is only necessary for the //Preference theme in the ColorPreferenceCompat sample activity - implementation "androidx.legacy:legacy-preference-v14:1.0.0" + implementation "androidx.legacy:legacy-preference-v14:$preferencev14Version" } diff --git a/support/build.gradle b/support/build.gradle index 5c5d02c..47e924b 100644 --- a/support/build.gradle +++ b/support/build.gradle @@ -22,6 +22,6 @@ android { } dependencies { - api "androidx.preference:preference:1.1.0-alpha03" + api "androidx.preference:preference:$preferenceVersion" implementation project(':core') }