From 3e168e6d9805e845dd023bd36b483a56a97f984b Mon Sep 17 00:00:00 2001 From: Stefan Schueller Date: Fri, 1 Oct 2021 18:18:30 +0200 Subject: [PATCH] fix: android update --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1059b35..bc1a1d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ -FROM gradle:7.2-jdk16 +FROM gradle:7-jdk16 -# Go to https://developer.android.com/studio/releases/platform-tools -ENV ANDROID_SDK_URL https://dl.google.com/android/repository/platform-tools-latest-linux.zip +# get link at bottom of https://developer.android.com/studio +ENV ANDROID_SDK_URL https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip +ENV ANDROID_SDK_CHECKSUM 124f2d5115eee365df6cf3228ffbca6fc3911d16f8025bebd5b1c6e2fcfa7faf ENV ANDROID_BUILD_TOOLS_VERSION 29.0.3 ENV ANDROID_HOME /usr/local/android-sdk-linux ENV ANDROID_VERSION 29 @@ -10,6 +11,7 @@ ENV PATH ${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools RUN mkdir "$ANDROID_HOME" .android && \ cd "$ANDROID_HOME" && \ curl -o sdk.zip $ANDROID_SDK_URL && \ + echo "${ANDROID_SDK_CHECKSUM} sdk.zip" | sha256sum -c - && \ unzip sdk.zip && \ rm sdk.zip