CSV Download

This commit is contained in:
Kaif
2023-12-14 13:59:48 +05:30
parent e7600dafec
commit 75875b9e4f
15 changed files with 485 additions and 245 deletions

View File

@@ -28,9 +28,7 @@ object AppModule {
fun provideMyDatabase(@ApplicationContext context: Context): MyDatabase {
return Room.databaseBuilder(
context, MyDatabase::class.java, "my_database"
)
.fallbackToDestructiveMigration()
.build()
).fallbackToDestructiveMigration().build()
}
@Provides
@@ -76,4 +74,10 @@ object AppModule {
fun provideRepository(): Repository {
return DatabaseRepository()
}
@Provides
@Singleton
fun provideLocalFileDataSource(): LocalFileDataSource {
return LocalFileDataSource()
}
}