[Android] Insert variable to groovy strings for versions
Geoffrey Métais
git at videolan.org
Thu Jun 8 14:12:49 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jun 8 09:21:00 2017 +0200| [6bbac577c31ecbedb7d8f7090ab8bba5e231ac0e] | committer: Geoffrey Métais
Insert variable to groovy strings for versions
Allows Android Studio to hint for available library upgrades
> https://code.videolan.org/videolan/vlc-android/commit/6bbac577c31ecbedb7d8f7090ab8bba5e231ac0e
---
api/build.gradle | 2 +-
libvlc/build.gradle | 2 +-
medialibrary/build.gradle | 6 +++---
vlc-android/build.gradle | 15 +++++++--------
4 files changed, 12 insertions(+), 13 deletions(-)
diff --git a/api/build.gradle b/api/build.gradle
index a650600b7..d99459d81 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:'+rootProject.ext.appCompatVersion
+ compile "com.android.support:appcompat-v7:$rootProject.ext.appCompatVersion"
testCompile 'junit:junit:4.12'
}
diff --git a/libvlc/build.gradle b/libvlc/build.gradle
index e43a92e58..453c95bc5 100644
--- a/libvlc/build.gradle
+++ b/libvlc/build.gradle
@@ -104,5 +104,5 @@ clean {
}
dependencies {
- compile 'com.android.support:support-annotations:'+rootProject.ext.appCompatVersion
+ compile "com.android.support:support-annotations:$rootProject.ext.appCompatVersion"
}
diff --git a/medialibrary/build.gradle b/medialibrary/build.gradle
index 90c81eca4..1b06fe690 100644
--- a/medialibrary/build.gradle
+++ b/medialibrary/build.gradle
@@ -63,7 +63,7 @@ clean {
dependencies {
compile project(':libvlc')
- 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
+ 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 34269661a..da7d6950d 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -180,14 +180,13 @@ dependencies {
compile project(':medialibrary')
compile project(':api')
compile project(':axmlrpc')
- 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
+ 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