-
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
ornpm install
-
yarn android
ornpm 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:8080
in.env
file. - Run the emulator.
adb tcp:8080 tcp:8080
yarn android
- Check out the client & the server logs. You should see that they are interacting with each other!
-
Fill up
android/gradle.properties
details.RELEASE_KEY_ALIAS=******* RELEASE_KEY_PASSWORD=******* RELEASE_STORE_FILE=******* RELEASE_STORE_PASSWORD=*******
-
Put
hooligram.keystore
file inandroid/app
directory. -
cd android
-
./gradlew assembleRelease
-
Find the APK here
android/app/build/outputs/apk/release/app-release.apk