This project is a fork of mattermost-mobile-android-build, which has been updated for the latest version of Mattermost.
Mattermost Mobile version | Branch |
---|---|
2.16 | Link |
1.55 (original) | Link |
This project is a Docker image for building Android version of Mattermost Mobile Client. The primary audience - persons who want to use their own Mobile Push Notifications service (you will use Google servers anyway).
Prepare working directories:
mkdir conf data
chmod 777 conf data
Get help information:
docker run -ti --rm \
-v $(pwd)/conf:/conf \
-v $(pwd)/data:/data \
ghcr.io/zarenoff/mmab:2.16 help
Generate key and keystore (for APK signing):
keytool -genkey -v -keystore conf/android-apk-signing.keystore \
-alias <KEY_ALIAS> -keyalg RSA -keysize 2048 -validity 10000
Place FCM (Firebase Cloud Messaging) configuration (how to get one):
cp google-services.json conf/google-services.json
Initialize configuration:
docker run -ti --rm \
-v $(pwd)/conf:/conf \
-v $(pwd)/data:/data \
ghcr.io/zarenoff/mmab:2.16 init
Edit configuration:
cp conf/build-sample.conf conf/build.conf
vim conf/build.conf
Build application:
docker run -ti --rm \
-v $(pwd)/conf:/conf \
-v $(pwd)/data:/data \
ghcr.io/zarenoff/mmab:2.16 build
Install application:
adb install data/<BRANCH_TO_BUILD>/mattermost-mobile/<APP_NAME>.apk
Clean produced data:
docker run -ti --rm \
-v $(pwd)/conf:/conf \
-v $(pwd)/data:/data \
ghcr.io/zarenoff/mmab:2.16 clean