# robertsandoval2d-dev/proyecto-market-universitario-android architecture

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

- Interactive diagram: https://gitdiagram.com/robertsandoval2d-dev/proyecto-market-universitario-android
- Repository: https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android

## Overview

Market Universitario is an Android university marketplace app. The apparent user journey is app launch, authentication, then browsing products or managing a business; the tree also shows order views and profile completion. The source excerpts contain no app runtime code and the README is empty, so these connections are shown as unverified rather than asserted. Paths identify implementations where the tree provides them, otherwise the relevant feature directory.

Main entry points: [`app/src/main/java/com/example/marketuniversitario/navigation/NavigationWrapper.kt`](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/navigation/NavigationWrapper.kt) (Navigation wrapper), [`app/src/main/java/com/example/marketuniversitario/feature/auth`](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/auth) (Authentication), [`app/src/main/java/com/example/marketuniversitario/feature/home/ui/home/HomeViewModel.kt`](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/home/ui/home/HomeViewModel.kt) (Product browsing), [`app/src/main/java/com/example/marketuniversitario/MainActivity.kt`](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/MainActivity.kt) (Main activity)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App shell"]
  node_activity["Main activity<br/>[MainActivity.kt]"]
  node_app_root["App root"]
  node_nav["Navigation wrapper"]
  node_splash["Launch screen<br/>[SplashScreen.kt]"]
end

subgraph group_identity["Identity and profile"]
  node_auth["Authentication"]
  node_profile["Profile completion"]
end

subgraph group_market["Marketplace"]
  node_home["Product browsing<br/>[HomeViewModel.kt]"]
  node_image_search["Image search"]
  node_business["Business management"]
end

subgraph group_commerce["Orders and storage"]
  node_orders["Order views"]
  node_products["Product data"]
  node_local_db[("Local database<br/>[AppDatabase.kt]")]
end

node_user(("User"))
node_firebase[("Firebase services")]

node_user -.->|"opens"| node_activity
node_activity -.->|"starts"| node_app_root
node_app_root -.->|"hosts"| node_nav
node_nav -.->|"launches"| node_splash
node_nav -.->|"routes to"| node_auth
node_auth -.->|"continues to"| node_home
node_auth -.->|"routes to"| node_profile
node_home -.->|"loads products"| node_products
node_home -.->|"offers search"| node_image_search
node_nav -.->|"routes to"| node_business
node_nav -.->|"routes to"| node_orders
node_products -.->|"may persist"| node_local_db
node_auth -.->|"may use"| node_firebase

click node_activity "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/MainActivity.kt"
click node_app_root "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/MarketUniversitarioApp.kt"
click node_nav "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/navigation/NavigationWrapper.kt"
click node_splash "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/splash/ui/SplashScreen.kt"
click node_auth "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/auth"
click node_profile "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/user/ui/profile_completion"
click node_home "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/home/ui/home/HomeViewModel.kt"
click node_image_search "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/home/ui/components/SearchOptions/SearchWithImageViewModel.kt"
click node_business "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/business"
click node_orders "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/orders"
click node_products "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/business/data/repositories/ProductRepositoryImpl.kt"
click node_local_db "https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/core/database/AppDatabase.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_activity,node_app_root,node_nav,node_splash,node_user toneBlue
class node_auth,node_profile,node_firebase toneAmber
class node_home,node_image_search,node_business toneMint
class node_orders,node_products,node_local_db toneRose
```

## Components

### App shell

- [Main activity](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/MainActivity.kt): `app/src/main/java/com/example/marketuniversitario/MainActivity.kt`
- [App root](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/MarketUniversitarioApp.kt): `app/src/main/java/com/example/marketuniversitario/MarketUniversitarioApp.kt`
- [Navigation wrapper](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/navigation/NavigationWrapper.kt): `app/src/main/java/com/example/marketuniversitario/navigation/NavigationWrapper.kt`
- [Launch screen](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/splash/ui/SplashScreen.kt): `app/src/main/java/com/example/marketuniversitario/feature/splash/ui/SplashScreen.kt`

### Identity and profile

- [Authentication](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/auth): `app/src/main/java/com/example/marketuniversitario/feature/auth`
- [Profile completion](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/user/ui/profile_completion): `app/src/main/java/com/example/marketuniversitario/feature/user/ui/profile_completion`

### Marketplace

- [Product browsing](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/home/ui/home/HomeViewModel.kt): `app/src/main/java/com/example/marketuniversitario/feature/home/ui/home/HomeViewModel.kt`
- [Image search](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/home/ui/components/SearchOptions/SearchWithImageViewModel.kt): `app/src/main/java/com/example/marketuniversitario/feature/home/ui/components/SearchOptions/SearchWithImageViewModel.kt`
- [Business management](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/business): `app/src/main/java/com/example/marketuniversitario/feature/business`

### Orders and storage

- [Order views](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/tree/main/app/src/main/java/com/example/marketuniversitario/feature/orders): `app/src/main/java/com/example/marketuniversitario/feature/orders`
- [Product data](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/feature/business/data/repositories/ProductRepositoryImpl.kt): `app/src/main/java/com/example/marketuniversitario/feature/business/data/repositories/ProductRepositoryImpl.kt`
- [Local database](https://github.com/robertsandoval2d-dev/proyecto-market-universitario-android/blob/main/app/src/main/java/com/example/marketuniversitario/core/database/AppDatabase.kt): `app/src/main/java/com/example/marketuniversitario/core/database/AppDatabase.kt`

### Other components

- **User**
- **Firebase services**

## Connections

- User → Main activity: opens
- Main activity → App root: starts
- App root → Navigation wrapper: hosts
- Navigation wrapper → Launch screen: launches
- Navigation wrapper → Authentication: routes to
- Authentication → Product browsing: continues to
- Authentication → Profile completion: routes to
- Product browsing → Product data: loads products
- Product browsing → Image search: offers search
- Navigation wrapper → Business management: routes to
- Navigation wrapper → Order views: routes to
- Product data → Local database: may persist
- Authentication → Firebase services: may use
