Refactored folders into a separate model and added to Room database

This commit is contained in:
Anthonyy232 committed 2023-10-31 19:52:33 -07:00
1 parent 8c7a45e77a
commit c6790a4491
32 files changed
+516 -224

No files matched your search

@@ -8,9 +8,6 @@ import com.anthonyla.paperize.data.settings.SettingsDataStoreImpl
import com.anthonyla.paperize.feature.wallpaper.data.data_source.AlbumDatabase
import com.anthonyla.paperize.feature.wallpaper.data.repository.AlbumRepositoryImpl
import com.anthonyla.paperize.feature.wallpaper.domain.repository.AlbumRepository
import com.anthonyla.paperize.feature.wallpaper.use_case.AddAlbumWithWallpaper
import com.anthonyla.paperize.feature.wallpaper.use_case.AlbumsUseCases
import com.anthonyla.paperize.feature.wallpaper.use_case.GetAllAlbumsWithWallpaper
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
@@ -39,17 +36,6 @@ object AppModule {
return AlbumRepositoryImpl(db.albumDao)
}
@Provides
@Singleton
fun provideWallpaperUseCases(
repository: AlbumRepository
): AlbumsUseCases {
return AlbumsUseCases (
getAllAlbumsWithWallpaper = GetAllAlbumsWithWallpaper(repository),
addAlbumWithWallpaper = AddAlbumWithWallpaper(repository)
)
}
@Provides
@Singleton
fun provideSettingsDataStore (