Skip to content

Commit

Permalink
[Android] Update SDK tools to 26.1.1 (#930)
Browse files Browse the repository at this point in the history
  • Loading branch information
pazos authored and Frenzie committed Jun 30, 2019
1 parent 9135bfb commit f07042f
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions toolchain/Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
SHELL:=/bin/bash

# Sdk tools 26.1.1
SDK_TARBALL=sdk-tools-linux-4333796.zip
SDK_DL_URL=https://dl.google.com/android/repository/$(SDK_TARBALL)

SDK_DL_URL=https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
SDK_TARBALL=android-sdk_r24.4.1-linux.tgz
SDK_SUM="978ee9da3dda10fb786709b7c2e924c0"
SDK_SUM="aa190cfd7299cd6a1c687355bb2764e4"
SDK_DIR=android-sdk-linux

android-sdk:
[ -e $(SDK_TARBALL) ] || wget $(SDK_DL_URL)
CHECKSUM=`md5sum $(SDK_TARBALL) | awk '{ print $$1 }'`; \
[[ "$$CHECKSUM" = $(SDK_SUM) ]] || \
{ echo "$(SDK_TARBALL) has the wrong checksum!"; exit 1; }
tar xvf $(SDK_TARBALL)
pushd android-sdk-linux/tools && \
./android update sdk --all -u --filter "platform-tools,build-tools-28.0.3,android-28" && \
popd
rm -f $(SDK_TARBALL)

mkdir -pv $(SDK_DIR)
mv -v $(SDK_TARBALL) $(SDK_DIR)
unzip $(SDK_DIR)/$(SDK_TARBALL) -d $(SDK_DIR)
pushd $(SDK_DIR)/tools/bin && \
yes | ./sdkmanager --update && \
yes | ./sdkmanager --licenses && \
./sdkmanager "platform-tools" "build-tools;28.0.3" "platforms;android-28" "patcher;v4" && \
popd
rm -f $(SDK_DIR)/$(SDK_TARBALL)

NDK_DL_URL=https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip
NDK_TARBALL=android-ndk-r15c-linux-x86_64.zip
NDK_SUM="0bf02d4e8b85fd770fd7b9b2cdec57f9441f27a2"
# NDK r15c
NDK_DIR=android-ndk-r15c
NDK_TARBALL=$(NDK_DIR)-linux-x86_64.zip
NDK_DL_URL=https://dl.google.com/android/repository/$(NDK_TARBALL)
NDK_SUM="0bf02d4e8b85fd770fd7b9b2cdec57f9441f27a2"

android-ndk:
[ -e $(NDK_TARBALL) ] || wget $(NDK_DL_URL)
Expand All @@ -30,3 +36,5 @@ android-ndk:
{ echo "$(NDK_TARBALL) has the wrong checksum!"; exit 1; }
unzip $(NDK_TARBALL)
rm -f $(NDK_TARBALL)

android: android-sdk android-ndk

0 comments on commit f07042f

Please sign in to comment.