Merge branch 'dev' of https://github.com/h4h13/RetroMusicPlayer into dev
This commit is contained in:
commit
283280529b
140 changed files with 2267 additions and 931 deletions
|
@ -8,11 +8,20 @@ import io.github.muntashirakon.music.activities.search.SearchViewModel
|
|||
import io.github.muntashirakon.music.fragments.LibraryViewModel
|
||||
import io.github.muntashirakon.music.model.Genre
|
||||
import io.github.muntashirakon.music.model.Playlist
|
||||
import org.koin.android.viewmodel.dsl.viewModel
|
||||
import io.github.muntashirakon.music.network.networkModule
|
||||
import io.github.muntashirakon.music.providers.RepositoryImpl
|
||||
import org.eclipse.egit.github.core.Repository
|
||||
import org.koin.androidx.viewmodel.dsl.viewModel
|
||||
import org.koin.dsl.bind
|
||||
import org.koin.dsl.module
|
||||
|
||||
private val dataModule = module {
|
||||
single {
|
||||
RepositoryImpl(get(), get())
|
||||
} bind Repository::class
|
||||
}
|
||||
|
||||
val mainModule = module {
|
||||
private val viewModules = module {
|
||||
|
||||
viewModel {
|
||||
LibraryViewModel(get())
|
||||
|
@ -37,4 +46,6 @@ val mainModule = module {
|
|||
viewModel {
|
||||
SearchViewModel(get())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val appModules = listOf(dataModule, viewModules, networkModule)
|
Loading…
Add table
Add a link
Reference in a new issue