A simple, private odometer history app for Android.
- Create, edit, and delete vehicles with separate odometer histories
- Store independent odometer histories for multiple vehicles
- Add, edit, and delete dated trips with names, notes, and optional times
- Start a trip with its starting odometer and finish it later; unfinished trips stay out of mileage reports
- Persist vehicles and readings with Room and app preferences with DataStore
- Dashboard mileage summaries, recent activity, and a history chart
- Detailed tracked, 30-day, annual, and monthly statistics
- System/light/dark appearance modes, custom RGB accent colour, and garage density controls
- JSON backup/restore and date-range CSV/PDF mileage reports through system file pickers
Kotlin, Jetpack Compose, Material 3, Navigation Compose, Room, DataStore, Hilt, Coroutines, Flow, and KSP.
TripRabbit is fully local and requests no dangerous Android permissions.
The Compose UI uses a customizable colour palette, custom rabbit artwork, and a consistent outline control icon family. Onboarding, dashboard, history, reports, forms, vehicles, settings, and privacy share typography, surfaces, controls, and light/dark palettes. Trips / Reports / Add / Garage / Settings navigation keeps the main destinations close.
Vehicle management is available from Garage. Trips supports search and vehicle filters; Reports supports distance-unit selection and date-range CSV/PDF export for the selected vehicle or all vehicles. The selected accent colour is used in both appearance modes. The installed PNG artwork is documented in UI assets.
The mockup's GPS trip tracking, business/personal classification, and tax deductions are not implemented. Screens show actual local odometer data; weekly bars attribute measured intervals to the day the ending reading was logged.
The project uses a Gradle Java 17 toolchain and can provision a compatible JDK automatically.
./gradlew testDebugUnitTest connectedDebugAndroidTest assembleDebug
./gradlew lintDebugConnected tests require an Android device or emulator. The debug APK is written to
app/build/outputs/apk/debug/app-debug.apk.
Local UI rendering and interaction tests run with Robolectric (no device needed):
./gradlew testDebugUnitTest --tests 'com.jacobgain.triprabbit.ui.UiOverhaulTest'These render the production screens in light/dark themes and at a large font size,
exercise search, filters, validation and deletion, and write review PNGs to
app/build/reports/ui/. The first run downloads the Android test runtime.
Google Play requires an Android App Bundle (.aab) for a new app. Copy
keystore.properties.example to the ignored keystore.properties file and fill
in the upload-keystore path and credentials. Keep the keystore and both passwords
backed up outside this repository; keep using that upload key unless Google Play
has explicitly completed an upload-key reset.
Build and validate the signed release bundle with:
./gradlew check bundleRelease
jarsigner -verify app/build/outputs/bundle/release/app-release.aabThe upload artifact is written to
app/build/outputs/bundle/release/app-release.aab. In Android Studio, use
Build > Generate Signed Bundle or APK, select Android App Bundle (not
APK), select the release variant, and use the same upload keystore.
The .aab, keystore.properties, and common keystore file extensions are
ignored by Git. Never commit or send the upload key or its passwords.
TripRabbit has no accounts, analytics, advertising, network backend, or automatic cloud backup. Vehicle data remains on the device unless the user explicitly exports a JSON backup or CSV file through Android's system file picker. Restoring a backup validates its records, presents a confirmation summary, and then atomically replaces the current local database.
Release-preparation materials live in docs/: the privacy policy,
Google Play submission answers and gates, brand-clearance review, and the U.S.
export compliance review.