Created
August 23, 2021 10:44
-
-
Save manuelvicnt/e37d69047589ecbd0fcd8b8aef3dcf53 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
@InstallIn(SingletonComponent::class) | |
object DataModule { | |
@Singleton | |
@Provides | |
fun provideMusicDB(@ApplicationContext context: Context): MusicDatabase { | |
return Room.databaseBuilder( | |
context, MusicDatabase::class.java, "music.db" | |
).build() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes