[Android] Factorize AppCompat version setting
Geoffrey Métais
git at videolan.org
Thu May 11 16:53:32 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu May 11 11:21:11 2017 +0200| [201e2c416dc8208c34821fd17dc8ba9982d87072] | committer: Geoffrey Métais
Factorize AppCompat version setting
> https://code.videolan.org/videolan/vlc-android/commit/201e2c416dc8208c34821fd17dc8ba9982d87072
---
api/build.gradle | 2 +-
build.gradle | 2 ++
libvlc/build.gradle | 2 +-
medialibrary/build.gradle | 6 +++---
vlc-android/build.gradle | 16 ++++++++--------
5 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/api/build.gradle b/api/build.gradle
index 1656841..a650600 100644
--- a/api/build.gradle
+++ b/api/build.gradle
@@ -46,6 +46,6 @@ task generateSources (type: Jar) {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
- compile 'com.android.support:appcompat-v7:25.2.0'
+ compile 'com.android.support:appcompat-v7:'+rootProject.ext.appCompatVersion
testCompile 'junit:junit:4.12'
}
diff --git a/build.gradle b/build.gradle
index dbb65ed..dd61f2c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -16,6 +16,8 @@ allprojects {
}
ext {
+ appCompatVersion = '25.2.0'
+ constraintLayoutVersion = '1.0.2'
buildToolsVersion = "25.0.2"
compileSdkVersion = 25
minSdkVersion = 9
diff --git a/libvlc/build.gradle b/libvlc/build.gradle
index 06dc8a7..e43a92e 100644
--- a/libvlc/build.gradle
+++ b/libvlc/build.gradle
@@ -104,5 +104,5 @@ clean {
}
dependencies {
- compile 'com.android.support:support-annotations:25.2.0'
+ compile 'com.android.support:support-annotations:'+rootProject.ext.appCompatVersion
}
diff --git a/medialibrary/build.gradle b/medialibrary/build.gradle
index 858de2a..90c81ec 100644
--- a/medialibrary/build.gradle
+++ b/medialibrary/build.gradle
@@ -63,7 +63,7 @@ clean {
dependencies {
compile project(':libvlc')
- compile 'com.android.support:support-v4:25.2.0'
- compile 'com.android.support:support-compat:25.2.0'
- compile 'com.android.support:support-fragment:25.2.0'
+ compile 'com.android.support:support-v4:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support:support-compat:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support:support-fragment:'+rootProject.ext.appCompatVersion
}
\ No newline at end of file
diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index 7b88dc6..eab2d6b 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -180,14 +180,14 @@ dependencies {
compile project(':medialibrary')
compile project(':api')
compile project(':axmlrpc')
- compile 'com.android.support:appcompat-v7:25.2.0'
- compile 'com.android.support:recyclerview-v7:25.2.0'
- compile 'com.android.support:design:25.2.0'
- compile 'com.android.support:support-annotations:25.2.0'
- compile 'com.android.support:preference-v7:25.2.0'
- compile 'com.android.support:leanback-v17:25.2.0'
- compile 'com.android.support:preference-leanback-v17:25.2.0'
- compile 'com.android.support.constraint:constraint-layout:1.0.2'
+ compile 'com.android.support:appcompat-v7:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support:recyclerview-v7:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support:design:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support:support-annotations:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support:preference-v7:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support:leanback-v17:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support:preference-leanback-v17:'+rootProject.ext.appCompatVersion
+ compile 'com.android.support.constraint:constraint-layout:'+rootProject.ext.constraintLayoutVersion
testCompile 'junit:junit:4.12'
}
More information about the Android
mailing list