Skip to content

Commit

Permalink
AL-5: Upgrade Gradle 8.11.1, Build Tools 36.0.0-rc1, NDK 28.0.1267408…
Browse files Browse the repository at this point in the history
…7, Android API 35. Ubuntu 24.04
  • Loading branch information
nnhthuan committed Dec 12, 2024
1 parent 79bedb0 commit d088a14
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
24 changes: 13 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Docker Hub: https://hub.docker.com/r/simplatex/android-lightweight

FROM ubuntu:23.10
FROM ubuntu:24.04

LABEL maintainer "simplatex.com.au@gmail.com"

Expand All @@ -13,18 +13,20 @@ ARG DEBIAN_FRONTEND=noninteractive

# Version of tools:
# In Code
ARG GRADLE_VERSION=8.2.1
ARG ANDROID_API_LEVEL=34
ARG GRADLE_VERSION=8.11.1
ARG ANDROID_API_LEVEL=35
# https://developer.android.com/studio/releases/build-tools
ARG ANDROID_BUILD_TOOLS_LEVEL=34.0.0
ARG ANDROID_BUILD_TOOLS_LEVEL=36.0.0-rc1
# https://developer.android.com/ndk/downloads
ARG ANDROID_NDK_VERSION=26.1.10909125
ARG ANDROID_NDK_VERSION=28.0.12674087
# https://developer.android.com/studio/
ARG ANNDROID_CMD_LINE_TOOLS=linux-11076708_latest
ARG ANDROID_CMD_LINE_TOOLS=linux-11076708_latest
# https://developer.android.com/build/jdks
ARG OPEN_JDK=openjdk-17-jdk

# Dependencies and needed tools
# Dependencies and tools
RUN apt update -qq
RUN apt install -qq -y openjdk-17-jdk vim git unzip libglu1 libpulse-dev libasound2 libc6 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxi6 libxtst6 libnss3 wget
RUN apt install -qq -y ${OPEN_JDK} vim git unzip libglu1 libpulse-dev libasound2 libc6 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxi6 libxtst6 libnss3 wget

# Download gradle, install gradle and gradlew
RUN wget -q https://services.gradle.org/distributions/gradle-${GRADLE_VERSION}-bin.zip -P /tmp
Expand All @@ -37,8 +39,8 @@ RUN /opt/gradle/gradle-${GRADLE_VERSION}/bin/gradle wrapper -p /opt/gradlew
# Download commandlinetools
RUN mkdir /opt/android
RUN mkdir /opt/android/cmdline-tools
RUN wget -q https://dl.google.com/android/repository/commandlinetools-${ANNDROID_CMD_LINE_TOOLS}.zip -P /tmp
RUN unzip -q -d /opt/android/cmdline-tools /tmp/commandlinetools-${ANNDROID_CMD_LINE_TOOLS}.zip
RUN wget -q https://dl.google.com/android/repository/commandlinetools-${ANDROID_CMD_LINE_TOOLS}.zip -P /tmp
RUN unzip -q -d /opt/android/cmdline-tools /tmp/commandlinetools-${ANDROID_CMD_LINE_TOOLS}.zip

# install packages and accept all licenses
# cmdline-tools/cmdline-tools - the second "cmdline-tools" is the folder in the zip file
Expand All @@ -54,4 +56,4 @@ ENV LD_LIBRARY_PATH "$ANDROID_HOME/emulator/lib64:$ANDROID_HOME/emulator/lib64/q

# Clean up
RUN rm /tmp/gradle-${GRADLE_VERSION}-bin.zip \
&& rm /tmp/commandlinetools-${ANNDROID_CMD_LINE_TOOLS}.zip
&& rm /tmp/commandlinetools-${ANDROID_CMD_LINE_TOOLS}.zip
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

Android Lightweight is a very lightweight docker image for Android, which contains only the latest version of Android Libraries:

- Ubuntu 24.04
- OpenJDK 17
- Gradle 8.2.1
- Android API 34
- Android Build Tools 34.0.0
- Android NDK (Side by side) 26.1.10909125
- Gradle 8.11.1
- Android API 35
- Android Build Tools 36.0.0-rc1
- Android NDK (Side by side) 28.0.12674087
- Command line tools linux-11076708_latest
- Accepted all licenses

Expand Down

0 comments on commit d088a14

Please sign in to comment.