-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7726bfb
commit 93edbde
Showing
6 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "16.0.0" | ||
__version__ = "17.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
FROM docker.io/ubuntu:22.04 AS base | ||
# syntax=docker/dockerfile:1 | ||
FROM docker.io/ubuntu:23.10 AS base | ||
LABEL maintainer="Overhang.IO <[email protected]>" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/var/cache/apt,sharing=locked \ | ||
--mount=type=cache,target=/var/lib/apt,sharing=locked {% endif %}apt update && \ | ||
apt upgrade -y && \ | ||
apt install -y wget unzip git openjdk-11-jre openjdk-11-jdk | ||
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ | ||
--mount=type=cache,target=/var/lib/apt,sharing=locked apt update && \ | ||
apt upgrade -y && \ | ||
apt install -y wget unzip git openjdk-17-jre openjdk-17-jdk | ||
|
||
RUN mkdir /app | ||
|
||
|
@@ -15,7 +16,7 @@ FROM base AS sdk | |
# Install Android SDK | ||
# Inspired from https://github.com/LiveXP/docker-android-sdk/blob/master/Dockerfile | ||
# Get sdk version from here: https://developer.android.com/studio#command-tools | ||
ENV ANDROID_SDK_VERSION 9477386 | ||
ENV ANDROID_SDK_VERSION 10406996 | ||
ENV ANDROID_SDK_PATH /app/android-sdk | ||
ENV ANDROID_HOME /app/android-sdk | ||
RUN mkdir ${ANDROID_HOME} | ||
|
@@ -27,15 +28,17 @@ RUN wget --quiet https://dl.google.com/android/repository/commandlinetools-linux | |
# Accept licenses | ||
# https://developer.android.com/studio/command-line/sdkmanager | ||
# Check target version: https://github.com/edx/edx-app-android/blob/master/constants.gradle | ||
ARG ANDROID_API_LEVEL=31 | ||
ARG ANDROID_API_LEVEL=33 | ||
RUN yes | /app/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=${ANDROID_HOME} --install "platforms;android-$ANDROID_API_LEVEL" 1> /dev/null | ||
|
||
###### Checkout code | ||
FROM base AS code | ||
# Install android app repo | ||
ARG ANDROID_APP_REPOSITORY=https://github.com/openedx/edx-app-android | ||
ARG ANDROID_APP_VERSION=release/{{ ANDROID_APP_VERSION }} | ||
RUN git clone $ANDROID_APP_REPOSITORY --branch $ANDROID_APP_VERSION /app/edx-app-android | ||
ARG ANDROID_APP_REPOSITORY=https://github.com/openedx/edx-app-android.git | ||
|
||
# Please add ANDROID_APP_VERSION value in tutor config from release version https://github.com/openedx/edx-app-android/tags | ||
ARG ANDROID_APP_VERSION={% if OPENEDX_COMMON_VERSION == "master" %}master{% else %}release/{{ ANDROID_APP_VERSION }}{% endif %} | ||
ADD --keep-git-dir $ANDROID_APP_REPOSITORY#$ANDROID_APP_VERSION /app/edx-app-android | ||
|
||
###### Empty layer to mount custom repo at build time | ||
FROM scratch AS edx-app-android | ||
|
@@ -63,7 +66,8 @@ COPY ./config/gradle.properties ./gradle.properties.tutor | |
RUN cat ./gradle.properties.tutor >> ./gradle.properties | ||
{% endif %} | ||
|
||
RUN sed -i "s/APPLICATION_ID = .*/APPLICATION_ID = \"{{ LMS_HOST|reverse_host|replace("-", "_") }}\"/g" constants.gradle | ||
# uncomment this line for for release APK. | ||
# RUN sed -i "s/APPLICATION_ID = .*/APPLICATION_ID = \"{{ LMS_HOST|reverse_host|replace("-", "_") }}\"/g" constants.gradle | ||
RUN ./gradlew assembleProd{{ "Release" if ANDROID_ENABLE_RELEASE_MODE else "Debuggable" }} | ||
|
||
#### File server to serve apk file | ||
|