AccountingV2 A personal finance and household budgeting app for Android, built on Dave Ramsey's envelope budgeting and debt snowball methodologies. Offline-first with Supabase cloud sync. Features Envelope budgeting — Allocate monthly income across spending categories; track spend vs. budget in real time Transactions — Log spending against envelopes, grouped by budget period Debt snowball — Add debts, log payments, simulate payoff timeline with minimum payment rollover Meter readings — Track electricity, water, and vehicle odometer consumption; anomaly detection flags readings >20% outside the 3-month rolling average Ramsey Score — 0–100 gamification score across logging consistency, envelope discipline, meter tracking, and Baby Steps progress Multi-household — Create multiple households, invite members via 6-character codes, switch between households Notifications — Daily logging reminders, monthly meter prompts, payday pre-flight envelope reminder Offline-first — All writes go to local SQLite immediately; synced to Supabase when online Tech Stack Layer Technology Framework Expo SDK 55 (Android only) Language TypeScript 5.9 (strict mode) UI React Native 0.83 + React Native Paper 5 + React Navigation 7 Local DB Expo SQLite + Drizzle ORM 0.45 Cloud Supabase (auth + PostgreSQL sync) State Zustand 5 Notifications expo-notifications + Firebase Cloud Messaging Testing Jest 30 + jest-expo + @testing-library/react-native Getting Started Prerequisites Node.js 20+ Android SDK with an AVD (Pixel 9 recommended) or a connected Android device A Supabase project Environment Copy .env.example to .env and fill in your Supabase credentials: cp .env.example .env EXPO_PUBLIC_SUPABASE_URL=https://.supabase.co EXPO_PUBLIC_SUPABASE_ANON_KEY= Install and run npm install npx expo run:android Project Structure src/ ├── domain/ # Pure business logic — no framework imports │ ├── budgets/ │ ├── debtSnowball/ │ ├── envelopes/ │ ├── households/ │ ├── meterReadings/ │ ├── scoring/ │ ├── transactions/ │ └── shared/ # Result, DomainError, BudgetPeriodEngine, Command interface │ ├── data/ # Data access │ ├── local/ # SQLite via Drizzle (schema/, migrations/) │ ├── remote/ # Supabase client + auth service │ ├── sync/ # SyncOrchestrator, RestoreService, PendingSyncEnqueuer │ └── audit/ # Immutable audit log for every domain write │ ├── infrastructure/ # Platform services │ ├── notifications/ │ ├── network/ # NetworkObserver — triggers sync on reconnect │ └── storage/ # expo-secure-store │ └── presentation/ # React Native UI ├── screens/ # auth/, budgets/, envelopes/, transactions/, │ # debtSnowball/, meters/, household/, settings/ ├── components/ ├── navigation/ # RootNavigator (tab-based) ├── stores/ # Zustand (session, household, sync status, budget period) └── theme/ # React Native Paper theme (Teal #00695C), tokens, fonts Architecture Strict Clean Architecture dependency direction: Domain → Data → Infrastructure → Presentation Domain — Pure TypeScript use cases and entities. Each use case implements Command and returns Result (never throws). Zero React, Expo, or I/O dependencies. Data — Drizzle ORM for local SQLite. PendingSyncEnqueuer queues every write. SyncOrchestrator pushes the queue to Supabase when online. RestoreService pulls remote state on login. Infrastructure — Network state, local notifications, secure storage, crypto. Presentation — Screens consume use cases directly. Zustand tracks global session state.
| 母公司 | |||
|---|---|---|---|
开发框架14 | |||
Android 官方兼容支持库 | 跨平台框架 | Android | 谷歌 |
Android NDK C++ 标准库运行时 | 跨平台框架 | Android | 谷歌 |
React Native 跨平台开发框架 | 跨平台框架 | Expo | — |
Expo模块接口核心 | 跨平台框架 | Expo (Expo Project / 650 Industries) | — |
Expo OTA 热更新模块 | 跨平台框架 | Expo (Expo Project / 650 Industries) | — |
Google 遥测传输库 | 开发工具 | Firebase | 谷歌 |
旧版设备照片视频选择器 | 开发工具 | Google Play | 谷歌 |
Google 核心服务框架 | 原生框架 | Google Play | 谷歌 |
Facebook 轻量级 JS 引擎 | 跨平台框架 | Hermes | Meta |
Google Material Design 组件库 | 开发工具 | Material Design | 谷歌 |
Facebook 跨平台原生应用框架 | 跨平台框架 | React Native | Meta |
React Native 原生屏幕导航组件 | 开发工具 | Software Mansion | — |
Facebook Android Native 库加载器 | 跨平台框架 | SoLoader | Meta |
React Native SVG 矢量图形库 | 开发工具 | Software Mansion | — |
网络库4 | |||
Android 图片裁剪库 | 图片加载 | CanHub | — |
Facebook 出品的 Android 图片加载与内存管理库 | 图片加载 | Fresco | Meta |
Google 图片加载库 | 图片加载 | Glide | bumptech |
Square HTTP 客户端 | 网络请求 | Square | Block |
支付与电商3 | |||
Expo 模块核心 | 平台业务对接 | Expo (Expo Project / 650 Industries) | — |
Expo RN 适配器 | 平台业务对接 | Expo (Expo Project / 650 Industries) | — |
Google 移动应用综合开发平台 | 平台业务对接 | Firebase | 谷歌 |
人工智能2 | |||
Google ML Kit条码扫描 | 文字识别 | 谷歌 | — |
Google 移动端机器学习工具包 | 机器学习框架 | ML Kit | 谷歌 |
安全与风控1 | |||
Google Play 应用防破解保护 | 移动安全 | 谷歌 | — |
登录与身份1 | |||
Facebook内容分享SDK | 社交登录 | Facebook [merged→Meta] | Meta |
分析与归因1 | |||
React Native 的 Firebase 官方模块 | 产品分析 | Firebase | 谷歌 |
数据管理1 | |||
Expo 本地 SQLite 数据库模块 | 数据库 | Expo | — |
推送与触达1 | |||
Firebase 跨平台消息推送服务 | 第三方推送 | Firebase | 谷歌 |
性能与稳定1 | |||
Firebase 主力崩溃报告分析工具 | 崩溃报告 | Firebase | 谷歌 |
音视频处理1 | |||
开源 GIF 图像处理 C 库 | 音视频编解码与格式库 | GIFLIB | — |
UI组件1 | |||
ShortcutBadger角标库 | 界面组件 | ShortcutBadger | Leo Lin |
基于应用中检测到的 URL 域名,表示该应用与这些第三方服务存在通信
| 母公司 | |||
|---|---|---|---|
Google 账号登录URL 检测 谷歌账号登录服务 | 社交登录 | 谷歌 | — |
Google APIsURL 检测 谷歌开放接口服务 | 网络请求 | 谷歌 | — |