From 5fae1df78c610f75fae232ec2c353c6143ee350b Mon Sep 17 00:00:00 2001 From: seven332 Date: Sat, 22 Apr 2017 20:48:26 +0800 Subject: [PATCH] Update libraries --- app/build.gradle | 6 +++--- build.gradle | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 25bfad513..80b76ef37 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -52,13 +52,13 @@ clean { dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') - compile 'com.android.support:appcompat-v7:25.1.0' - compile 'com.android.support:design:25.1.0' + compile "com.android.support:appcompat-v7:$supportLibrary" + compile "com.android.support:design:$supportLibrary" compile 'com.github.amlcurran.showcaseview:library:5.4.3' compile 'com.github.seven332:animator:0.1.0' compile 'com.github.seven332:beerbelly:0.1.4' compile 'com.github.seven332:conaco:0.1.5-eh' - compile 'com.github.seven332:drawerlayout:0.1.0' + compile 'com.github.seven332:drawerlayout:0.2.1' compile 'com.github.seven332:easyrecyclerview:0.1.1' compile 'com.github.seven332:glgallery:0.1.2' compile 'com.github.seven332:glview:0.1.0' diff --git a/build.gradle b/build.gradle index 893aac00e..fccd27849 100644 --- a/build.gradle +++ b/build.gradle @@ -24,3 +24,19 @@ allprojects { task clean(type: Delete) { delete rootProject.buildDir } + +ext { + supportLibrary = '25.3.1' +} + +subprojects { + project.configurations.all { + resolutionStrategy.eachDependency { details -> + // Keep all android support library update to date + if (details.requested.group == 'com.android.support' + && !details.requested.name.contains('multidex') ) { + details.useVersion "$supportLibrary" + } + } + } +}