From d5d22dbc997e0a92087b0d37487618b94753a51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 26 May 2016 15:49:19 +0100 Subject: [PATCH] Update android sdk version Install version 25 now. Also use the smaller tools zip. While at it, also remove the tools re-install - it's not worth it, as long as we keep the initial tools zip up to date. --- buildserver/cookbooks/android-sdk/recipes/default.rb | 8 +++++--- makebuildserver | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/buildserver/cookbooks/android-sdk/recipes/default.rb b/buildserver/cookbooks/android-sdk/recipes/default.rb index 7e76930b..40105a01 100644 --- a/buildserver/cookbooks/android-sdk/recipes/default.rb +++ b/buildserver/cookbooks/android-sdk/recipes/default.rb @@ -8,8 +8,11 @@ script "setup-android-sdk" do user user cwd "/tmp" code " - tar zxvf /vagrant/cache/android-sdk_r24.4.1-linux.tgz - mv android-sdk-linux #{sdk_loc} + unzip /vagrant/cache/android-sdk-tools.zip + mkdir #{sdk_loc} + mkdir #{sdk_loc}/platforms + mkdir #{sdk_loc}/build-tools + mv tools #{sdk_loc}/ " not_if "test -d #{sdk_loc}" end @@ -30,7 +33,6 @@ execute "add-android-sdk-path" do end %w{ - tools platform-tools extra-android-support extra-android-m2repository diff --git a/makebuildserver b/makebuildserver index 0da0c3c8..5ae656f1 100755 --- a/makebuildserver +++ b/makebuildserver @@ -85,9 +85,9 @@ if not os.path.exists(cachedir): os.makedirs(cachedir, 0o755) cachefiles = [ - ('android-sdk_r24.4.1-linux.tgz', - 'https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz', - 'e16917ad685c1563ccbc5dd782930ee1a700a1b6a6fd3e44b83ac694650435e9'), + ('android-sdk-tools.zip', + 'https://dl.google.com/android/repository/tools_r25.1.7-linux.zip', + '3ca053600a86a5a64d5571edfbb1dad27f2bda3bfd2d38e2fe54322610b1ef0b'), ('android-platform-3.zip', 'https://dl.google.com/android/repository/android-1.5_r04-linux.zip', '85b6c8f9797e56aa415d3a282428bb640c96b0acb17c11d41621bb2a5302fe64'),