diff --git a/Dockerfile b/Dockerfile index b5b1fb1..1600391 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,15 @@ LABEL Description="This image provides a base Android development environment fo ENV DEBIAN_FRONTEND=noninteractive +# Keep the previous SDK as a fallback until we've finished the migration. +ARG ANDROID_BUILD_VERSION_FALLBACK=31 +ARG ANDROID_TOOLS_VERSION_FALLBACK=31.0.0 + # set default build arguments # https://developer.android.com/studio#command-tools ARG SDK_VERSION=commandlinetools-linux-8512546_latest.zip -ARG ANDROID_BUILD_VERSION=31 -ARG ANDROID_TOOLS_VERSION=31.0.0 +ARG ANDROID_BUILD_VERSION=33 +ARG ANDROID_TOOLS_VERSION=33.0.0 ARG BUCK_VERSION=2022.05.05.01 # Buck doesn't support versions beyond NDK 21 # Therefore we need to diverge the NDK version and set NDK_HOME @@ -107,7 +111,9 @@ RUN curl -sS https://dl.google.com/android/repository/${SDK_VERSION} -o /tmp/sdk && yes | sdkmanager "platform-tools" \ "emulator" \ "platforms;android-$ANDROID_BUILD_VERSION" \ + "platforms;android-$ANDROID_BUILD_VERSION_FALLBACK" \ "build-tools;$ANDROID_TOOLS_VERSION" \ + "build-tools;$ANDROID_TOOLS_VERSION_FALLBACK" \ "cmake;$CMAKE_VERSION" \ "system-images;android-21;google_apis;armeabi-v7a" \ "ndk;$NDK_VERSION_BUCK" \