[Android] Set licenses keys for gradle to dl tools

Geoffrey Métais git at videolan.org
Tue Dec 20 16:20:39 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Dec 20 16:20:12 2016 +0100| [0d9b96e658745c42d2e3fad20cfd71a4006607d5] | committer: Geoffrey Métais

Set licenses keys for gradle to dl tools

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

 compile.sh | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/compile.sh b/compile.sh
index ae25499..7e5dd94 100755
--- a/compile.sh
+++ b/compile.sh
@@ -157,12 +157,11 @@ if [ ! -f local.properties ]; then
     echo sdk.dir=$ANDROID_SDK > local.properties
     echo ndk.dir=$ANDROID_NDK >> local.properties
 fi
-
-# Download build tools, Android SDK version & Android AppCompat
-for i in "build-tools;25.0.2" "platforms;android-24" "extras;google;m2repository"; do
-    echo "Checking and/or downloading '$i'"
-    yes | $ANDROID_SDK/tools/bin/sdkmanager $i
-done
+if [ ! -d "$ANDROID_SDK/licenses" ]; then
+    mkdir "$ANDROID_SDK/licenses"
+    echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_SDK/licenses/android-sdk-license"
+    echo "84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_SDK/licenses/android-sdk-preview-license"
+fi
 
 ####################
 # Fetch VLC source #



More information about the Android mailing list