[Android] Build sdk manager from github sources

Geoffrey Métais git at videolan.org
Mon Apr 4 16:16:47 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Apr  4 16:15:54 2016 +0200| [c07d24c95739cc2105cdd69d953535c27d833086] | committer: Geoffrey Métais

Build sdk manager from github sources

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

 .gitignore |  2 +-
 compile.sh | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/.gitignore b/.gitignore
index 78f0081..b439edb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,7 +38,7 @@ java-libs/appcompat/.project
 gradle.properties
 gradlew.bat
 gradlew
-gradle/wrapper/
+gradle/
 .gradle/
 build/
 vlc-android/build/
diff --git a/compile.sh b/compile.sh
index 7505bb6..21b6c58 100755
--- a/compile.sh
+++ b/compile.sh
@@ -99,6 +99,28 @@ if [ ! -d "gradle/wrapper" ]; then
     rm -rf gradle-${GRADLE_VERSION}-all.zip gradle-${GRADLE_VERSION}
 fi
 
+###############
+# SDK Manager #
+###############
+
+if [ ! -f "gradle/plugins/sdk-manager-plugin.jar" ]; then
+    cd gradle/
+    if [ -d "sdk-manager-plugin" ]; then
+        rm -rf sdk-manager-plugin
+    fi
+    git clone https://github.com/JakeWharton/sdk-manager-plugin.git
+    cd sdk-manager-plugin
+    git reset --hard 1d29782dd6ffa18880c8cbada748fb3dea45e7be
+    ./gradlew assemble
+    cd ..
+    if [ ! -d "plugins" ]; then
+        mkdir plugins
+    fi
+    mv sdk-manager-plugin/build/libs/sdk-manager-plugin-1.5.0-SNAPSHOT.jar plugins/sdk-manager-plugin.jar
+    rm -rf sdk-manager-plugin
+    cd ..
+fi
+
 ####################
 # Configure gradle #
 ####################



More information about the Android mailing list