How mostafaalagamy/metrolist works
Main Components
• App (UI & core functionality): The “app” module (with packages such as ui, viewmodels, db, playback, and themes) represents the primary Android client. It comprises multiple layers like Activities/Composables (screens and components), viewmodels (MVVM design), a local database (MusicDatabase with entities and DAOs), and playback services (MusicService, ExoDownloadService, etc.).
• Lyrics and Media Enhancements: Modules such as “lrclib” and “kugou” provide functionality for processing lyrics. Include these as specialized components that supply live or downloaded lyrics and additional media metadata.
• Build and Deployment Infrastructure: Although not part of runtime architecture, include build configuration elements (Gradle build scripts, GitHub workflows, Fastlane metadata) as an overlay showing CI/CD and deployment pipelines.
Relationships and Interactions
• ViewModels and Domain Layer: Illustrate that viewmodels (e.g., AlbumViewModel, HomeViewModel, etc.) serve as intermediaries binding UI to both local persistence (via repositories accessing MusicDatabase) and network calls through the innerTube module.
• Data Storage: Include the database component (with entities such as SongEntity, PlaylistEntity, etc.) and indicate flows from viewmodels or repositories to the database layer.
• Lyrics Providers: Represent lrclib and kugou modules as ancillary services that the app queries to display live lyrics. They may pass processed text (and possibly parsed timestamp info) back to the UI.