[Android] Set project values in main gradle file
Geoffrey Métais
git at videolan.org
Wed Apr 19 17:32:16 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Apr 19 17:23:28 2017 +0200| [6e8f98c4788e0f6c161a03ab8e2ff51211c4355d] | committer: Geoffrey Métais
Set project values in main gradle file
> https://code.videolan.org/videolan/vlc-android/commit/6e8f98c4788e0f6c161a03ab8e2ff51211c4355d
---
build.gradle | 4 ++++
vlc-android/build.gradle | 8 ++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/build.gradle b/build.gradle
index 5756ab4..a79f0f7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -18,4 +18,8 @@ allprojects {
ext {
buildToolsVersion = "25.0.2"
compileSdkVersion = 25
+ minSdkVersion = 9
+ targetSdkVersion = 25
+ versionCode = 2010400
+ versionName = '2.1.4'
}
diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index 38ef72e..7b88dc6 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -51,10 +51,10 @@ android {
resValue "string", "build_revision", revision()
resValue "string", "build_vlc_revision", vlcRevision()
- minSdkVersion 9
- targetSdkVersion 25
- versionCode 2010400
- versionName '2.1.4'
+ minSdkVersion rootProject.ext.minSdkVersion
+ targetSdkVersion rootProject.ext.targetSdkVersion
+ versionCode rootProject.ext.versionCode
+ versionName rootProject.ext.versionName
tasks.whenTaskAdded { task ->
if (task.name.startsWith('merge')) {
More information about the Android
mailing list