How alihadid96/customerregister works
CustomerRegister is an offline Android subscription-management app. Users manage customer records, calculate subscription dates and renewals, review expiry status, and receive scheduled reminders; they can also contact customers through WhatsApp and export or back up local data. The graph follows the documented UI-to-data workflow and preserves the reminder, export, backup, and settings capabilities. Several screen and ViewModel implementations were not excerpted, so their links to data operations are shown only where documented; unsampled internal calls are not inferred.
Main entry points: ViewModels.kt View models · AppRoot.kt Navigation root · Reminders.kt Work scheduling · CustomerRegisterApp.kt Application container
Components 21
App entry and navigation
- Main activity
app/src/main/java/com/customerregister/app/MainActivity.kt - Navigation root
app/src/main/java/com/customerregister/app/ui/AppRoot.kt - Application container
app/src/main/java/com/customerregister/app/CustomerRegisterApp.kt
Customer workflows
- View models
app/src/main/java/com/customerregister/app/ui/ViewModels.kt - Customer screens
app/src/main/java/com/customerregister/app/ui/screens - Dashboard screen
app/src/main/java/com/customerregister/app/ui/screens/DashboardScreen.kt - Notification history
app/src/main/java/com/customerregister/app/ui/screens/NotificationsScreen.kt - Settings screen
app/src/main/java/com/customerregister/app/ui/screens/SettingsScreen.kt - Shared UI components
app/src/main/java/com/customerregister/app/ui/components/Components.kt
Subscription domain
- Subscription calculations
app/src/main/java/com/customerregister/app/domain/SubscriptionMath.kt - Message templates
app/src/main/java/com/customerregister/app/domain/MessageTemplate.kt - CSV and XLSX export
app/src/main/java/com/customerregister/app/domain/Exporters.kt
Local data and backup
- Customer repository
app/src/main/java/com/customerregister/app/data/CustomerRepository.kt - Room database
app/src/main/java/com/customerregister/app/data/db/AppDatabase.kt - Settings repository
app/src/main/java/com/customerregister/app/data/SettingsRepository.kt - Backup and restore
app/src/main/java/com/customerregister/app/data/BackupManager.kt
Reminder delivery
- Reminder planning
app/src/main/java/com/customerregister/app/domain/ReminderPlanner.kt - Work scheduling
app/src/main/java/com/customerregister/app/notifications/Reminders.kt - Notification delivery
app/src/main/java/com/customerregister/app/notifications/NotificationHelper.kt
Other components
- App user
- WhatsApp or browser
Connections 33
- App user → Main activity: opens
README.md - Main activity → Navigation root: hosts
app/src/main/java/com/customerregister/app/MainActivity.kt - Navigation root → Customer screens: routes to
app/src/main/java/com/customerregister/app/ui/AppRoot.kt - Navigation root → Dashboard screen: routes to
app/src/main/java/com/customerregister/app/ui/AppRoot.kt - Navigation root → Notification history: routes to
app/src/main/java/com/customerregister/app/ui/AppRoot.kt - Navigation root → Settings screen: routes to
app/src/main/java/com/customerregister/app/ui/AppRoot.kt - Customer screens → View models: uses
app/src/main/java/com/customerregister/app/ui/ViewModels.kt - Dashboard screen → View models: uses
- Notification history → View models: uses
- Settings screen → View models: uses
- Shared UI components → Customer screens: renders in
- View models → Customer repository: manages records
- View models → Settings repository: reads settings
- View models → Subscription calculations: uses
app/src/main/java/com/customerregister/app/ui/ViewModels.kt - View models → CSV and XLSX export: exports data
README.md - View models → Backup and restore: backs up data
README.md - Customer repository → Room database: reads and writes
app/src/main/java/com/customerregister/app/data/CustomerRepository.kt - Customer repository → Work scheduling: reschedules jobs
app/src/main/java/com/customerregister/app/data/CustomerRepository.kt - Backup and restore → Room database: reads and restores
app/src/main/java/com/customerregister/app/data/BackupManager.kt - Backup and restore → Settings repository: exports settings
app/src/main/java/com/customerregister/app/data/BackupManager.kt - Application container → Room database: creates
app/src/main/java/com/customerregister/app/CustomerRegisterApp.kt - Application container → Customer repository: creates
app/src/main/java/com/customerregister/app/CustomerRegisterApp.kt - Application container → Settings repository: creates
app/src/main/java/com/customerregister/app/CustomerRegisterApp.kt - Application container → Backup and restore: creates
app/src/main/java/com/customerregister/app/CustomerRegisterApp.kt - Main activity → Work scheduling: reschedules jobs
app/src/main/java/com/customerregister/app/MainActivity.kt - Work scheduling → Reminder planning: plans reminders
app/src/main/java/com/customerregister/app/notifications/Reminders.kt - Reminder planning → Subscription calculations: calculates days
app/src/main/java/com/customerregister/app/domain/ReminderPlanner.kt - Work scheduling → Room database: checks and logs
README.md - Work scheduling → Notification delivery: posts reminders
app/src/main/java/com/customerregister/app/notifications/Reminders.kt - Notification delivery → App user: shows alerts
app/src/main/java/com/customerregister/app/notifications/NotificationHelper.kt - Message templates → WhatsApp or browser: prepares messages
README.md - Notification delivery → WhatsApp or browser: offers contact action
README.md - CSV and XLSX export → App user: provides files
README.md