mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-18 08:05:20 +01:00
Add Room database for custom playlist
Here we go again! Doing custom playlist db
This commit is contained in:
parent
662a5eea35
commit
6ace96708b
13 changed files with 250 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
package code.name.monkey.retromusic
|
||||
|
||||
import code.name.monkey.retromusic.db.PlaylistDatabase
|
||||
import code.name.monkey.retromusic.fragments.LibraryViewModel
|
||||
import code.name.monkey.retromusic.fragments.albums.AlbumDetailsViewModel
|
||||
import code.name.monkey.retromusic.fragments.artists.ArtistDetailsViewModel
|
||||
|
@ -65,6 +66,10 @@ private val dataModule = module {
|
|||
single {
|
||||
androidContext().contentResolver
|
||||
}
|
||||
|
||||
single {
|
||||
PlaylistDatabase.getDatabase(get())
|
||||
}
|
||||
}
|
||||
|
||||
private val viewModules = module {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue