# neesharathee/udacity_location_reminder architecture

> Architecture diagram of the GitHub repository neesharathee/udacity_location_reminder, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/neesharathee/udacity_location_reminder
- Repository: https://github.com/neesharathee/udacity_location_reminder

## Overview

This Android app lets users authenticate, browse saved location reminders, choose a place on a map, and save a reminder. The main flow runs from the reminder screens through view models and a data-source interface to Room-backed storage; a geofence service later retrieves a triggered reminder and sends a notification. Authentication, navigation, and map selection are represented as distinct stages. The README is empty, so product scope comes from the source tree and indexed modules; unshown wiring is omitted where relationships cannot be verified.

Main entry points: [`app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderViewModel.kt`](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderViewModel.kt) (Save view model), [`app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListViewModel.kt`](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListViewModel.kt) (List view model), [`app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDao.kt`](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDao.kt) (Reminder DAO), [`app/src/main/java/com/udacity/project4/locationreminders/data/ReminderDataSource.kt`](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/ReminderDataSource.kt) (Reminder data source)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App and navigation"]
  node_auth["Authentication"]
  node_activity["Reminders activity"]
  node_base["Fragment base<br/>[BaseFragment.kt]"]
  node_navigation["Navigation commands"]
end

subgraph group_screens["Reminder screens"]
  node_list["Reminder list"]
  node_listvm["List view model"]
  node_adapter["List adapter"]
  node_save["Save reminder"]
  node_savevm["Save view model"]
  node_location["Location picker"]
end

subgraph group_storage["Reminder data"]
  node_item["Reminder view model"]
  node_datasource["Reminder data source"]
  node_repository["Local repository"]
  node_dao["Reminder DAO<br/>[RemindersDao.kt]"]
  node_database[("Room database")]
  node_localdb["Database provider<br/>[LocalDB.kt]"]
  node_dto["Reminder record<br/>[ReminderDTO.kt]"]
end

subgraph group_alerts["Location alerts"]
  node_geofence["Geofence helper<br/>[GeofenceHelper.kt]"]
  node_receiver["Geofence receiver"]
  node_service["Geofence service"]
  node_notifications["Notification utility"]
end

node_user(("User"))
node_maps["Maps provider"]
node_notificationuser(("Device notification"))

node_user -->|"authenticates"| node_auth
node_auth -->|"opens"| node_activity
node_list -->|"uses"| node_listvm
node_list -->|"renders with"| node_adapter
node_save -->|"uses"| node_savevm
node_location -->|"updates"| node_savevm
node_save -->|"registers"| node_geofence
node_savevm -->|"saves through"| node_datasource
node_listvm -->|"loads through"| node_datasource
node_listvm -->|"maps to"| node_item
node_savevm -->|"converts to"| node_item
node_repository -->|"calls"| node_dao
node_database -->|"provides"| node_dao
node_dao -->|"reads and writes"| node_dto
node_service -->|"retrieves reminder"| node_datasource
node_service -->|"sends via"| node_notifications
node_notifications -.->|"displays"| node_notificationuser
node_geofence -->|"configures"| node_receiver
node_location -.->|"selects place with"| node_maps

click node_auth "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/authentication/AuthenticationActivity.kt"
click node_activity "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/RemindersActivity.kt"
click node_base "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/base/BaseFragment.kt"
click node_navigation "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/base/NavigationCommand.kt"
click node_list "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/ReminderListFragment.kt"
click node_listvm "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListViewModel.kt"
click node_adapter "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListAdapter.kt"
click node_save "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderFragment.kt"
click node_savevm "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderViewModel.kt"
click node_location "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/savereminder/selectreminderlocation/SelectLocationFragment.kt"
click node_item "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/ReminderDataItem.kt"
click node_datasource "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/ReminderDataSource.kt"
click node_repository "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersLocalRepository.kt"
click node_dao "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDao.kt"
click node_database "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDatabase.kt"
click node_localdb "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/LocalDB.kt"
click node_dto "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/dto/ReminderDTO.kt"
click node_geofence "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceHelper.kt"
click node_receiver "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceBroadcastReceiver.kt"
click node_service "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceTransitionsJobIntentService.kt"
click node_notifications "https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/utils/NotificationUtils.kt"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_auth,node_activity,node_base,node_navigation,node_user toneBlue
class node_list,node_listvm,node_adapter,node_save,node_savevm,node_location toneAmber
class node_item,node_datasource,node_repository,node_dao,node_database,node_localdb,node_dto toneMint
class node_geofence,node_receiver,node_service,node_notifications toneRose
class node_maps,node_notificationuser toneIndigo
```

## Components

### App and navigation

- [Authentication](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/authentication/AuthenticationActivity.kt): `app/src/main/java/com/udacity/project4/authentication/AuthenticationActivity.kt`
- [Reminders activity](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/RemindersActivity.kt): `app/src/main/java/com/udacity/project4/locationreminders/RemindersActivity.kt`
- [Fragment base](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/base/BaseFragment.kt): `app/src/main/java/com/udacity/project4/base/BaseFragment.kt`
- [Navigation commands](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/base/NavigationCommand.kt): `app/src/main/java/com/udacity/project4/base/NavigationCommand.kt`

### Reminder screens

- [Reminder list](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/ReminderListFragment.kt): `app/src/main/java/com/udacity/project4/locationreminders/reminderslist/ReminderListFragment.kt`
- [List view model](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListViewModel.kt): `app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListViewModel.kt`
- [List adapter](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListAdapter.kt): `app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListAdapter.kt`
- [Save reminder](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderFragment.kt): `app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderFragment.kt`
- [Save view model](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderViewModel.kt): `app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderViewModel.kt`
- [Location picker](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/savereminder/selectreminderlocation/SelectLocationFragment.kt): `app/src/main/java/com/udacity/project4/locationreminders/savereminder/selectreminderlocation/SelectLocationFragment.kt`

### Reminder data

- [Reminder view model](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/reminderslist/ReminderDataItem.kt): `app/src/main/java/com/udacity/project4/locationreminders/reminderslist/ReminderDataItem.kt`
- [Reminder data source](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/ReminderDataSource.kt): `app/src/main/java/com/udacity/project4/locationreminders/data/ReminderDataSource.kt`
- [Local repository](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersLocalRepository.kt): `app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersLocalRepository.kt`
- [Reminder DAO](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDao.kt): `app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDao.kt`
- [Room database](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDatabase.kt): `app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDatabase.kt`
- [Database provider](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/local/LocalDB.kt): `app/src/main/java/com/udacity/project4/locationreminders/data/local/LocalDB.kt`
- [Reminder record](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/data/dto/ReminderDTO.kt): `app/src/main/java/com/udacity/project4/locationreminders/data/dto/ReminderDTO.kt`

### Location alerts

- [Geofence helper](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceHelper.kt): `app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceHelper.kt`
- [Geofence receiver](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceBroadcastReceiver.kt): `app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceBroadcastReceiver.kt`
- [Geofence service](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceTransitionsJobIntentService.kt): `app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceTransitionsJobIntentService.kt`
- [Notification utility](https://github.com/neesharathee/udacity_location_reminder/blob/master/app/src/main/java/com/udacity/project4/utils/NotificationUtils.kt): `app/src/main/java/com/udacity/project4/utils/NotificationUtils.kt`

### Other components

- **User**
- **Maps provider**
- **Device notification**

## Connections

- User → Authentication: authenticates (evidence: `app/src/main/java/com/udacity/project4/authentication/AuthenticationActivity.kt`)
- Authentication → Reminders activity: opens (evidence: `app/src/main/java/com/udacity/project4/authentication/AuthenticationActivity.kt`)
- Reminder list → List view model: uses (evidence: `app/src/main/java/com/udacity/project4/locationreminders/reminderslist/ReminderListFragment.kt`)
- Reminder list → List adapter: renders with (evidence: `app/src/main/java/com/udacity/project4/locationreminders/reminderslist/ReminderListFragment.kt`)
- Save reminder → Save view model: uses (evidence: `app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderFragment.kt`)
- Location picker → Save view model: updates (evidence: `app/src/main/java/com/udacity/project4/locationreminders/savereminder/selectreminderlocation/SelectLocationFragment.kt`)
- Save reminder → Geofence helper: registers (evidence: `app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderFragment.kt`)
- Save view model → Reminder data source: saves through (evidence: `app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderViewModel.kt`)
- List view model → Reminder data source: loads through (evidence: `app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListViewModel.kt`)
- List view model → Reminder view model: maps to (evidence: `app/src/main/java/com/udacity/project4/locationreminders/reminderslist/RemindersListViewModel.kt`)
- Save view model → Reminder view model: converts to (evidence: `app/src/main/java/com/udacity/project4/locationreminders/savereminder/SaveReminderViewModel.kt`)
- Local repository → Reminder DAO: calls (evidence: `app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersLocalRepository.kt`)
- Room database → Reminder DAO: provides (evidence: `app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDatabase.kt`)
- Reminder DAO → Reminder record: reads and writes (evidence: `app/src/main/java/com/udacity/project4/locationreminders/data/local/RemindersDao.kt`)
- Geofence service → Reminder data source: retrieves reminder (evidence: `app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceTransitionsJobIntentService.kt`)
- Geofence service → Notification utility: sends via (evidence: `app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceTransitionsJobIntentService.kt`)
- Notification utility → Device notification: displays
- Geofence helper → Geofence receiver: configures (evidence: `app/src/main/java/com/udacity/project4/locationreminders/geofence/GeofenceHelper.kt`)
- Location picker → Maps provider: selects place with
