Skip to content

Instantly share code, notes, and snippets.

@manuelvicnt
Created August 23, 2021 10:44
Show Gist options
  • Save manuelvicnt/3937f9cc2394282cf6d520c44993367e to your computer and use it in GitHub Desktop.
Save manuelvicnt/3937f9cc2394282cf6d520c44993367e to your computer and use it in GitHub Desktop.
class PlayActivityContainer {
val musicDatabase: MusicDatabase =
Room.databaseBuilder(
context, MusicDatabase::class.java, "music.db"
).build()
fun provideMusicPlayer() = MusicPlayer(musicDatabase)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment