How luis-jaramillo-dev/travelin-android works
Project Type and Purpose
• This is a multi-module Android application (“travelin-android”) built in Kotlin using Gradle.
• It follows a Clean/Layers architecture: each feature (e.g., auth, booking) and core utility is split into domain, data, and presentation modules.
• The app module assembles features into a runnable Android APK that talks to the external Amadeus travel API and persists data locally.
File Structure Analysis
• Top-level modules:
• app – Android application entry point (MainActivity, manifest, resources)
• auth/booking – feature modules, each with sub-folders: data, domain, presentation
• core – shared libraries: data, database, domain, presentation (UI and design system)
• build-logic – custom Gradle convention plugins
• Pattern: each feature and core library is its own Gradle module, enforcing separation of concerns.
• Configuration: build.gradle.kts in each module, local.properties holds API_KEY and BASE_URL for the Amadeus API.
Key Components to Illustrate
• Android App (app module)
• Feature Presentation Layers (auth.presentation, booking.presentation)
• Core UI/Design System (core.presentation.ui & design system)
• Domain Layer (auth.domain, booking.domain, core.domain)
• Data Layer (auth.data, booking.data, core.data)
• Local Persistence (core.database)
• Network / External Service (Retrofit or similar → Amadeus API)
• Build Logic (Gradle plugins – optional to show as side-component)
Relationships and Data Flows
• UI Layer → triggers ViewModel or Composable events in presentation modules.
• Presentation → calls Domain Use Cases (interactors) in domain modules.
• Domain Use Cases → depend on Repository interfaces (declared in domain).
• Data Layer → implements repositories via RemoteDataSource and LocalDataSource.
• RemoteDataSource → HTTP client calls Amadeus API (using BASE_URL & API_KEY).
• LocalDataSource → Room (in core.database) for caching/persistence.
• Core.presentation.designsystem & ui → shared UI components consumed by feature presentations.
• app module → stitches feature presentation modules together, handles navigation.
Architectural Patterns & Design Principles
• Clean Architecture (Layered): UI → Domain → Data → External
• Separation of Concerns: each module has single responsibility (presentation, business logic, data).
• Dependency Inversion: Domain depends on abstractions; Data implements them.
• Modularization: feature modules can be developed/tested independently; core libs reused.