feat: upgrade to quince
This commit is contained in:
parent
7726bfb1c6
commit
93edbdeea5
@ -2,7 +2,7 @@ variables:
|
||||
TUTOR_PLUGIN: android
|
||||
TUTOR_IMAGES: android
|
||||
TUTOR_PYPI_PACKAGE: tutor-android
|
||||
OPENEDX_RELEASE: palm
|
||||
OPENEDX_RELEASE: quince
|
||||
GITHUB_REPO: overhangio/tutor-android
|
||||
IMAGES_BUILD_PLATFORM: "linux/amd64"
|
||||
|
||||
|
||||
@ -19,6 +19,13 @@ instructions, because git commits are used to generate release notes:
|
||||
|
||||
<!-- scriv-insert-here -->
|
||||
|
||||
<a id='changelog-17.0.0'></a>
|
||||
## v17.0.0 (2023-12-09)
|
||||
|
||||
- 💥 [Feature] Upgrade to Quince (by @muhammadali286).
|
||||
- The nightly branch will now build the master branch of the edx-app-android repository. (by @regisb)
|
||||
- [Improvement] Added Typing to code, Makefile and test action to the repository and formatted code with Black and isort. (by @CodeWithEmad)
|
||||
|
||||
<a id='changelog-16.0.0'></a>
|
||||
## v16.0.0 (2023-06-14)
|
||||
|
||||
|
||||
@ -1 +0,0 @@
|
||||
- [Improvement] Added Typing to code, Makefile and test action to the repository and formatted code with Black and isort. (by @CodeWithEmad)
|
||||
4
setup.py
4
setup.py
@ -43,8 +43,8 @@ setup(
|
||||
packages=find_packages(exclude=["tests*"]),
|
||||
include_package_data=True,
|
||||
python_requires=">=3.8",
|
||||
install_requires=["tutor>=16.0.0,<17.0.0"],
|
||||
extras_require={"dev": ["tutor[dev]>=16.0.0,<17.0.0"]},
|
||||
install_requires=["tutor>=17.0.0,<18.0.0"],
|
||||
extras_require={"dev": ["tutor[dev]>=17.0.0,<18.0.0"]},
|
||||
entry_points={
|
||||
"tutor.plugin.v1": [
|
||||
"android = tutorandroid.plugin"
|
||||
|
||||
@ -1 +1 @@
|
||||
__version__ = "16.0.0"
|
||||
__version__ = "17.0.0"
|
||||
|
||||
@ -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 <contact@overhang.io>"
|
||||
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user