element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 395 forks source link

Riot-Android Buildkite Weblate Android Matrix room #riot-android:matrix.org Quality Gate Vulnerabilities Bugs

Riot is an Android Matrix client. It is now deprecated and has been replaced by Element Android

Important announcement

The core team is now only working on Element Android. Element Android is now published on the PlayStore as a replacement of Riot-Android. So the code from this project is not published by the core team to the PlayStore, and not published anymore on F-Droid store as well.

Contributing

Please contribute to Element Android now!

Build instructions

This client is a standard Android Studio project.

If you want to compile it in command line with gradle, go to the project directory:

Debug mode:

./gradlew assembleDebug

Release mode:

./gradlew assembleRelease

And it should build the project (you need to have the right Android SDKs)

Recompile the provided aar files until we have Gradle

generate olm-sdk.aar

sh build_olm_lib.sh

generate matrix-sdk.aar

sh build_matrix_sdk_lib.sh

generate the other aar files

sh build_jitsi_libs.sh

compile the Matrix SDK with the riot-android project

sh set_debug_env.sh

Make your own flavour

Let says your application is named MyRiot : You have to create your own flavour.

Modify riot-android/vector/build.gradle

In "productFlavors" section, duplicate "app" group if you plan to use FCM or "appfdroid" if don't.

for example, with FCM, it would give

    appmyriot {
        applicationId "im.myriot"
        // use the version name
        versionCode rootProject.ext.versionCodeProp
        versionName rootProject.ext.versionNameProp
        buildConfigField "boolean", "ALLOW_FCM_USE", "true"
        buildConfigField "String", "SHORT_FLAVOR_DESCRIPTION", "\"F\""
        buildConfigField "String", "FLAVOR_DESCRIPTION", "\"FDroid\""
    }

Create your flavour directory

Customise your flavour

You will need to manage your own provider because "im.vector" is already used (look at VectorContentProvider to manage it).

Customise your application settings with a custom Google Play link

It is possible to set some default values to Riot with some extra parameters to the Google Play link.

FAQ

  1. What is the minimum Android version supported?

    the mininum SDK is 16 (Android 4.1)

  2. Where the apk is generated?

    Riot/build/outputs/apk