Skip to content

Commit

Permalink
refactor: 패키지 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyesung82 committed Mar 16, 2024
1 parent 68689a7 commit f5ac2bf
Show file tree
Hide file tree
Showing 19 changed files with 24 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cheocharm.data.source
package com.cheocharm.data.local.source

interface AuthLocalDataSource {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cheocharm.data.source
package com.cheocharm.data.remote.source

import com.cheocharm.domain.model.Token

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cheocharm.data.source
package com.cheocharm.data.remote.source

import androidx.paging.PagingData
import com.cheocharm.domain.model.Group
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cheocharm.data.source
package com.cheocharm.data.remote.source

import com.cheocharm.domain.model.GoogleSignUpRequest
import com.cheocharm.domain.model.Token
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cheocharm.data.source
package com.cheocharm.data.remote.source

import com.cheocharm.data.model.GroupData

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.cheocharm.data.source
package com.cheocharm.data.remote.source

import com.cheocharm.domain.model.TempDiary
import com.cheocharm.domain.model.WriteDiaryRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package com.cheocharm.data.repository

import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.error.toDomain
import com.cheocharm.data.source.AuthLocalDataSource
import com.cheocharm.data.source.AuthRemoteDataSource
import com.cheocharm.data.local.source.AuthLocalDataSource
import com.cheocharm.data.remote.source.AuthRemoteDataSource
import com.cheocharm.domain.model.Token
import com.cheocharm.domain.repository.AuthRepository
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.cheocharm.data.repository
import androidx.paging.PagingData
import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.error.toDomain
import com.cheocharm.data.source.GroupRemoteDataSource
import com.cheocharm.data.remote.source.GroupRemoteDataSource
import com.cheocharm.domain.model.Group
import com.cheocharm.domain.repository.GroupRepository
import kotlinx.coroutines.flow.Flow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.cheocharm.data.repository

import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.error.toDomain
import com.cheocharm.data.source.LoginRemoteDataSource
import com.cheocharm.data.remote.source.LoginRemoteDataSource
import com.cheocharm.domain.model.GoogleSignUpRequest
import com.cheocharm.domain.model.Token
import com.cheocharm.domain.model.MapZSignInRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package com.cheocharm.data.repository
import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.error.toDomain
import com.cheocharm.data.mapper.toDomain
import com.cheocharm.data.source.MyGroupsRemoteDataSource
import com.cheocharm.data.remote.source.MyGroupsRemoteDataSource
import com.cheocharm.domain.model.Group
import com.cheocharm.domain.repository.MyGroupsRepository
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.cheocharm.data.repository

import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.error.toDomain
import com.cheocharm.data.source.WriteRemoteDataSource
import com.cheocharm.data.remote.source.WriteRemoteDataSource
import com.cheocharm.domain.model.TempDiary
import com.cheocharm.domain.model.WriteDiaryRequest
import com.cheocharm.domain.model.WriteImageRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.cheocharm.local.di

import com.cheocharm.data.source.AuthLocalDataSource
import com.cheocharm.data.local.source.AuthLocalDataSource
import com.cheocharm.local.source.AuthLocalDataSourceImpl
import dagger.Binds
import dagger.Module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.cheocharm.local.source

import com.cheocharm.data.source.AuthLocalDataSource
import com.cheocharm.data.local.source.AuthLocalDataSource
import com.cheocharm.local.SharedPrefManager
import javax.inject.Inject

Expand Down
10 changes: 5 additions & 5 deletions remote/src/main/java/com/cheocharm/remote/di/DataSourceModule.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.cheocharm.remote.di

import com.cheocharm.data.source.GroupRemoteDataSource
import com.cheocharm.data.remote.source.GroupRemoteDataSource
import com.cheocharm.remote.source.GroupRemoteDataSourceImpl
import com.cheocharm.data.source.AuthRemoteDataSource
import com.cheocharm.data.source.LoginRemoteDataSource
import com.cheocharm.data.source.MyGroupsRemoteDataSource
import com.cheocharm.data.source.WriteRemoteDataSource
import com.cheocharm.data.remote.source.AuthRemoteDataSource
import com.cheocharm.data.remote.source.LoginRemoteDataSource
import com.cheocharm.data.remote.source.MyGroupsRemoteDataSource
import com.cheocharm.data.remote.source.WriteRemoteDataSource
import com.cheocharm.remote.source.AuthRemoteDataSourceImpl
import com.cheocharm.remote.source.LoginRemoteDataSourceImpl
import com.cheocharm.remote.source.MyGroupsRemoteDataSourceImpl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
package com.cheocharm.remote.source

import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.source.AuthRemoteDataSource
import com.cheocharm.data.remote.source.AuthRemoteDataSource
import com.cheocharm.domain.model.Token
import com.cheocharm.remote.api.TokenApi
import com.cheocharm.remote.mapper.toDomain
import com.cheocharm.remote.model.TokenResponse
import java.net.UnknownHostException
import javax.inject.Inject

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.source.GroupRemoteDataSource
import com.cheocharm.data.remote.source.GroupRemoteDataSource
import com.cheocharm.domain.model.Group
import com.cheocharm.remote.api.GroupApi
import kotlinx.coroutines.flow.Flow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.cheocharm.remote.source

import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.source.LoginRemoteDataSource
import com.cheocharm.data.remote.source.LoginRemoteDataSource
import com.cheocharm.domain.model.GoogleSignUpRequest
import com.cheocharm.domain.model.Token
import com.cheocharm.domain.model.MapZSignInRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.cheocharm.remote.source

import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.model.GroupData
import com.cheocharm.data.source.MyGroupsRemoteDataSource
import com.cheocharm.data.remote.source.MyGroupsRemoteDataSource
import com.cheocharm.remote.api.DiaryApi
import com.cheocharm.remote.mapper.toData
import java.net.UnknownHostException
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.cheocharm.remote.source

import com.cheocharm.data.error.ErrorData
import com.cheocharm.data.source.WriteRemoteDataSource
import com.cheocharm.data.remote.source.WriteRemoteDataSource
import com.cheocharm.domain.model.TempDiary
import com.cheocharm.domain.model.WriteDiaryRequest
import com.cheocharm.domain.model.WriteImageRequest
Expand Down

0 comments on commit f5ac2bf

Please sign in to comment.