Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

tchapgouv/tchap-android-legacy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tchap-Android [Deprecated]

Tchap-Android is an Android Matrix client. It is now deprecated and has been replaced by Tchap-Android-v2.

Get it on Google Play

⚠️ Important announcement

The core team is now only working on Tchap-Android-v2. Tchap-Android-v2 is now published on the PlayStore as a replacement of Tchap-Android. So the code from this project is not published by the core team to the PlayStore.

Contributing

Please refer to CONTRIBUTING.md if you want to contribute on the project!

Build instructions

This client is a standard android studio project.

Several flavorDimensions are defined: "base", "target", "voip", "pinning".

  • The 'base' dimension permits to deal with GooglePlay/Fdroid app
  • The 'target' dimension permits to specify which platform are used
  • The 'voip' flavor dimension permits to include/exclude jitsi at compilation time
  • The 'pinning' flavor dimension permits to enable/disable certificate pinning with fingerprint check

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

Debug mode:

./gradlew assembleAppAgentWithoutvoipWithpinningDebug

Release mode:

./gradlew assembleAppAgentWithoutvoipWithpinningRelease

Matrix Android SDK

By default the tchap-android project will build with the current version of the Matrix SDK libs (matrix-sdk.aar, matrix-sdk-core.aar and matrix-sdk-crypto.aar) available in the tchap-android/vector/libs/ directory.

To compile the Matrix Android SDK with the tchap-android project:

  • Clone the matrix-android-sdk repository in the same directory as tchap-android, and checkout the wanted branch or revision.
  • Run the following script:

sh compile_with_sdk_project.sh

You may compile again with the available Matrix SDK libs by running:

sh compile_with_sdk_lib.sh

You may update/replace the Matrix SDK libs (in tchap-android/vector/libs/ dir) thanks to the following steps:

  • Clone the matrix-android-sdk repository in the same directory as tchap-android, and checkout the wanted branch or revision.
  • Run the dedicated script:

sh build_matrix_sdk_lib.sh

FAQ

  1. What is the minimum android version supported?

    the mininum SDK is 16 (android 4.1)

  2. Where the apk is generated?

    tchap-android/vector/build/outputs/apk