Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/livelace/mattermost-mobile-android-build

A quick way to build mattermost mobile client for Android devices.
https://github.com/livelace/mattermost-mobile-android-build

android-sdk android-tools docker fastlane gradle nodejs react-native

Last synced: 5 days ago
JSON representation

A quick way to build mattermost mobile client for Android devices.

Awesome Lists containing this project

README

        

### WARNING: Compatible 2.17+

## Description:

This project is a Docker image for building [Android version](https://play.google.com/store/apps/details?id=com.mattermost.rn) of [Mattermost Mobile Client](https://github.com/mattermost/mattermost-mobile). The primary audience - persons who want to use their own [Mobile Push Notifications](https://developers.mattermost.com/contribute/mobile/push-notifications/) service (you will use Google servers anyway).

## Usage:

**Prepare working directories:**

```bash
mkdir conf data
chmod 777 conf data
```

**Get help information:**

```bash
docker run -ti --rm \
-v $(pwd)/conf:/conf \
-v $(pwd)/data:/data \
livelace/mattermost-mobile-android-build help
```

**Generate key and keystore (for APK signing):**

```bash
keytool -genkey -v -keystore conf/android-apk-signing.keystore \
-alias -keyalg RSA -keysize 2048 -validity 10000
```

**Place FCM ([Firebase Cloud Messaging](https://en.wikipedia.org/wiki/Firebase_Cloud_Messaging)) configuration ([how to get one](https://developers.mattermost.com/contribute/mobile/push-notifications/android/)):**

```bash
cp google-services.json conf/google-services.json
```

**Initialize configuration:**

```bash
docker run -ti --rm \
-v $(pwd)/conf:/conf \
-v $(pwd)/data:/data \
livelace/mattermost-mobile-android-build init
```

**Edit configuration:**

```bash
cp conf/build-sample.conf conf/build.conf
vim conf/build.conf
```

**Build application:**

```bash
docker run -ti --rm \
-v $(pwd)/conf:/conf \
-v $(pwd)/data:/data \
livelace/mattermost-mobile-android-build build
```

**Install application:**

```bash
adb install data//mattermost-mobile/.apk
```

**Clean produced data:**

```bash
docker run -ti --rm \
-v $(pwd)/conf:/conf \
-v $(pwd)/data:/data \
livelace/mattermost-mobile-android-build clean
```