How kevinzamoraa/temporis-final_project-dam works
1. What this repo is
Temporis is an Android productivity app centered on personalized timers and time tracking, with cloud-backed user data, biometric login, accessibility controls, and annual statistics. The codebase is a single Android application module with no separate backend repo; Firebase provides the external data/auth/storage layer.
2. Top-level architecture
The app follows an MVVM structure: UI screens live in ui/, screen state and logic live in ViewModel classes, and data access is isolated in repository/. Shared data structures are in model/, and RecyclerView presentation logic is in adapter/.
3. Startup and entry flow
The app starts through launcher/splash/auth entry points: LauncherActivity, SplashScreen, and ui/auth/LoginActivity. From there, the user is routed into the authenticated experience or into login/register/forgot-password flows. SessionLifecycleManager suggests a central component for tracking session state across lifecycle changes.
4. Authenticated shell and navigation
The main post-login experience is built around activity/fragment navigation rather than a single full-screen UI. MainActivity, HomeActivity, TimersActivity, and TimerActivity act as major host screens, while mobile_navigation.xml and bottom_nav_menu.xml define the in-app navigation structure. The primary content is split into feature fragments such as Home, Profile, Settings, Statistics, Notifications, Accessibility, and App Info.
5. Feature boundaries
Each feature area has its own Fragment and usually a matching ViewModel:
- home
- timers / timer
- statistics
- profile
- notifications
- settings
- general_settings
- accessibility
- appinfo
- auth and password recovery
This keeps screen-specific state close to the UI and prevents direct coupling to Firebase or models.
6. Data layer
The repository layer contains PostRepository, TimerRepository, and UserRepository. These are the main boundaries between UI/view-model code and the backing data source. Based on the README and google-services.json, these repositories likely mediate Firebase Auth plus Firestore/Storage reads and writes.
7. Core domain objects
The model/ package contains the app’s main data entities: User, Timer, TimeRegister, Post, and utility-like types such as Counter. These objects represent the persistent business data that flows between repositories, view models, and list adapters.
8. List and feed rendering
PostAdapter and TimerAdapter are the presentation layer for collections shown in lists. TimerDiffCallback indicates RecyclerView diffing for efficient timer list updates, suggesting the timer UI is dynamic and refreshed from changing repository/view-model state.
9. Analytics and visualization
The statistics feature is a distinct subsystem, backed by StatisticsViewModel, StatisticsViewModelFactory, and chart resources. The README indicates annual contribution/progress graphs, and the presence of MPAndroidChart implies the statistics screen transforms time-register data into visual productivity trends.
10. Accessibility and settings
Accessibility is not an afterthought here; it is a first-class feature area with its own fragment and view model. The app also has GeneralSettings and Settings, plus a ThemeUtils helper, which together likely control font scaling, contrast, theme, and UI behavior under different interaction constraints.
11. Authentication and security
Authentication is handled in a dedicated auth flow with login, registration, and forgot-password screens. The README explicitly calls out Firebase Auth and Android’s Biometric API, so login/security boundaries are split between cloud identity and device-level biometric confirmation.
12. Resources and localization
The app is heavily resource-driven: separate layouts for each screen, a navigation graph, vector assets, theme files, and locale folders for Spanish/Catalan/English. That means many architectural decisions are encoded in resources rather than code, especially screen composition, branding, and internationalization.
13. Testing and build
The repo includes both unit tests and instrumented Android tests, so the architecture supports logic validation and UI flow validation. Build configuration is standard Gradle Kotlin DSL with Firebase configuration bundled in the app module.
14. Diagramming summary
For an architecture diagram, the most important boundaries are: UI fragments/activities at the top, ViewModels in the middle, repositories as the data access layer, models as shared domain entities, and Firebase/biometrics/charting libraries as external dependencies. The main data flows are login/session -> authenticated navigation -> timer CRUD/time registers -> statistics visualization -> settings/accessibility personalization.
Main entry points: MainActivity.kt Main host · UserRepository.kt User repo · TimerRepository.kt Timer repo · SplashScreen.kt Splash
Components 28
App shell
Startup, session handling, and host activities for authenticated navigation.
- Launcher · Initial activity that routes into the app flow.
app/src/main/java/com/kevinzamora/temporis_androidapp/LauncherActivity.kt - Splash · Brand/loading screen shown before authentication or main navigation.
app/src/main/java/com/kevinzamora/temporis_androidapp/SplashScreen.kt - Session manager · Tracks session state across activity and lifecycle transitions.
app/src/main/java/com/kevinzamora/temporis_androidapp/SessionLifecycleManager.kt - Main host · Primary authenticated container activity.
app/src/main/java/com/kevinzamora/temporis_androidapp/MainActivity.kt - Home host · Host activity for the home experience.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/home/HomeActivity.kt - Timers host · Host activity for timer management screens.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/timers/TimersActivity.kt - Timer screen · Dedicated screen for an active or focused timer.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/timer/TimerActivity.kt
Features
User-facing screens organized by product capability.
- Login · Entry point for sign-in and account access.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/auth/LoginActivity.kt - Auth flow · Login, registration, and password recovery screens.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/auth - Home · Main landing content after login.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/home - Timers · Timer list and timer management interface.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/timers - Timer detail · Timer execution and focused timer state.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/timer - Statistics · Charts and annual productivity history.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/statistics - Profile · User profile and account details.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/profile - Settings · General app preferences and configuration.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/settings - Accessibility · Accessibility controls and personalization options.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/accessibility - Notifications · Notification-related screen and state.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/notifications - App info · Informational screen about the app.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/appinfo - General settings · Secondary settings screen for broader app behavior.
app/src/main/java/com/kevinzamora/temporis_androidapp/ui/general_settings
Data layer
Repositories and shared domain objects passed across the app.
- Post repo · Data access for posts or feed-like content.
app/src/main/java/com/kevinzamora/temporis_androidapp/repository/PostRepository.kt - Timer repo · Persistence and sync boundary for timers and time registers.
app/src/main/java/com/kevinzamora/temporis_androidapp/repository/TimerRepository.kt - User repo · User profile, identity, and account data boundary.
app/src/main/java/com/kevinzamora/temporis_androidapp/repository/UserRepository.kt - Domain models · Shared app data objects used by view models, repositories, and adapters.
app/src/main/java/com/kevinzamora/temporis_androidapp/model
Resources
Navigation, layouts, themes, localization, and other app resources.
- Nav graph · Fragment navigation structure for the in-app shell.
app/src/main/res/navigation/mobile_navigation.xml - Bottom nav · Bottom navigation destinations for the authenticated shell.
app/src/main/res/menu/bottom_nav_menu.xml - Layouts · Screen and item XML layouts for activities, fragments, and lists.
app/src/main/res/layout - Themes · App theme, color, and dimension resources.
app/src/main/res/values - Locales · Localized string resources and locale configuration.
app/src/main/res/values-en
Connections 30
- Launcher → Splash: starts · Launcher routes into the splash/startup experience.
- Splash → Login: auth gate · Startup flow can redirect to sign-in when needed.
- Splash → Main host: enters · Authenticated users proceed into the main shell.
- Login → Auth flow: hosts · Login activity contains sign-in, register, and recovery screens.
- Session manager → Main host: guards · Session state influences access to the authenticated shell.
- Main host → Nav graph: uses · Main shell is organized by the app navigation graph.
- Main host → Bottom nav: uses · Main shell exposes bottom navigation destinations.
- Main host → Home host: hosts · Main experience includes the home host activity.
- Main host → Timers host: hosts · Main experience includes the timers host activity.
- Main host → Timer screen: opens · Main flow can navigate into a dedicated timer screen.
- Home host → Home: contains · Home activity renders the home feature fragment/state.
- Timers host → Timers: contains · Timers host renders the timer list feature.
- Timer screen → Timer detail: contains · Timer activity renders focused timer behavior.
- Home → Timer repo: reads · Home may surface timer state from the timer repository.
- Timers → Timer repo: reads · Timer list and management flow depend on timer data.
- Timer detail → Timer repo: updates · Timer detail interacts with timer persistence and state.
- Statistics → Timer repo: analyzes · Statistics derive trends from timers and time registers.
- Profile → User repo: reads · Profile screen uses user account data.
- Settings → User repo: persists · Settings may store user-specific preferences.
- Accessibility → User repo: persists · Accessibility preferences are tied to user configuration.
- Notifications → User repo: reads · Notifications screen likely reflects account-linked state.
- App info → Layouts: renders · About screen is defined by resource-backed UI.
- General settings → Themes: uses · General settings can affect theme and display resources.
- Auth flow → User repo: auth data · Authentication and account recovery rely on user data access.
- Timer repo → Domain models: maps · Timer repository exchanges timer and time-register entities.
- User repo → Domain models: maps · User repository exchanges user entities.
- Post repo → Domain models: maps · Post repository exchanges post entities.
- Statistics → Layouts: charts · Statistics screen uses dedicated chart and layout resources.
- Auth flow → Layouts: screens · Authentication screens are resource-defined.
- Themes → Locales: supports · UI styling and localization combine to shape the user experience.