Calorie Tracker is an educational Android application example designed to showcase successful release strategies for Android apps. While the app does not provide actual functionality, it serves as a clean, structured reference for implementing features and release workflows. The app uses the MVVM (Model-View-ViewModel) design pattern to demonstrate best practices in architecture and scalability.
- Example of clean architecture using MVVM.
- Demonstrates release strategies and workflows.
- Illustrates modular project structure.
The project adheres to the MVVM design pattern and is structured as follows:
- Models: Encapsulates the app's core data structures and business logic.
- Views: Handles the UI and user interaction, implemented using XML layouts and Jetpack Compose.
- ViewModels: Acts as a bridge between the View and Model, exposing data in a format suitable for the View.
- Repositories: Manages data sources, such as APIs or local databases.
- Services: Contains reusable components for additional features like notifications or analytics.
CalorieTracker/
├── data/
│ └── FoodItem
├── domain/
│ └── FoodRepository
├── presentation/
│ ├── FoodViewModel
│ └── MainActivity
├── resources/
│ ├── values
│ └── values-es
└── tests/
├── main/
│ └── Código listo para producción
│ ├── Versiones estables
│ └── Releases finales
├── develop/
│ └── Rama principal de desarrollo
│ ├── Integración de features
│ └── Preparación para releases
├── feature/
│ ├── feature/login
│ ├── feature/dashboard
│ └── feature/settings
├── release/
│ └── Preparación para producción
│ ├── Pruebas finales
│ └── Corrección de bugs menores
└── hotfix/
├── hotfix/crash-on-login
└── hotfix/typo-in-ui
To explore the project locally, follow these steps:
Android Studio: Ensure you have the latest version of Android Studio installed.
Gradle: Pre-installed with Android Studio.
- Clone the repository:
git clone [email protected]:gioValdes/CalorieAppTracker.git
cd CalorieAppTracker
- Open the project:
- Open CalorieAppTracker in Android Studio.
- Build and explore the project:
- Select a target emulator or physical device.
- Click the Run button or press Shift + F10 to simulate a build.
To explore the test suite:
-
Open the project in Android Studio.
-
Select a testing configuration.
-
Run the tests using Shift + F10 or the dedicated testing button.
The test cases are located in the tests/ directory and demonstrate strategies for testing core functionalities.