generated from NOW-SOPT-ANDROID/now-sopt-android-template
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/#19 week_compose7 필수과제 구현 #20
Open
boiledEgg-s
wants to merge
6
commits into
develop-compose
Choose a base branch
from
feat/week-compose7
base: develop-compose
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fb985fd
CHORE/#19: 저장소 관련 파일추가, 코드수정, 패키지구조변경
boiledEgg-s 812a7db
MOD/#19: 사용자저장소 관련 코드 수정
boiledEgg-s f36823d
ADD/#19: collectAsStateWithLifecyle 마이그레이션
boiledEgg-s 8d3d47f
REFACTOR/#19: week4 리뷰기반 코드 수정
boiledEgg-s 5cda495
REFACTOR/#19: import 정리
boiledEgg-s 3066e97
CHORE/#19: lifecycleowner 추가
boiledEgg-s File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 2 additions & 4 deletions
6
app/src/androidTest/java/com/sopt/now/compose/ExampleInstrumentedTest.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
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
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/sopt/now/compose/container/AppContainer.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,13 @@ | ||
package com.sopt.now.compose.container | ||
|
||
import com.sopt.now.compose.container.impl.AuthRepositoryImpl | ||
import com.sopt.now.compose.container.impl.FollowerRepositoryImpl | ||
import com.sopt.now.compose.container.impl.MemberRepositoryImpl | ||
import com.sopt.now.compose.container.impl.UserRepositoryImpl | ||
|
||
interface AppContainer{ | ||
val userRepository: UserRepositoryImpl | ||
val followRepository: FollowerRepositoryImpl | ||
val memberRepository: MemberRepositoryImpl | ||
val authRepository: AuthRepositoryImpl | ||
} |
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
13 changes: 3 additions & 10 deletions
13
...t/now/compose/container/AuthRepository.kt → ...pose/container/impl/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
10 changes: 3 additions & 7 deletions
10
...w/compose/container/FollowerRepository.kt → .../container/impl/FollowerRepositoryImpl.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
14 changes: 3 additions & 11 deletions
14
...now/compose/container/MemberRepository.kt → ...se/container/impl/MemberRepositoryImpl.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
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
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/sopt/now/compose/container/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,13 @@ | ||
package com.sopt.now.compose.container.repository | ||
|
||
import com.sopt.now.compose.network.dto.RequestLoginDto | ||
import com.sopt.now.compose.network.dto.RequestSignUpDto | ||
import com.sopt.now.compose.network.dto.ResponseLoginDto | ||
import com.sopt.now.compose.network.dto.ResponseSignUpDto | ||
import retrofit2.Response | ||
|
||
interface AuthRepository { | ||
suspend fun postLogin(request: RequestLoginDto): Result<Response<ResponseLoginDto>> | ||
suspend fun postSignUp(request: RequestSignUpDto): Result<Response<ResponseSignUpDto>> | ||
} | ||
|
9 changes: 9 additions & 0 deletions
9
app/src/main/java/com/sopt/now/compose/container/repository/FollowerRepository.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,9 @@ | ||
package com.sopt.now.compose.container.repository | ||
|
||
import com.sopt.now.compose.network.dto.ResponseFollowListDto | ||
import retrofit2.Response | ||
|
||
interface FollowerRepository{ | ||
suspend fun getFollowers(page: Int = 2): Result<Response<ResponseFollowListDto>> | ||
} | ||
|
13 changes: 13 additions & 0 deletions
13
app/src/main/java/com/sopt/now/compose/container/repository/MemberRepository.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,13 @@ | ||
package com.sopt.now.compose.container.repository | ||
|
||
import com.sopt.now.compose.models.User | ||
import com.sopt.now.compose.network.dto.RequestChangePasswordDto | ||
import com.sopt.now.compose.network.dto.ResponseChangePasswordDto | ||
import retrofit2.Response | ||
|
||
interface MemberRepository { | ||
suspend fun getUserInfo(): Result<User> | ||
suspend fun patchUserPassword( | ||
request: RequestChangePasswordDto | ||
): Response<ResponseChangePasswordDto> | ||
} |
11 changes: 11 additions & 0 deletions
11
app/src/main/java/com/sopt/now/compose/container/repository/UserRepository.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.sopt.now.compose.container.repository | ||
|
||
import com.sopt.now.compose.models.User | ||
|
||
interface UserRepository { | ||
fun getUserProfile(): User? | ||
fun setUserProfile(user: User) | ||
fun getUserId(): String | ||
fun setUserId(userId: String) | ||
} | ||
|
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
1 change: 0 additions & 1 deletion
1
app/src/main/java/com/sopt/now/compose/network/FollowService.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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 이 부분 발견 못했을 법도 한데 어떻게 발견하셨나요 역시 세심하시네요