How dsolonenko/financisto works
Main Components Identification
The system should be divided into these key components:
a) User Interface Layer:
• Activities (under ru.orangesoftware.financisto.activity)
• Adapters (under ru.orangesoftware.financisto.adapter)
• Widgets (under ru.orangesoftware.financisto.widget)
b) Business Logic Layer:
• Model (under ru.orangesoftware.financisto.model)
• Services (under ru.orangesoftware.financisto.service)
• Utils (under ru.orangesoftware.financisto.utils)
c) Data Layer:
• Database (under ru.orangesoftware.financisto.db)
• Export/Import modules (under ru.orangesoftware.financisto.export)
• Backup system (under ru.orangesoftware.financisto.backup)
d) External Services:
• Exchange Rate Services (under ru.orangesoftware.financisto.rates)
• Cloud Storage (Dropbox, Google Drive)
Component Relationships
Following interactions:
a) Data Flow:
• UI → Business Logic → Database
• Export/Import → External Storage
• Exchange Rates → External Services
b) Key Processes:
• Transaction Management
• Budget Tracking
• Report Generation
• Backup/Restore
• Currency Exchange
Detailed Elements
Specific components:
a) Core Features:
• Transaction Manager
• Category Manager
• Budget Manager
• Account Manager
• Currency Manager
• Report Generator
b) Database Structure:
• Main SQLite Database
• Backup Database
• Exchange Rates Cache
c) External Integrations:
• Exchange Rate Services
• Cloud Backup Services
• QIF/CSV Import/Export
Architecture Patterns
Following patterns:
a) MVC Pattern:
• Activities as Controllers
• XML layouts as Views
• Model classes for data
b) Observer Pattern:
• For currency rate updates
• For transaction notifications
c) Builder Pattern:
• For complex object construction (visible in test builders)
Security Layer
Security components:
• PIN protection
• Backup encryption
• Secure storage