Skip to content

Commit

Permalink
Merge pull request #26 from uswLectureEvaluation/integration-data
Browse files Browse the repository at this point in the history
Integration data
  • Loading branch information
jinukeu authored Nov 17, 2023
2 parents 243e1b6 + 5c59bb6 commit 36790d3
Show file tree
Hide file tree
Showing 105 changed files with 202 additions and 669 deletions.
14 changes: 5 additions & 9 deletions app-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ dependencies {

implementation(projects.data)
implementation(projects.data.openmajor)
implementation(projects.data.timetable.viewer)
implementation(projects.data.timetable.editor)
implementation(projects.data.timetable)
implementation(projects.data.lectureevaluation.editor)
implementation(projects.data.lectureevaluation.viewer)
implementation(projects.data.lectureevaluation.report)
implementation(projects.data.lectureevaluation.viewerreporter)
implementation(projects.data.lectureevaluation.my)
implementation(projects.data.user)
implementation(projects.data.notice)
Expand All @@ -37,18 +35,16 @@ dependencies {
implementation(projects.domain.openmajor)

implementation(projects.local.openmajor)
implementation(projects.local.timetable.editor)
implementation(projects.local.timetable.viewer)
implementation(projects.local.timetable)
implementation(projects.local.user)

implementation(projects.remote.lectureevaluation.editor)
implementation(projects.remote.lectureevaluation.my)
implementation(projects.remote.lectureevaluation.report)
implementation(projects.remote.lectureevaluation.viewer)
implementation(projects.remote.lectureevaluation.viewerreporter)
implementation(projects.remote.notice)
implementation(projects.remote.openmajor)
implementation(projects.remote.signup)
implementation(projects.remote.timetable.viewer)
implementation(projects.remote.timetable)
implementation(projects.remote.user)

implementation(projects.presentation)
Expand Down
8 changes: 0 additions & 8 deletions data/lectureevaluation/viewer/build.gradle.kts

This file was deleted.

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ plugins {
}

android {
namespace = "com.suwiki.data.lectureevalution.report"
namespace = "com.suwiki.data.lectureevalution.viewerreporter"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.viewer
package com.suwiki.data.lectureevaluation.viewerreporter

import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.lectureevaluation.viewer.datasource
package com.suwiki.data.lectureevaluation.viewerreporter.datasource

import com.suwiki.core.model.lectureevaluation.LectureDetailExamData

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

interface RemoteExamReportDataSource {

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

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

interface RemoteLectureReportDataSource {

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

import junit.framework.TestCase.assertEquals
import org.junit.Test
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ plugins {
}

android {
namespace = "com.suwiki.data.timetable.viewer"
namespace = "com.suwiki.data.timetable"
}
File renamed without changes.
8 changes: 0 additions & 8 deletions data/timetable/editor/build.gradle.kts

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.data.timetable.viewer.datasource
package com.suwiki.data.timetable.datasource

import com.suwiki.core.model.timetable.TimetableData

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

import com.suwiki.core.model.timetable.TimetableData

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

import com.suwiki.core.model.timetable.TimetableData

Expand Down

This file was deleted.

2 changes: 2 additions & 0 deletions detekt-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ naming:
active: false
PackageNaming:
packagePattern: '[a-z]+(\._?[_?A-Za-z0-9]*)*'
InvalidPackageDeclaration:
active: false

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ plugins {
}

android {
namespace = "com.suwiki.local.timetable.editor"
namespace = "com.suwiki.local.timetable"
}

dependencies {
implementation(projects.core.model)
implementation(projects.data.timetable.editor)
implementation(projects.data.timetable)
implementation(projects.core.database)

ksp(libs.room.compiler)
Expand Down
File renamed without changes.

This file was deleted.

4 changes: 0 additions & 4 deletions local/timetable/editor/src/main/AndroidManifest.xml

This file was deleted.

This file was deleted.

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.local.timetable.viewer.converter
package com.suwiki.local.timetable.converter

import com.suwiki.core.database.model.TimetableEntity
import com.suwiki.core.model.timetable.TimetableData
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.suwiki.local.timetable.editor.converter
package com.suwiki.local.timetable.converter

import com.suwiki.core.database.model.TimetableEntity
import com.suwiki.core.model.timetable.TimetableData
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.suwiki.local.timetable.viewer.datasource
package com.suwiki.local.timetable.datasource

import com.suwiki.core.database.TimetableDatabase
import com.suwiki.core.model.timetable.TimetableData
import com.suwiki.data.timetable.viewer.datasource.LocalTimetableProviderDatasource
import com.suwiki.local.timetable.viewer.converter.toModel
import com.suwiki.data.timetable.datasource.LocalTimetableProviderDatasource
import com.suwiki.local.timetable.converter.toModel
import javax.inject.Inject

class LocalTimetableProviderDatasourceImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.suwiki.local.timetable.editor.datasource
package com.suwiki.local.timetable.datasource

import com.suwiki.core.database.TimetableDatabase
import com.suwiki.core.model.timetable.TimetableData
import com.suwiki.data.timetable.editor.datasource.LocalTimetableStorageDatasource
import com.suwiki.local.timetable.editor.converter.toEntity
import com.suwiki.data.timetable.datasource.LocalTimetableStorageDatasource
import com.suwiki.local.timetable.converter.toEntity
import javax.inject.Inject

class LocalTimetableStorageDatasourceImpl @Inject constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.suwiki.local.timetable.di

import com.suwiki.data.timetable.datasource.LocalTimetableProviderDatasource
import com.suwiki.data.timetable.datasource.LocalTimetableStorageDatasource
import com.suwiki.local.timetable.datasource.LocalTimetableProviderDatasourceImpl
import com.suwiki.local.timetable.datasource.LocalTimetableStorageDatasourceImpl
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 LocalDataSourceModule {

@Singleton
@Binds
abstract fun bindLocalTimetableStorageDataSource(
localTimetableStorageDataSourceImpl: LocalTimetableStorageDatasourceImpl,
): LocalTimetableStorageDatasource

@Singleton
@Binds
abstract fun bindLocalTimetableProviderDataSource(
localTimetableProviderDataSourceImpl: LocalTimetableProviderDatasourceImpl,
): LocalTimetableProviderDatasource
}
1 change: 0 additions & 1 deletion local/timetable/viewer/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions local/timetable/viewer/build.gradle.kts

This file was deleted.

Empty file.
Loading

0 comments on commit 36790d3

Please sign in to comment.