git clone https://github.com/hooligram/hooligram-client.git
cd hooligram-client
Define environment variables in file named .env in project root:
API_HOST=ws://<domain>:<port>/<end-point>To connect to a localhost server, use 10.0.2.2 as <domain> (for emulators).
Ensure emulator is ready or mobile device is connected to your machine.
yarn or npm install
yarn android or npm run android
adb reverse tcp:8081 tcp:8081For debugging end-to-end, sometimes it's good to connect to a local a hooligram-server.
Assuming a local server is running on ws://localhost:8080 (see the README at the hooligram-server repo on how to run the server locally):
API_HOST=ws://localhost:8080 in .env file.adb tcp:8080 tcp:8080yarn androidFill up android/gradle.properties details.
RELEASE_KEY_ALIAS=*******
RELEASE_KEY_PASSWORD=*******
RELEASE_STORE_FILE=*******
RELEASE_STORE_PASSWORD=*******Put hooligram.keystore file in android/app directory.
cd android
./gradlew assembleRelease
Find the APK here android/app/build/outputs/apk/release/app-release.apk