-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: local 과 remote mapper 분리 * fix: 잘못 import된 코드 수정 * feat: local 및 remote 패키지 분리 * fix: 잘못된 import코드 수정 * feat: common 패키지 생성 및 변경 * feat: auth 패키지 분리 * style: ktlint 적용 * feat: remote 와 local 패키지 data로 이동 * style: ktlint 적용 * feat: error handler 관련 로직 common으로 이동 * refactor: 잘못된 의존성 관계 변경 * feat: DataStore을 common 패키지로 변경 * feat: build.gradle 중복 로직 수정 및 version catalog를 통한 관리 * fix: build 오류 수정 --------- Co-authored-by: Namyunsuk <[email protected]>
- Loading branch information
1 parent
c0795a0
commit 3cc4521
Showing
89 changed files
with
384 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...hongdae/data/remote/api/AuthApiService.kt → ...zzang/chongdae/auth/api/AuthApiService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../remote/dto/request/AccessTokenRequest.kt → ...ae/auth/dto/request/AccessTokenRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...emote/dto/response/auth/MemberResponse.kt → ...ngdae/auth/dto/response/MemberResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
android/app/src/main/java/com/zzang/chongdae/auth/mapper/MemberMapper.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.zzang.chongdae.auth.mapper | ||
|
||
import com.zzang.chongdae.auth.dto.response.MemberResponse | ||
import com.zzang.chongdae.auth.model.Member | ||
|
||
fun MemberResponse.toDomain(): Member { | ||
return Member( | ||
memberId = this.memberId, | ||
nickName = this.nickname, | ||
) | ||
} |
2 changes: 1 addition & 1 deletion
2
...com/zzang/chongdae/domain/model/Member.kt → ...a/com/zzang/chongdae/auth/model/Member.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
android/app/src/main/java/com/zzang/chongdae/auth/repository/AuthRepository.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.zzang.chongdae.auth.repository | ||
|
||
import com.zzang.chongdae.auth.model.Member | ||
import com.zzang.chongdae.common.handler.DataError | ||
import com.zzang.chongdae.common.handler.Result | ||
|
||
interface AuthRepository { | ||
suspend fun saveLogin(accessToken: String): Result<Member, DataError.Network> | ||
|
||
suspend fun saveRefresh(): Result<Unit, DataError.Network> | ||
} |
15 changes: 7 additions & 8 deletions
15
...dae/data/repository/AuthRepositoryImpl.kt → ...dae/auth/repository/AuthRepositoryImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
android/app/src/main/java/com/zzang/chongdae/auth/source/AuthRemoteDataSource.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.zzang.chongdae.auth.source | ||
|
||
import com.zzang.chongdae.auth.dto.request.AccessTokenRequest | ||
import com.zzang.chongdae.auth.dto.response.MemberResponse | ||
import com.zzang.chongdae.common.handler.DataError | ||
import com.zzang.chongdae.common.handler.Result | ||
|
||
interface AuthRemoteDataSource { | ||
suspend fun saveLogin(accessTokenRequest: AccessTokenRequest): Result<MemberResponse, DataError.Network> | ||
|
||
suspend fun saveRefresh(): Result<Unit, DataError.Network> | ||
} |
13 changes: 6 additions & 7 deletions
13
...remote/source/AuthRemoteDataSourceImpl.kt → ...e/auth/source/AuthRemoteDataSourceImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../local/source/UserPreferencesDataStore.kt → ...mon/datastore/UserPreferencesDataStore.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...entation/util/FirebaseAnalyticsManager.kt → ...mmon/firebase/FirebaseAnalyticsManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...m/zzang/chongdae/domain/util/DataError.kt → ...zang/chongdae/common/handler/DataError.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
android/app/src/main/java/com/zzang/chongdae/common/handler/Error.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.zzang.chongdae.common.handler | ||
|
||
sealed interface Error |
2 changes: 1 addition & 1 deletion
2
.../com/zzang/chongdae/domain/util/Result.kt → ...m/zzang/chongdae/common/handler/Result.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.zzang.chongdae.domain.util | ||
package com.zzang.chongdae.common.handler | ||
|
||
typealias RootError = Error | ||
|
||
|
31 changes: 0 additions & 31 deletions
31
android/app/src/main/java/com/zzang/chongdae/data/mapper/CommentsMapper.kt
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
android/app/src/main/java/com/zzang/chongdae/data/mapper/MemberMapper.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.