[Android] Configure app in gradle

Geoffrey Métais git at videolan.org
Fri Apr 7 17:36:21 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Apr  7 17:26:39 2017 +0200| [01b91f5e7332d74bd63ba0947946b3da6e12e06f] | committer: Geoffrey Métais

Configure app in gradle

> https://code.videolan.org/videolan/vlc-android/commit/01b91f5e7332d74bd63ba0947946b3da6e12e06f
---

 vlc-android/AndroidManifest.xml | 6 +-----
 vlc-android/build.gradle        | 5 +++++
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
index 573bcb9..9244286 100644
--- a/vlc-android/AndroidManifest.xml
+++ b/vlc-android/AndroidManifest.xml
@@ -2,9 +2,7 @@
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     package="org.videolan.vlc"
-    android:installLocation="auto"
-    android:versionCode="02010400"
-    android:versionName="2.1.4">
+    android:installLocation="auto">
     <!--
          versionCode scheme is T M NN RR AA
          T: Target/Flavour (1 for Android, 2 for Chrome?)
@@ -25,8 +23,6 @@
     -->
 
     <uses-sdk
-        android:minSdkVersion="9"
-        android:targetSdkVersion="25"
         tools:overrideLibrary="android.support.v17.leanback, android.support.v14.preference, android.support.v17.preference" />
 
     <uses-permission android:name="android.permission.READ_LOGS"
diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index f2de38e..5a30826 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -53,6 +53,11 @@ android {
         resValue "string", "build_revision", revision()
         resValue "string", "build_vlc_revision", vlcRevision()
 
+        minSdkVersion 9
+        targetSdkVersion 25
+        versionCode 2010400
+        versionName '2.1.4'
+
         tasks.whenTaskAdded { task ->
             if (task.name.startsWith('merge')) {
                 task.dependsOn luaPlaylistCopy



More information about the Android mailing list