# 23-andres-qc/pc01-quiliche22200144-perales22200107 architecture

> Architecture diagram of the GitHub repository 23-andres-qc/pc01-quiliche22200144-perales22200107, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-05-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/23-andres-qc/pc01-quiliche22200144-perales22200107
- Repository: https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107

## Overview

1. **Repository shape**
   - This is a single-module Android app (`app/`) built with Gradle Kotlin DSL.
   - The codebase is small and organized around a classic UI-first Android structure: an entry activity, a presentation layer, a small data/model layer, and shared UI theme resources.

2. **Platform and runtime**
   - The app runs on Android and is implemented in Kotlin.
   - The presence of `presentation/*Screen.kt`, `ViewModel.kt`, and `ui/theme/*` strongly suggests a Jetpack Compose-based UI architecture, rather than XML-driven screens.

3. **Application entry point**
   - `MainActivity.kt` is the app startup boundary.
   - It likely sets the app theme and hands off control to the navigation layer, making it the bridge between the Android system and the Compose UI tree.

4. **Navigation boundary**
   - `presentation/navigation/AppNavigation.kt` is the central route manager.
   - It likely defines which screen is shown for each app state and acts as the orchestration point between the feature screens.

5. **Presentation layer structure**
   - The UI is split by feature into `home`, `budget`, `destinations`, `luggage`, and `permissions`.
   - Each feature has a screen file, and some features also have a dedicated `ViewModel`, which indicates state and user actions are handled outside the composable screen functions.

6. **Feature responsibilities**
   - `HomeScreen.kt` is the likely landing page or hub.
   - `BudgetScreen.kt` + `BudgetViewModel.kt` manage budget-related interaction and state.
   - `DestinationsScreen.kt` + `DestinationsViewModel.kt` manage destination selection or listing.
   - `LuggageScreen.kt` appears to handle packing/luggage-related guidance.
   - `LocationPermissionScreen.kt` is a dedicated permission gate, so location access is treated as a first-class flow.

7. **State and model layer**
   - `data/model/Destination.kt` and `data/model/TipoAlojamiento.kt` define the app’s core domain entities.
   - These look like plain data models used by the presentation layer, especially for travel planning or trip recommendation flows.
   - There is no visible repository, database, or network layer in the tree, so the app appears to be using local/in-memory data or data embedded in the UI/ViewModels.

8. **Likely data flow**
   - User enters through `MainActivity`.
   - Navigation decides which screen to show.
   - Screens render UI and send events to their ViewModels.
   - ViewModels transform/hold UI state using the domain models from `data/model`.
   - The UI updates in response to ViewModel state changes.

9. **Permissions flow**
   - The dedicated permissions screen indicates the app has a branch in its flow that depends on runtime location permission.
   - That makes location access an architectural boundary: users can be routed through a permission step before continuing to the main feature screens.

10. **Shared UI styling**
   - `ui/theme/Color.kt`, `Theme.kt`, and `Type.kt` centralize visual styling.
   - This is the shared presentation layer for colors, typography, and app theme consistency across all screens.

11. **Android resources and manifest**
   - `AndroidManifest.xml` defines app-level Android configuration, including the launcher activity and any declared permissions.
   - `res/` contains launcher assets, app strings, colors, and themes, which support the UI but do not appear to carry major business logic.

12. **Testing and build tooling**
   - There are standard unit tests under `src/test` and instrumentation tests under `src/androidTest`.
   - The build uses the standard Android Gradle wrapper and version catalog (`gradle/libs.versions.toml`), which likely centralizes dependency versions for the app module.

13. **Architecture summary for a diagram**
   - A good diagram would show: Android system → `MainActivity` → `AppNavigation` → feature screens.
   - Under each screen, connect to its ViewModel where present.
   - Keep `data/model` as the shared domain layer feeding the ViewModels.
   - Place `ui/theme` as a cross-cutting layer used by all UI screens.
   - Show the permission screen as a conditional branch in the navigation flow.

Main entry points: [`app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Theme.kt`](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Theme.kt) (Theme), [`app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/navigation/AppNavigation.kt`](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/navigation/AppNavigation.kt) (App Navigation), [`app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/MainActivity.kt`](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/MainActivity.kt) (MainActivity), [`app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/destinations/DestinationsScreen.kt`](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/destinations/DestinationsScreen.kt) (Destinations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform"]
  node_android(("Android OS<br/>platform"))
  node_manifest["Manifest<br/>config"]
  node_mainactivity["MainActivity<br/>[MainActivity.kt]"]
end

subgraph group_presentation["Presentation"]
  node_navigation["App Navigation<br/>compose navigation<br/>[AppNavigation.kt]"]
  node_home["Home<br/>screen<br/>[HomeScreen.kt]"]
  node_destinations["Destinations<br/>screen"]
  node_destvm["Destinations VM<br/>state holder"]
  node_budget["Budget<br/>screen<br/>[BudgetScreen.kt]"]
  node_budgetvm["Budget VM<br/>state holder<br/>[BudgetViewModel.kt]"]
  node_luggage["Luggage<br/>screen<br/>[LuggageScreen.kt]"]
  node_permission["Location Permission<br/>gate screen"]
end

subgraph group_domain["Domain"]
  node_destinationmodel["Destination<br/>domain model<br/>[Destination.kt]"]
  node_alojamiento["TipoAlojamiento<br/>domain enum<br/>[TipoAlojamiento.kt]"]
end

subgraph group_sharedui["Shared UI"]
  node_theme["Theme<br/>[Theme.kt]"]
  node_colors["Colors<br/>theme tokens<br/>[Color.kt]"]
  node_type["Type<br/>theme tokens<br/>[Type.kt]"]
end

node_android -->|"declares"| node_manifest
node_android -->|"starts"| node_mainactivity
node_mainactivity -->|"wraps"| node_theme
node_mainactivity -->|"hosts"| node_navigation
node_navigation -->|"routes"| node_home
node_navigation -->|"routes"| node_destinations
node_navigation -->|"routes"| node_budget
node_navigation -->|"routes"| node_luggage
node_navigation -->|"branches"| node_permission
node_destinations -->|"binds"| node_destvm
node_budget -->|"binds"| node_budgetvm
node_destvm -->|"uses"| node_destinationmodel
node_destvm -->|"uses"| node_alojamiento
node_budgetvm -->|"uses"| node_destinationmodel
node_home -->|"styled by"| node_theme
node_destinations -->|"styled by"| node_theme
node_budget -->|"styled by"| node_theme
node_luggage -->|"styled by"| node_theme
node_permission -->|"styled by"| node_theme
node_theme -->|"defines"| node_colors
node_theme -->|"defines"| node_type

click node_manifest "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/AndroidManifest.xml"
click node_mainactivity "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/MainActivity.kt"
click node_navigation "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/navigation/AppNavigation.kt"
click node_home "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/home/HomeScreen.kt"
click node_destinations "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/destinations/DestinationsScreen.kt"
click node_destvm "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/destinations/DestinationsViewModel.kt"
click node_budget "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/budget/BudgetScreen.kt"
click node_budgetvm "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/budget/BudgetViewModel.kt"
click node_luggage "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/luggage/LuggageScreen.kt"
click node_permission "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/permissions/LocationPermissionScreen.kt"
click node_destinationmodel "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/data/model/Destination.kt"
click node_alojamiento "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/data/model/TipoAlojamiento.kt"
click node_theme "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Theme.kt"
click node_colors "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Color.kt"
click node_type "https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Type.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_android,node_manifest,node_mainactivity toneBlue
class node_navigation,node_home,node_destinations,node_destvm,node_budget,node_budgetvm,node_luggage,node_permission toneAmber
class node_destinationmodel,node_alojamiento toneMint
class node_theme,node_colors,node_type toneRose
```

## Components

### Platform

Android entry and app-level configuration

- **Android OS**: platform · Host platform and lifecycle entry boundary
- [Manifest](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/AndroidManifest.xml): config · App-level Android configuration and launcher declaration · `app/src/main/AndroidManifest.xml`
- [MainActivity](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/MainActivity.kt): activity · App startup entry into the Compose UI · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/MainActivity.kt`

### Presentation

Navigation and feature screens

- [App Navigation](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/navigation/AppNavigation.kt): compose navigation · Central route and flow orchestration · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/navigation/AppNavigation.kt`
- [Home](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/home/HomeScreen.kt): screen · Landing screen and app hub · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/home/HomeScreen.kt`
- [Destinations](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/destinations/DestinationsScreen.kt): screen · Destination browsing and selection UI · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/destinations/DestinationsScreen.kt`
- [Destinations VM](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/destinations/DestinationsViewModel.kt): state holder · State and actions for destinations flow · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/destinations/DestinationsViewModel.kt`
- [Budget](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/budget/BudgetScreen.kt): screen · Budget planning UI · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/budget/BudgetScreen.kt`
- [Budget VM](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/budget/BudgetViewModel.kt): state holder · State and actions for budget flow · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/budget/BudgetViewModel.kt`
- [Luggage](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/luggage/LuggageScreen.kt): screen · Packing and luggage guidance screen · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/luggage/LuggageScreen.kt`
- [Location Permission](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/permissions/LocationPermissionScreen.kt): gate screen · Runtime location permission branch · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/presentation/permissions/LocationPermissionScreen.kt`

### Domain

Shared app models

- [Destination](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/data/model/Destination.kt): domain model · Trip destination entity · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/data/model/Destination.kt`
- [TipoAlojamiento](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/data/model/TipoAlojamiento.kt): domain enum · Accommodation type model · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/data/model/TipoAlojamiento.kt`

### Shared UI

Theme and styling

- [Theme](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Theme.kt): ui theme · App-wide Compose theme wrapper · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Theme.kt`
- [Colors](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Color.kt): theme tokens · Shared color palette · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Color.kt`
- [Type](https://github.com/23-andres-qc/pc01-quiliche22200144-perales22200107/blob/main/app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Type.kt): theme tokens · Shared typography styles · `app/src/main/java/com/example/pc01_quiliche22200144_perales22200107/ui/theme/Type.kt`

## Connections

- Android OS → Manifest: declares · App configuration and launcher entry
- Android OS → MainActivity: starts · Android launches the activity
- MainActivity → Theme: wraps · Activity applies the app theme
- MainActivity → App Navigation: hosts · Activity hands control to navigation
- App Navigation → Home: routes · Navigation can present the home screen
- App Navigation → Destinations: routes · Navigation can present destinations
- App Navigation → Budget: routes · Navigation can present budget
- App Navigation → Luggage: routes · Navigation can present luggage
- App Navigation → Location Permission: branches · Conditional permission gate in the flow
- Destinations → Destinations VM: binds · Screen consumes ViewModel state
- Budget → Budget VM: binds · Screen consumes ViewModel state
- Destinations VM → Destination: uses · Destinations state is shaped by trip model
- Destinations VM → TipoAlojamiento: uses · Accommodation type informs destination choices
- Budget VM → Destination: uses · Budget logic can reference destinations
- Home → Theme: styled by · All screens share the app theme
- Destinations → Theme: styled by · Compose UI uses shared theme
- Budget → Theme: styled by · Compose UI uses shared theme
- Luggage → Theme: styled by · Compose UI uses shared theme
- Location Permission → Theme: styled by · Compose UI uses shared theme
- Theme → Colors: defines · Theme composes shared colors
- Theme → Type: defines · Theme composes shared typography
