Skip to content
Francesco Castaldi
← Apps & tools

Fuel Ledger

An offline Android vehicle logbook in Kotlin and Jetpack Compose for fuel consumption, range prediction, salary-cycle analytics, expenses and reminders.

Role
Author
When
October to November 2026
Stack
Kotlin, Jetpack Compose, Room, WorkManager, Glance, ML Kit

Context

Fuel Ledger started as a replacement for spreadsheets and cloud-only car trackers: a local-first Android logbook with an amber instrument cluster aesthetic that stays completely offline unless the user explicitly triggers a backup sync or an app update check.

What I built

  • Domain and UDF architecture (v0.12.0 to v0.14.0). Pure Kotlin repository interfaces backed by Room 2.6, a framework-free use-case layer, and ten ViewModels structured around Unidirectional Data Flow (UiState, UiAction, UiEvent), shared across the phone app, Jetpack Glance wide widget and Android Auto.
  • Consumption and range prediction. Full-to-full distance-weighted consumption calculations (L/100 km and km/L), mid-tank telemetry checkpoints, and a FuelPredictionEngine estimating daily burn rate, remaining days of fuel and calibrated range decay.
  • On-device scanning. Receipt OCR via bundled ML Kit text recognition (photos are discarded after parsing) and live camera dashboard reading for odometer and remaining range without saving frames.
  • Analytics and reminders. Salary-cycle spending periods (10th to 9th), km/day charts, multi-vehicle CSV import/export, WorkManager maintenance notifications, optional two-way Supabase sync and in-app GitHub APK updates verified against SHA-256 digests and signing certificates.

Distribution

Signed APKs are published through GitHub Releases and the project site; the app/ source tree on GitHub is encrypted with transcrypt while documentation, changelog, screenshots and releases remain public.

← All projects