Skip to content

About

SpendSmart is a modern Android personal finance tracking app that helps users manage their daily income and expenses. It features Firebase authentication (email + Google), real-time cloud sync via Firestore, local offline storage with Room, budget management with progress tracking, spending analytics with charts, and a clean Material 3 UI

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

SpendSmart - Personal Finance Tracker App

A comprehensive Android personal finance tracking application built with modern Android technologies.

Features

Authentication

  • Email/Password login and registration
  • Google Sign-In integration
  • Forgot password functionality
  • Auto-login if user session exists
  • Secure Firebase Authentication

Dashboard

  • Total balance display (income - expenses)
  • Monthly spending summary
  • Recent 5 transactions list
  • Quick add transaction FAB
  • Profile quick access

Transactions Management

  • View all transactions with infinite scrolling
  • Filter by: date range, category, type (income/expense)
  • Search by title
  • Swipe to delete
  • Edit existing transactions
  • Detailed transaction information with notes

Analytics

  • Pie chart of spending by category (current month)
  • Bar chart of weekly spending (last 4 weeks)
  • Monthly comparison (this month vs last month)
  • Biggest spending category badge
  • Detailed category breakdown

Budget Management

  • Set monthly budgets per category
  • Progress bars showing spent vs budget
  • Alert badge when over budget
  • Remaining budget summary
  • Budget tracking throughout the month

Profile & Settings

  • User profile with photo and info
  • Dark mode / Light mode toggle
  • Currency selection (USD, EUR, GBP, etc.)
  • Export transactions as CSV
  • Account settings
  • Logout functionality
  • Delete account option

Tech Stack

Language & UI Framework

  • Kotlin: Modern, concise, and safe language
  • Jetpack Compose: Modern declarative UI framework
  • Material 3: Latest Material Design guidelines

Database & Storage

  • Room (SQLite): Local data persistence
  • Firebase Firestore: Cloud data synchronization
  • DataStore: User preferences storage

Backend & Authentication

  • Firebase Authentication: Email/Password and Google Sign-In
  • Firebase Firestore: Real-time cloud database
  • Firebase Realtime Database: For sync operations

Architecture & Patterns

  • MVVM: Model-View-ViewModel architecture
  • Repository Pattern: Abstraction over data sources
  • StateFlow: Reactive state management
  • Coroutines: Async operations

Dependency Injection

  • Hilt: Compile-time safe dependency injection

Navigation

  • Jetpack Navigation Compose: Type-safe navigation
  • Bottom Navigation: Tab-based navigation

Charts & Visualization

  • Vico: Modern charting library for Compose
  • MPAndroidChart: Alternative charting option

Build & Configuration

  • Gradle KTS: Kotlin DSL for build configuration
  • Coroutines Play Services: Firebase integration with coroutines

Database Schema

TransactionEntity

- id: Int (PrimaryKey)
- title: String
- amount: Double
- type: String (INCOME/EXPENSE)
- category: String
- date: Long (timestamp)
- note: String?
- userId: String
- syncedToCloud: Boolean
- firebaseId: String?

Setup Instructions

Prerequisites

  • Android Studio Flamingo or later
  • Android SDK 24 or higher
  • Java 17
  • Firebase Project

1. Clone the Repository

git clone <repository-url>
cd Finance-Tracker\ app

2. Firebase Setup

  1. Create a Firebase project at https://firebase.google.com
  2. Enable the following services:
    • Authentication (Email/Password + Google Sign-In)
    • Firestore Database
    • Realtime Database
  3. Download google-services.json and place it in app/
  4. Update Firebase project settings in build.gradle.kts if needed

3. Enable Google Sign-In

  1. Go to Firebase Console → Authentication → Sign-in method
  2. Enable Google Sign-In
  3. Add your app's SHA-1 fingerprint:
    ./gradlew signingReport
  4. Copy SHA-1 from the output to Firebase Console

4. Build the Project

./gradlew build

5. Run on Emulator or Device

./gradlew installDebug
# Or use Android Studio to run

Unit Tests

./gradlew test

Instrumented Tests

./gradlew connectedAndroidTest

Building Release APK

./gradlew assembleRelease

The APK will be available at app/build/outputs/apk/release/app-release.apk

Troubleshooting

Firebase Connection Issues

  • Verify google-services.json is in app/ directory
  • Check Firebase project settings
  • Ensure correct SHA-1 fingerprint for Google Sign-In

Room Database Issues

  • Clear app data: ./gradlew cleanBuildCache
  • Delete Room database: adb shell rm /data/data/com.example.spendsmart/databases/spendsmart.db

Compose Errors

  • Update to latest Android Studio
  • Verify Kotlin compiler version matches
  • Run invalidate caches: Android Studio → File → Invalidate Caches

Performance Optimization

  • Lazy loading for transaction lists
  • Pagination for large datasets
  • Image caching with Coil
  • Database indexing on frequently queried columns
  • Efficient state management to prevent unnecessary recompositions

Future Enhancements

  • Bill reminders and notifications
  • Recurring transactions
  • Multi-account support
  • Receipt image attachment
  • Advanced analytics with machine learning
  • Expense splitting between users
  • Bank account integration
  • Investment tracking
  • Tax report generation
  • Export to accounting software

About

SpendSmart is a modern Android personal finance tracking app that helps users manage their daily income and expenses. It features Firebase authentication (email + Google), real-time cloud sync via Firestore, local offline storage with Room, budget management with progress tracking, spending analytics with charts, and a clean Material 3 UI

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages