How skydoves/pokedex-compose works
Core Components
UI Layer:
• Feature Modules (Home & Details)
• Compose UI Components
• ViewModels (HomeViewModel, DetailsViewModel)
• Navigation Component
Core Components:
• Design System Module
• Theme
• Components
• Resources
• Navigation Module
• Navigator
• Navigation Commands
Data Layer:
• Network Module
• PokedexService (Retrofit)
• API Models
• Network Mappers
• Database Module
• Room Database
• DAOs
• Entity Mappers
• Repository Module
• Pokemon Repository
• Details Repository
Connection Flows
• Data flow from UI -> ViewModel -> Repository -> Data Sources
• Dependency injection flow using Hilt
• Navigation commands flow
• State management flow using Kotlin Flow
Component Details
For each major component, include:
• ┌─────────────────────┐
• Component Name │
• ┤
• Key Functions │
• Dependencies │
• Technology Stack │
• ┘
Technical Specifications
Notes for:
• Kotlin Coroutines usage
• Jetpack Compose UI
• Room Database
• Retrofit Network
• Hilt DI
• Clear separation of concerns
• Unidirectional data flow
• Modular architecture
• Offline-first capability
• Clean architecture principles