Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/#147 lecture evaluation #148

Merged
merged 4 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions app-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ dependencies {

implementation(projects.remote.openmajor)
implementation(projects.remote.timetable)
implementation(projects.remote.lectureevaluation.viewerreporter)
implementation(projects.remote.lectureevaluation.my)
implementation(projects.remote.lectureevaluation.editor)
implementation(projects.remote.lectureevaluation)
implementation(projects.remote.signup)
implementation(projects.remote.notice)
implementation(projects.remote.user)
Expand All @@ -39,9 +37,7 @@ dependencies {

implementation(projects.data.openmajor)
implementation(projects.data.timetable)
implementation(projects.data.lectureevaluation.viewerreporter)
implementation(projects.data.lectureevaluation.editor)
implementation(projects.data.lectureevaluation.my)
implementation(projects.data.lectureevaluation)
implementation(projects.data.user)
implementation(projects.data.notice)
implementation(projects.data.signup)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ plugins {
}

android {
namespace = "com.suwiki.data.lectureevalution.my"
namespace = "com.suwiki.data.lectureevaluation"
}

dependencies {
implementation(projects.domain.lectureevaluation.my)
implementation(projects.domain.lectureevaluation)
}
12 changes: 0 additions & 12 deletions data/lectureevaluation/editor/build.gradle.kts

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.editor.datasource
package com.suwiki.data.lectureevaluation.datasource

interface RemoteExamEditorDataSource {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.my.datasource
package com.suwiki.data.lectureevaluation.datasource

import com.suwiki.core.model.lectureevaluation.PurchaseHistory
import com.suwiki.core.model.lectureevaluation.exam.MyExamEvaluation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.viewerreporter.datasource
package com.suwiki.data.lectureevaluation.datasource

import com.suwiki.core.model.lectureevaluation.exam.ExamEvaluationList

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.viewerreporter.datasource
package com.suwiki.data.lectureevaluation.datasource

interface RemoteExamReportDataSource {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.editor.datasource
package com.suwiki.data.lectureevaluation.datasource

interface RemoteLectureEditorDataSource {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.my.datasource
package com.suwiki.data.lectureevaluation.datasource

import com.suwiki.core.model.lectureevaluation.lecture.MyLectureEvaluation

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.viewerreporter.datasource
package com.suwiki.data.lectureevaluation.datasource

import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationAverage
import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationExtraAverage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.viewerreporter.datasource
package com.suwiki.data.lectureevaluation.datasource

interface RemoteLectureReportDataSource {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
package com.suwiki.data.lectureevaluation.di

import com.suwiki.data.lectureevaluation.repository.ExamEditorRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.ExamMyRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.ExamProviderRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.ExamReportRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.LectureEditorRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.LectureMyRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.LectureProviderRepositoryImpl
import com.suwiki.data.lectureevaluation.repository.LectureReportRepositoryImpl
import com.suwiki.domain.lectureevaluation.repository.ExamEditorRepository
import com.suwiki.domain.lectureevaluation.repository.ExamMyRepository
import com.suwiki.domain.lectureevaluation.repository.ExamProviderRepository
import com.suwiki.domain.lectureevaluation.repository.ExamReportRepository
import com.suwiki.domain.lectureevaluation.repository.LectureEditorRepository
import com.suwiki.domain.lectureevaluation.repository.LectureMyRepository
import com.suwiki.domain.lectureevaluation.repository.LectureProviderRepository
import com.suwiki.domain.lectureevaluation.repository.LectureReportRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
abstract class RepositoryModule {

@Singleton
@Binds
abstract fun bindExamEditorRepository(
examEditorRepositoryImpl: ExamEditorRepositoryImpl,
): ExamEditorRepository

@Singleton
@Binds
abstract fun bindLectureEditorRepository(
lectureEditorRepositoryImpl: LectureEditorRepositoryImpl,
): LectureEditorRepository

@Singleton
@Binds
abstract fun bindExamMyRepository(
examMyRepositoryImpl: ExamMyRepositoryImpl,
): ExamMyRepository

@Singleton
@Binds
abstract fun bindLectureMyRepository(
lectureMyRepositoryImpl: LectureMyRepositoryImpl,
): LectureMyRepository

@Singleton
@Binds
abstract fun bindExamProviderRepository(
examProviderRepositoryImpl: ExamProviderRepositoryImpl,
): ExamProviderRepository

@Singleton
@Binds
abstract fun bindExamReportRepository(
examReportRepositoryImpl: ExamReportRepositoryImpl,
): ExamReportRepository

@Singleton
@Binds
abstract fun bindLectureProviderRepository(
lectureProviderRepositoryImpl: LectureProviderRepositoryImpl,
): LectureProviderRepository

@Singleton
@Binds
abstract fun bindLectureReportRepository(
lectureReportRepositoryImpl: LectureReportRepositoryImpl,
): LectureReportRepository
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.data.lectureevaluation.editor.repository
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.data.lectureevaluation.editor.datasource.RemoteExamEditorDataSource
import com.suwiki.domain.lectureevaluation.editor.repository.ExamEditorRepository
import com.suwiki.data.lectureevaluation.datasource.RemoteExamEditorDataSource
import com.suwiki.domain.lectureevaluation.repository.ExamEditorRepository
import javax.inject.Inject

class ExamEditorRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.suwiki.data.lectureevaluation.my.repository
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.PurchaseHistory
import com.suwiki.core.model.lectureevaluation.exam.MyExamEvaluation
import com.suwiki.data.lectureevaluation.my.datasource.RemoteExamMyDataSource
import com.suwiki.domain.lectureevaluation.my.repository.ExamMyRepository
import com.suwiki.data.lectureevaluation.datasource.RemoteExamMyDataSource
import com.suwiki.domain.lectureevaluation.repository.ExamMyRepository
import javax.inject.Inject

class ExamMyRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.data.lectureevaluation.viewerreporter.repository
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.exam.ExamEvaluationList
import com.suwiki.data.lectureevaluation.viewerreporter.datasource.RemoteExamProviderDataSource
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamProviderRepository
import com.suwiki.data.lectureevaluation.datasource.RemoteExamProviderDataSource
import com.suwiki.domain.lectureevaluation.repository.ExamProviderRepository
import javax.inject.Inject

class ExamProviderRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.data.lectureevaluation.viewerreporter.repository
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.data.lectureevaluation.viewerreporter.datasource.RemoteExamReportDataSource
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.ExamReportRepository
import com.suwiki.data.lectureevaluation.datasource.RemoteExamReportDataSource
import com.suwiki.domain.lectureevaluation.repository.ExamReportRepository
import javax.inject.Inject

class ExamReportRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.data.lectureevaluation.editor.repository
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.data.lectureevaluation.editor.datasource.RemoteLectureEditorDataSource
import com.suwiki.domain.lectureevaluation.editor.repository.LectureEditorRepository
import com.suwiki.data.lectureevaluation.datasource.RemoteLectureEditorDataSource
import com.suwiki.domain.lectureevaluation.repository.LectureEditorRepository
import javax.inject.Inject

class LectureEditorRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.suwiki.data.lectureevaluation.my.repository
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.lecture.MyLectureEvaluation
import com.suwiki.data.lectureevaluation.my.datasource.RemoteLectureMyDataSource
import com.suwiki.domain.lectureevaluation.my.repository.LectureMyRepository
import com.suwiki.data.lectureevaluation.datasource.RemoteLectureMyDataSource
import com.suwiki.domain.lectureevaluation.repository.LectureMyRepository
import javax.inject.Inject

class LectureMyRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.suwiki.data.lectureevaluation.viewerreporter.repository
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationAverage
import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationExtraAverage
import com.suwiki.core.model.lectureevaluation.lecture.LectureEvaluationList
import com.suwiki.data.lectureevaluation.viewerreporter.datasource.RemoteLectureProviderDataSource
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureProviderRepository
import com.suwiki.data.lectureevaluation.datasource.RemoteLectureProviderDataSource
import com.suwiki.domain.lectureevaluation.repository.LectureProviderRepository
import javax.inject.Inject

class LectureProviderRepositoryImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.suwiki.data.lectureevaluation.viewerreporter.repository
package com.suwiki.data.lectureevaluation.repository

import com.suwiki.data.lectureevaluation.viewerreporter.datasource.RemoteLectureReportDataSource
import com.suwiki.domain.lectureevaluation.viewerreporter.repository.LectureReportRepository
import com.suwiki.data.lectureevaluation.datasource.RemoteLectureReportDataSource
import com.suwiki.domain.lectureevaluation.repository.LectureReportRepository
import javax.inject.Inject

class LectureReportRepositoryImpl @Inject constructor(
Expand Down
12 changes: 0 additions & 12 deletions data/lectureevaluation/viewerreporter/build.gradle.kts

This file was deleted.

This file was deleted.

Loading
Loading