package Ġcom . har ish . albums . di . albums Ċ Ċ import Ġandroidx . lifecycle . ViewModel Providers Ċ import Ġcom . har ish . albums . repository . Album s Repository Ċ import Ġcom . har ish . albums . repository . Album s Repository Imp Ċ import Ġcom . har ish . albums . repository . Local DataSource Ċ import Ġcom . har ish . albums . repository . Remote DataSource Ċ import Ġdagger . Module Ċ import Ġdagger . Provides Ċ import Ġdagger . h ilt . Install In Ċ import Ġdagger . h ilt . android . components . ViewModel Component Ċ import Ġdagger . h ilt . android . scopes . ViewModel Scoped Ċ import Ġdagger . h ilt . components . Singleton Component Ċ Ċ @ Module Ċ @ Install In ( ViewModel Component :: class ) Ċ object ĠAlbum s Activity Module Ġ{ ĊĊĠĠĠ Ġ@ Provides ĊĠĠĠ Ġ@ ViewModel Scoped ĊĠĠĠ Ġfun Ġprovide Album Repository ( ĊĠĠĠĠĠĠĠ Ġremote DataSource : ĠRemote DataSource , ĊĠĠĠĠĠĠĠ Ġlocal DataSource : ĠLocal DataSource ĊĠĠĠ Ġ): ĠAlbum s Repository Ġ= ĠAlbum s Repository Imp ( remote DataSource , Ġlocal DataSource ) Ċ Ċ }