Setup¶
Getting Started¶
- Clone the repository
- Add your Google Maps API key to
secrets.properties: - Place your Firebase
google-services.jsoninapp/(see Firebase Setup) - Build and run the app
Build Commands¶
./gradlew build # Build the project
./gradlew test # Run unit tests
./gradlew detektRun # Run lint checks
./gradlew koverXmlReport # Generate coverage report
./gradlew installDebug # Install on device
./gradlew :module:recordRoborazziDebug # Record screenshot golden images
./gradlew :module:verifyRoborazziDebug # Verify screenshots against golden images
API Keys¶
Google Maps requires an API key configured in secrets.properties at the project root. This file is git-ignored.
Firebase¶
The project uses Firebase Crashlytics and Performance Monitoring. Place your google-services.json in the app/ directory. This file is git-ignored.
Download it from the Firebase Console → Project Settings → Android app. The file must contain client entries for all three package variants:
com.koflox.cyclingassistant(release)com.koflox.cyclingassistant.debug(debug)com.koflox.cyclingassistant.staging(staging)
For CI setup, see CI/CD — Setup Secrets.
Localization¶
The app supports three languages:
| Language | Resource directory |
|---|---|
| English | values/ (default) |
| Russian | values-ru/ |
| Japanese | values-ja/ |
All user-facing strings are defined in res/values/strings.xml. When adding or modifying strings, always add translations to all supported locales.