Configuration
"/home/yossef/notes/git/projects/inguide/Configuration.md"
path: inguide/Configuration.md
- **fileName**: Configuration
- **Created on**: 2026-06-16 00:48:42
Configuration
Purpose: Environment variables, config files, runtime settings.
AppConfig
File: app/src/main/java/com/inguide/app/AppConfig.kt
| Constant | Value | Purpose |
|---|---|---|
API_URL |
BuildConfig | Chat API endpoint |
APP_NAME |
BuildConfig | Display name |
ENABLE_AI_CHAT |
true | Chat AI feature flag |
ENABLE_LOCATION_TRACKING |
true | Location tracking flag |
ENABLE_INDOOR_POSITIONING |
true | Indoor positioning flag |
BUILDING_PROXIMITY_RADIUS_METERS |
200.0 | AR: max distance from building for AR nav |
MIN_POSITION_CONFIDENCE_RELIABLE |
0.5 | AR: minimum confidence for reliable status |
buildingCenterLng/Lat |
null (mutable) | Set from map metadata at runtime |
BuildConfig
File: app/build.gradle.kts
API_URL— read from.envfile viaquotedEnv("API_URL")API_KEY— XOR-obfuscated from environmentMAPS_API_KEY— from secrets plugin (replaced in manifest placeholder)MAPBOX_TOKEN— debug only, from.envAPP_NAME— from.env
gradle.properties
File: gradle.properties
- Build settings only: jvmargs, AndroidX, R8, caching, Kotlin
- No API credentials — all secrets in
.env
keystore.properties
- Signing key store for release builds
- Not committed to git
.env
- API credentials for local development
- Not committed to git
IndoorPositioningService Constants
| Constant | Value | Purpose |
|---|---|---|
MIN_CONFIDENCE_THRESHOLD |
0.3 | Reject magnetic matches below this |
ArNavigationViewModel Constants
| Constant | Value | Purpose |
|---|---|---|
POSITION_STALENESS_MS |
10,000 | Timeout before "no position" error |
GPS_INTERVAL_MS |
5,000 | GPS update request interval |
GPS_FASTEST_INTERVAL_MS |
2,000 | GPS fastest update interval |
CoordinateRegistration Constants
| Constant | Value | Purpose |
|---|---|---|
| EARTH_RADIUS_METERS | 6,371,008.8 | Haversine formula constant |
| REANCHOR_THRESHOLD_METERS | 2.0 | Max movement before recalibrating AR origin |
| FLOOR_HEIGHT_METERS | 3.0 | Default floor-to-floor height |
Related: ./Home.md, ./Data Model.md
continue:[[]]
before:[[]]