A personal expense manager for Android. Track daily spending by category and subcategory, browse a calendar of transactions, and review insights with category breakdowns, savings, and investment ledgers — all offline, all on-device.
- Expense and income tracking with amount, category, subcategory, date, and note
- 11 built-in categories, each with subcategories (plus custom subcategories)
- Custom categories with icon and color
- UPI QR payments: scan with the camera or pick a QR image, set the amount and category, then hand a generated QR image to an installed UPI app
- Custom categories and subcategories from both Add Expense and QR setup, with offline emoji suggestions
- Shared category/subcategory rows across Home, Calendar, and Insights
- Calendar month grid with per-day totals and transaction dots
- Insights: spending donut, category breakdown with subcategory drill-down
- Savings and investment tracking with ledgers
- Month-wise filtering on Home, Calendar, and Insights
- Light-only theme
- JSON backup/restore and CSV export via system file picker
- Full data reset from Settings
- Signed in-app update checks with Wi-Fi-only downloads and Android's install confirmation (next release)
- First-launch welcome with name entry (auto title-cased)
- Custom launcher icon, themed system splash screen
| Layer | Technology |
|---|---|
| UI | Jetpack Compose + Material 3 |
| Navigation | navigation-compose 2.8.9 (instant bottom-tab switches, fades on push screens) |
| Database | Room 2.8.5 (KSP), schema v2 with subcategories table |
| Preferences | DataStore Preferences (user name, first-launch flag, update state; legacy theme value ignored) |
| Async | Kotlin Coroutines + StateFlow (MVVM, repository pattern) |
| Updates | JobScheduler + foreground data-sync service + PackageInstaller + Tink Ed25519 |
| QR | CameraX 1.4.1, bundled ML Kit barcode scanning 17.3.0, ZXing core 3.5.3 |
| Min / Target SDK | 26 / 36 (compile SDK 36) |
| Language | Kotlin 2.4.20, AGP 9.4.0 |
Single-activity (MainActivity) Compose app:
ui/<screen>/— Composables plus oneViewModelper screen. ViewModels exposeStateFlow<UiState>built withcombineover RoomFlowqueries; heavy mapping runs onDispatchers.Default, and Calendar keeps its month data hot (SharingStarted.Eagerly) so tab revisits serve cached state.data/local/— Room database, DAOs, entities, seed data.data/repository/—TransactionRepository, the single data access point.data/prefs/—PocketPrefs(DataStore).navigation/—PocketNavHostwith bottom bar, FAB, and nested Insights → Categories/Category-detail flows (the Investment tab is temporarily hidden).
app/src/main/java/in/marxen/pocket/
├── MainActivity.kt # entry point, theme wiring
├── PocketApplication.kt # AppContainer holder
├── core/ # date + currency utilities (Asia/Kolkata, paise)
├── data/
│ ├── backup/ # JSON backup manager
│ ├── local/ # Room DB, DAOs, entities, seed data
│ ├── prefs/ # DataStore preferences
│ ├── qr/ # UPI parsing, QR encoding, UPI app discovery
│ └── repository/ # TransactionRepository
├── navigation/ # Routes, PocketNavHost, custom bottom bar
├── update/ # Signed feed, scheduler, download, installer
└── ui/
├── splash/ welcome/ # launch + onboarding
├── home/ # greeting, balance card, today list
├── calendar/ # month grid, day summary
├── expense/ # add/edit with subcategories
├── insights/ # spending/income/investments, category drill-down
├── common/ # shared category pickers, editor dialogs, rows
├── qr/ # camera/gallery scanner and payment setup
├── settings/ # backup/restore, export, reset
└── theme/ # colors, typography
docs/
├── PLAN.md / PRD.md # product plan and requirements
├── chronicles/ # lag debug chronicles
├── lag/ # prior lag analysis artifacts
└── superpowers/plans/ # dated implementation plans
releases/ # versioned release APKs
Prerequisites: JDK 17, Android SDK with API 36, a device or emulator.
./gradlew assembleDebug
./gradlew installDebugFor an official APK, choosing between universal and ABI-specific builds, checksum verification, upgrades, and troubleshooting, see INSTALL.md.
Release builds use the protected pocket-release.jks keystore. The keystore
is not committed. Set these four values in ~/.gradle/gradle.properties or the
environment before building:
POCKET_RELEASE_STORE_FILEPOCKET_RELEASE_STORE_PASSWORDPOCKET_RELEASE_KEY_ALIASPOCKET_RELEASE_KEY_PASSWORD
assembleRelease fails with a clear message when any value is missing.
./gradlew assembleRelease
cp app/build/outputs/apk/release/app-release.apk releases/Pocket-vX.Y-universal.apkNew releases use the -universal suffix (or an ABI suffix for a split build).
v1.8 is the first release under this convention; Pocket-v1.7-release.apk keeps
its historical name. The naming rules and release checklist are in
docs/releases/apk-naming.md.
Current release: Pocket-v1.8-universal.apk (v1.8, versionCode 9). The
universal APK is 35,974,862 bytes (~36.0 MB) because it bundles the ML Kit
barcode scanner; see docs/development/apk-size-and-abi-findings.md for the ABI
and size analysis.
The signed update feed is published separately on the update-feed prerelease;
it is not the repository's latest release. See
docs/releases/update-feed.md for the signing
and publication process.
Interaction budget used during development: a tab switch must render a handful
of frames and then stop (verified with dumpsys gfxinfo settle sampling —
typically 3–4 frames, frozen). UI-thread stalls (Slow UI thread) must read 0
during switches; residual per-frame cost on emulator-class GPUs is environmental.
Cold start is ~2 s on emulator, dominated by the intentional ~1.8 s splash
sequence. See docs/history/chronicles/ for full measurement logs.
- Docs index — the map for user guides, development notes, releases, and history
- Install guide — which APK to download, checksum, upgrade, and troubleshooting
- Project wiki — user guide, architecture, backup/export, and release notes
- How to update Pocket in the app — in-app check, Wi-Fi download, and install steps
- Auto-update reference — signed feed, checks, and runtime behavior
- Auto-update design — why check, download, and install are separate
- Publishing the update feed — release key, signing, publication, and verification
docs/releases/v1.8.md— current release notes and APK detailsdocs/development/apk-size-and-abi-findings.md— APK size, ABI evidence, and future optionsdocs/development/ci-and-git-hooks.md— GitHub Actions workflow and local hook setupdocs/history/context/— QR scanner, payment setup, and category test recordsdocs/history/chronicles/— performance debug history with frame measurementsdocs/history/plans/— implementation plans per feature/fix
Pocket is open source under the Apache License, Version 2.0. The full terms are in LICENSE; copyright and third-party attribution are in NOTICE.
Copyright 2026 Sanjai52.
Third-party components keep their own licenses: the Manrope font is under the SIL Open Font License 1.1, and the brand render tooling is adapted from Voxa under Apache 2.0 (see NOTICE).
