Régis Behmo af495f3e7d v12.0.1
2021-11-02 16:22:41 +01:00
2021-09-02 14:15:05 +02:00
2021-11-02 16:22:41 +01:00
🌅
2021-04-27 14:45:26 +02:00
2021-09-02 14:15:05 +02:00
🌅
2021-04-27 14:45:26 +02:00
2021-05-18 09:45:22 +02:00

Android application plugin for `Tutor <https://docs.tutor.overhang.io>`__
=========================================================================

This is a plugin to easily build an Android mobile application for your `Open edX <https://open.edx.org>`__ instance.

Installation
------------

::

    pip install tutor-android

Usage
-----

Enable the plugin::

    tutor plugins enable android

To build the application in debug mode, run::

    tutor android build debug

The ``.apk`` file will then be available in ``$(tutor config printroot)/data/android``. Transfer it to an Android phone to install the application. You should be able to sign in and view available courses.

Building a custom Android app
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The Android app is built from the `official edx-app-android repository <https://github.com/edx/edx-app-android/>`__. To change this repository or the app version, you can simply build a different docker image with::

    tutor images build \
        --build-arg ANDROID_APP_REPOSITORY=https://github.com/mycustomfork/edx-app-android \
        --build-arg ANDROID_APP_VERSION=master \
        android

Releasing an Android app
~~~~~~~~~~~~~~~~~~~~~~~~

**Note**: this is an untested feature.

Releasing an Android app on the Play Store requires to build the app in release mode. To do so, edit the ``$TUTOR_ROOT/config.yml`` configuration file and define the following variables::

    ANDROID_RELEASE_STORE_PASSWORD
    ANDROID_RELEASE_KEY_PASSWORD
    ANDROID_RELEASE_KEY_ALIAS

Then, place your keystore file in ``$(tutor config printroot)/env/plugins/android/apps/app.keystore``. Finally, build the application with::

    tutor android build release

Customising the Android app
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Customising the application, such as the logo or the background image, is currently not supported. If you are interested by this feature, please tell us about it in the Tutor `discussion forums <https://discuss.overhang.io>`_.


License
-------

This software is licensed under the terms of the AGPLv3.
Description
Building an Android application for your Open edX platform
Readme 179 KiB
Languages
Python 52.1%
Dockerfile 32.8%
Makefile 15.1%