From c8a01582eba047671e499b9ca9a6d821229b005b Mon Sep 17 00:00:00 2001 From: emmavdwa Date: Tue, 23 Jul 2024 20:57:54 +0200 Subject: [PATCH] fix: better structure and example Quotes is changed to real name --- .../re/writand/data/repos/{ => projects}/IProjectsRepository.kt | 2 +- .../re/writand/data/repos/{ => projects}/ProjectsRepository.kt | 2 +- app/src/main/java/be/re/writand/di/DatabaseModule.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename app/src/main/java/be/re/writand/data/repos/{ => projects}/IProjectsRepository.kt (94%) rename app/src/main/java/be/re/writand/data/repos/{ => projects}/ProjectsRepository.kt (93%) diff --git a/app/src/main/java/be/re/writand/data/repos/IProjectsRepository.kt b/app/src/main/java/be/re/writand/data/repos/projects/IProjectsRepository.kt similarity index 94% rename from app/src/main/java/be/re/writand/data/repos/IProjectsRepository.kt rename to app/src/main/java/be/re/writand/data/repos/projects/IProjectsRepository.kt index d29344e..c7f84b6 100644 --- a/app/src/main/java/be/re/writand/data/repos/IProjectsRepository.kt +++ b/app/src/main/java/be/re/writand/data/repos/projects/IProjectsRepository.kt @@ -1,4 +1,4 @@ -package be.re.writand.data.repos +package be.re.writand.data.repos.projects import be.re.writand.data.local.models.Project import kotlinx.coroutines.flow.Flow diff --git a/app/src/main/java/be/re/writand/data/repos/ProjectsRepository.kt b/app/src/main/java/be/re/writand/data/repos/projects/ProjectsRepository.kt similarity index 93% rename from app/src/main/java/be/re/writand/data/repos/ProjectsRepository.kt rename to app/src/main/java/be/re/writand/data/repos/projects/ProjectsRepository.kt index d8b6671..a6b76d4 100644 --- a/app/src/main/java/be/re/writand/data/repos/ProjectsRepository.kt +++ b/app/src/main/java/be/re/writand/data/repos/projects/ProjectsRepository.kt @@ -1,4 +1,4 @@ -package be.re.writand.data.repos +package be.re.writand.data.repos.projects import be.re.writand.data.local.db.ProjectsDao import be.re.writand.data.local.models.Project diff --git a/app/src/main/java/be/re/writand/di/DatabaseModule.kt b/app/src/main/java/be/re/writand/di/DatabaseModule.kt index 1b321e2..1a99ab2 100644 --- a/app/src/main/java/be/re/writand/di/DatabaseModule.kt +++ b/app/src/main/java/be/re/writand/di/DatabaseModule.kt @@ -22,7 +22,7 @@ class DatabaseModule { return ProjectsDatabase.getInstance(context) } @Provides - fun provideQuotesDao(projectsDatabase: ProjectsDatabase): ProjectsDao { + fun provideProjectsDao(projectsDatabase: ProjectsDatabase): ProjectsDao { return projectsDatabase.projectsDao() }