● Start · The full path
Installation
from zip to your own build.
The order that works: Firebase, console, token, then the app built against your backend.
01The order
- Check the example buildFollow Quick start so you know your tools work.
- Create the backendFirebase: project, Blaze plan, deploy. You get your
API_BASE_URL. - Run the console and create the ownerConsole.
- Set your token, networks and swapToken, chains and RPC, Swap fee.
- RebrandRebranding: application id, name, colours, icons.
- Build the app against your backendBelow.
- PublishRelease.
02Build the app against your backend
Windows
In PowerShell use .\gradlew.bat instead of ./gradlew, and keep each -P option in double quotes, for example "-PapiBaseUrl=https://...".
export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"
cd app
./gradlew :app:assembleDebug \
-PapiBaseUrl=https://<region>-<project-id>.cloudfunctions.net/api \
-PfirebaseApiKey=<your Firebase web API key>
| Gradle property | Meaning |
|---|---|
-PapiBaseUrl | Your backend, the function URL or your own domain with a Hosting rewrite. Default in the source is a placeholder. |
-PfirebaseApiKey | Optional override of the Firebase web API key. The console field App connection can supply it instead (the app reads it from /v1/config). The key is used only for anonymous sign-in. |
-PexampleMode=true | The demo variant with fictional data and no network. Never ship it. |
Install the APK as in Quick start. On first start without a token set in the console, the home screen says the project has not set a token yet; it never shows a placeholder token.
03Run the project tests (optional)
cd app && ./gradlew :core:test :app:testDebugUnitTest :app:lint
cd ../firebase/functions && npm ci && npm run test:all # test:all also runs the rules tests, which need Java 21+ and the Firebase CLI
cd ../../admin && npm ci && npm test
Use ; instead of && in older Windows PowerShell, or run each line on its own.