First build¶
1. Make sure local.properties contains the directory URL¶
The URL must return JSON containing controlPlanes. It can be served as text/plain.
2. Build Android¶
Windows:
macOS/Linux:
The APK is written below:
The Android application ID is com.cbgm.sparrow. Firebase is used only for phone verification by SMS at sign-up; there is no google-services.json. The app takes its Firebase project from FIREBASE_APP_ID, FIREBASE_API_KEY and FIREBASE_PROJECT_ID in local.properties (see Local development); without them it still builds, and debug builds offer a Skip (debug) button in the verification dialog.
3. Run checks¶
On Windows use gradlew.bat if your shell does not execute ./gradlew.
4. Android device tests¶
Start an emulator/device, then:
5. Start servers¶
For a realistic local setup, run one Control Plane and at least one Community Node. See Local development.
6. Run the Android app¶
Run androidApp from Android Studio. On startup:
SparrowApplicationstarts Android Koin wiring and the sharedApp()shell.StartupRoute/StartupViewModelinvokesApplicationStartupRunner.run().- registered waiting
StartupTasks initialize language/crypto, load Control Plane configuration, resolve identity status and complete the other startup gates concurrently. StartupViewModel.completeStartup()navigates toAppRoute.Mainand callsApplicationStartupRunner.startPostNavigationRuntime().- non-waiting startup tasks,
ForegroundRuntimeand the transport/runtime observers continue after navigation; a compatible Community Node becomes the home node and the app builds its circuit through the relays (/v1/relay,/v1/circuit).
iOS note¶
A shared iOS framework and Xcode host exist, but this is not a usable first-build path. Important platform implementations and runtime wiring are still incomplete. Do not use an iOS build as a feature-validation target.
Build cache and generated architecture docs¶
Normal code builds use Gradle's caches. If module dependencies change, regenerate architecture reference:
docs/generated/ is generated output; do not edit it manually.