-
git clone https://github.com/hooligram/hooligram-client.git -
cd hooligram-client -
Define environment variables in file named
.envin project root:API_HOST=ws://<domain>:<port>/<end-point>
To connect to a localhost server, use
10.0.2.2as<domain>(for emulators). -
Ensure emulator is ready or mobile device is connected to your machine.
-
yarnornpm install -
yarn androidornpm run android
adb reverse tcp:8081 tcp:8081- Open React Native Debugger.
- Shake the device & select Debug JS Remotely.
For 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):
- Set
API_HOST=ws://localhost:8080in.envfile. - Run the emulator.
adb tcp:8080 tcp:8080yarn android- Check out the client & the server logs. You should see that they are interacting with each other!
-
Fill up
android/gradle.propertiesdetails.RELEASE_KEY_ALIAS=******* RELEASE_KEY_PASSWORD=******* RELEASE_STORE_FILE=******* RELEASE_STORE_PASSWORD=*******
-
Put
hooligram.keystorefile inandroid/appdirectory. -
cd android -
./gradlew assembleRelease -
Find the APK here
android/app/build/outputs/apk/release/app-release.apk