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

Week7 #12

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from
Open

Week7 #12

wants to merge 20 commits into from

Conversation

tunaunnie
Copy link
Contributor

Related issue ๐Ÿ› 

Work Description โœ๏ธ

  • MVI ํŒจํ„ด ์ ์šฉ

Screenshot ๐Ÿ“ธ

์ง€๋‚œ ์ฃผ์ฐจ์™€ ๋™์ผํ•จ

Uncompleted Tasks ๐Ÿ˜…

  • ์ง€๋‚œ ์ฃผ์ฐจ ์ฝ”๋“œ๋ฆฌ๋ทฐ ์ ์šฉ

To Reviewers ๐Ÿ“ข

  • ์•„์ง ์ง€๋‚œ ์ฃผ ์ฝ”๋ฆฌ๋ฅผ ๋‹ค ํ•ด๊ฒฐํ•˜์ง€ ๋ชปํ•ด์„œ ๋จธ์ง€๊ฐ€ ์•ˆ๋œ์ƒํƒœ๋ผ ์ด๋ฒˆ ์ฃผ์—๋„ files changed ๋ณด๊ธฐ๊ฐ€ ์–ด๋ ค์šฐ์‹ค ๊ฒƒ ๊ฐ™์•„์š”.. ์ด๋ฒˆ ์ฃผ์ฐจ์— ์ž‘์—…ํ•œ ์ฃผ์š” ํŒŒ์ผ์€ ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹ค
  • presentation ๋ ˆ์ด์–ด ํ•˜์˜ homeScreen/HomeContract, HomeScreen, HomeViewModel, loginScreen/LoginContract, LoginScreen, LoginViewModel, mypageScreen/MypageContract, MypageScreen, MypageViewModel, signupScreen/SignUpContract, SignUpScreen, SignUpViewModel
  • util/base ํŒจํ‚ค์ง€ ์•ˆ์˜ BaseViewModel, UiEvent, UiSideEffect, UiState
  • domain/usecase ํŒจํ‚ค์ง€ ์•ˆ์˜ ValidateUserInputUseCase
  • MainActivity์˜ Navhost ๊ด€๋ จ ๋กœ์ง

์ž…๋‹ˆ๋‹ค! ๋Š˜ ์„ฑ์‹ฌ์„ฑ์˜๊ป ๋ฆฌ๋ทฐ ๋‹ฌ์•„์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹น

@tunaunnie tunaunnie requested review from t1nm1ksun, angryPodo, jihyunniiii and chattymin and removed request for t1nm1ksun December 17, 2024 13:31
Copy link

@chattymin chattymin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์„ธ๋ฏธ๋‚˜ ๋‹ฌ๋ ค์˜ค์‹œ๋Š๋ผ ๊ณ ์ƒ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค!!
์ง€์›๋‹˜์ด ์—ด์‹ฌํžˆ ๊ณผ์ œํ•ด์ฃผ์…”์„œ ๋•๋ถ„์— ์ €๋„ ์žฌ๋ฏธ์žˆ๊ฒŒ ์ฝ”๋“œ๋ฆฌ๋ทฐ ํ–ˆ์Šต๋‹ˆ๋‹ค.

์•ฑ์žผ ํ™”์ดํŒ…์ž…๋‹ˆ๋‹ค ๐Ÿš€


import org.sopt.and.data.dataremote.model.response.ResponseGetUserHobbyDto
import org.sopt.and.domain.repository.UserRepository
import retrofit2.Response

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

domain์—์„œ๋Š” kotlin/java๋ฅผ ์ œ์™ธํ•œ ์˜์กด์„ฑ์ด ์žˆ์œผ๋ฉด ์•ˆ๋ผ์š”. ํ˜„์žฌ๋Š” retrofit๊ณผ data ๋ ˆ์ด์–ด์˜ ์ •๋ณด๊ฐ€ ๋“ค์–ด์žˆ๋„ค์š”

domain์˜ ์กด์žฌ ์˜์˜์— ๋Œ€ํ•ด์„œ ์ƒ๊ฐํ•ด๋ณด์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ์ž„ํฌํŠธ๋ฌธ์ž„์„ ํ™•์ธํ•˜์—ฌ ์ œ๊ฑฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ผผ๊ผผํ•œ ํ™•์ธ๊ณผ ์กฐ์–ธ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

Comment on lines +9 to +19
@Singleton
class ValidateUserInputUseCase @Inject constructor() {
fun stringInputValidCheck(userInput: String) : Boolean {
return userInput.length <= 7
}

fun passwordValidCheck(password: String) : Boolean {
val pattern = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[!@#\$%^&*]).{8,20}$".toRegex()
return password.matches(pattern)
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. ๊ธธ์ด๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” 7๊ณผ ๊ฐ™์€ ๊ฐ’์€ ์ƒ์ˆ˜๋กœ ๋นผ๋‘๋Š”๊ฒŒ ๊ฐ€๋…์„ฑ ์ธก๋ฉด์—์„œ ์ข‹์•„์š”. ์ถ”ํ›„ ์ด ์ฝ”๋“œ๋ฅผ ๋‹ค๋ฅธ ์‚ฌ๋žŒ์ด ๋ณธ๋‹ค๋ฉด 7์ด๋ผ๋Š” ์ˆซ์ž๊ฐ€ ์–ด๋–ค ์˜๋ฏธ์ธ์ง€ ์ƒ๊ฐํ•˜๊ธฐ ํž˜๋“ค ์ˆ˜ ์žˆ์–ด์š”.
  2. ํ•ด๋‹น useCase์—์„œ 2๊ฐœ์˜ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๊ณ , operator fun invoke์˜ ํ˜•์‹์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š์€ ์ด์œ ๊ฐ€ ์žˆ๋‚˜์š”?? ์ด๋ ‡๊ฒŒ ์ž‘์„ฑํ•œ ์ด์œ ๋ฅผ ํ•œ๋ฒˆ ์ƒ๊ฐํ•ด๋ณด์‹  ํ›„ ๋ธ”๋กœ๊ทธ๊ธ€ ํ•œ๋ฒˆ ์ฝ์–ด๋ณด์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š” :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋•๋ถ„์— operator fun invoke๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๊ฐ์ฒด๋ฅผ ํ•จ์ˆ˜์ฒ˜๋Ÿผ, ์ด๋ฆ„ ์—†์ด ๋ฐ”๋กœ ํ˜ธ์ถœํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ์‚ฌ์‹ค์„ ์ œ๋Œ€๋กœ ์•Œ์•„๊ฐ‘๋‹ˆ๋‹ค!
๊ณ ๋ฏผํ•ด๋ดค๋Š”๋ฐ UserInput์„ ๊ฒ€์ฆํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ 1)์œ ์ € ์ด๋ฆ„ 2)์œ ์ € ๋น„๋ฐ€๋ฒˆํ˜ธ ๋กœ ๋‘ ๊ฐ€์ง€๋ผ, invoke๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ์˜คํžˆ๋ ค ์–ด๋Š ๊ฒฝ์šฐ์— ๋Œ€ํ•œ ํ•จ์ˆ˜ ์ฒ˜๋ฆฌ์ธ์ง€ ํ—ท๊ฐˆ๋ฆด ๊ฒƒ ๊ฐ™์•„ ์ด๋ ‡๊ฒŒ 2๊ฐœ์˜ ํ•จ์ˆ˜๋ช…์„ ๊ทธ๋Œ€๋กœ ์‚ฌ์šฉํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ๋Œ€์‹  ๋•๋ถ„์— ์•ž์œผ๋กœ๋Š” PostSignUpUseCase๋“ฑ ํ•˜๋‚˜์˜ ํ•จ์ˆ˜๋งŒ ํฌํ•จ๋œ usecase์—์„œ invoke๋ฅผ ์ œ๋Œ€๋กœ ์ดํ•ดํ•˜๊ณ  ์ ์ ˆํžˆ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

class HomeContract {

data class HomeUiState(
val pagerImages: List<Int> = listOf(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List๋Š” ๋ถˆ๋ณ€ ๊ฐ์ฒด๊ฐ€ ์•„๋‹Œ ์ฝ๊ธฐ์ „์šฉ ๊ฐ์ฒด์ž…๋‹ˆ๋‹ค. ๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— ๋ฆฌ์ปดํฌ์ง€์…˜์˜ ๋Œ€์ƒ์ด ๋ผ์š”.

๋ถˆํ•„์š”ํ•œ ๋ฆฌ์ปดํฌ์ง€์…˜์„ ์ค„์ด๊ณ  ์„ฑ๋Šฅ์„ ๋”์šฑ ๋†’์ด๊ณ  ์‹ถ๋‹ค๋ฉด @stable, @immutable๊ณผ ๊ฐ™์€ ์–ด๋…ธํ…Œ์ด์…˜ ํ˜น์€ ImmutableList ๋“ฑ์„ ์‚ฌ์šฉํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”

Comment on lines 96 to 104
HomeLazyRow(
title = "๋ฏฟ๊ณ  ๋ณด๋Š” ์›จ์ด๋ธŒ ์—๋””ํ„ฐ ์ถ”์ฒœ์ž‘",
images = images,
images = uiState.pagerImages,
height = 230,
width = 140,
onItemClick = { index ->
homeViewModel.setEvent(HomeContract.HomeEvent.OnImageClicked(index))
}
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

key๋ผ๋Š” ๊ฒƒ์— ๋Œ€ํ•ด์„œ ์•Œ๊ณ ์žˆ์œผ์‹ ๊ฐ€์š”??
key๋ฅผ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜๋ฉด ๋ถˆํ•„์š”ํ•œ ๋ฆฌ์ปดํฌ์ง€์…˜์„ ์ค„์ผ ์ˆ˜ ์žˆ์–ด์š”. ํ•œ๋ฒˆ ์ฐพ์•„๋ณด์‹œ๊ณ  ์ ์šฉํ•ด๋ณด์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ฐ ํ•ญ๋ชฉ์˜ ๊ฐ’์„ ๊ณ ์œ ํ•˜๊ฒŒ ์‹๋ณ„ํ•˜๋Š” key๋ฅผ LazyRow์— ์ถ”๊ฐ€ํ•˜๊ธฐ๋งŒ ํ•ด๋„ ๋ถˆํ•„์š”ํ•œ ๋ฆฌ์ปดํฌ์ง€์…˜์„ ์ค„์ผ ์ˆ˜ ์žˆ๊ตฐ์š”..! ์ข‹์€ ์ง€์‹ ์•Œ์•„๊ฐ‘๋‹ˆ๋‹ค!

horizontalAlignment = Alignment.CenterHorizontally
) {
Image(
painter = painterResource(id = R.drawable.wavve_logo),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

painter๋‚ด๋ถ€ ์ฝ”๋“œ๋ฅผ ๋ณด๋ฉด UnStableํ•˜๋‹ค๊ณ  ๋‚˜์™€์žˆ์–ด์š”. ๋ฐ˜๋ฉด imageVector๋ฅผ ๋ณธ๋‹ค๋ฉด Stableํ•˜๋‹ค๊ณ  ๋˜์–ด์žˆ์–ด์š”.
๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— R์— ์žˆ๋Š” ํŒŒ์ผ์„ ์‚ฌ์šฉํ•˜์‹ ๋‹ค๋ฉด imageVector๋กœ ์‚ฌ์šฉํ•˜์‹œ๋Š” ๊ฒƒ์ด ๋ฆฌ์ปดํฌ์ง€์…˜์„ ์ค„์ด๊ณ  ์„ฑ๋Šฅ์„ ๋†’์ผ ์ˆ˜ ์žˆ์–ด์š”.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋น„์Šทํ•œ ๊ธฐ๋Šฅ์ฒ˜๋Ÿผ ๋ณด์—ฌ๋„ painterResource์™€ imageVector๋ฅผ ๋‹ค๋ฅด๊ฒŒ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๊ตฐ์š”! ๋””ํ…Œ์ผํ•œ ๋‚ด์šฉ๊นŒ์ง€ ์ œ์•ˆํ•ด ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

Comment on lines +21 to +26
is LoginContract.LoginEvent.OnUserNameChanged -> {
setState { copy(userName = event.userName, isUserNameValid = event.userName.length <= 7) }
}
is LoginContract.LoginEvent.OnPasswordChanged -> {
setState { copy(password = event.password, isPasswordValid = event.password.length <= 8) }
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. ์—ฌ๊ธฐ์„œ๋„ ๊ธธ์ด์— ํ•ด๋‹นํ•˜๋Š” ๋ถ€๋ถ„์€ ์ƒ์ˆ˜๋กœ ๋นผ์„œ ๊ด€๋ฆฌํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”.
  2. ์—ฌ๊ธฐ์„œ๋„ ๊ธธ์ด์— ๋Œ€ํ•œ ๊ฒ€์ฆ์„ ์ง„ํ–‰ํ•˜๊ณ , ์œ„์—์žˆ๋Š” useCase์—์„œ๋„ ๊ธธ์ด์— ๋Œ€ํ•œ ๊ฒ€์ฆ์„ ์ˆ˜ํ–‰ํ•˜๊ณ  ์žˆ๋Š” ๊ฒƒ ๊ฐ™์•„์š”. ๋งŒ์•ฝ ๊ธธ์ด๊ฐ€ 7์—์„œ 9๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ๋‹ค๋ฉด 2๊ฐœ์˜ ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•ด์•ผํ•  ๊ฒƒ ๊ฐ™๋„ค์š”. ์–ด๋–ป๊ฒŒ ํ•˜๋ฉด ์ข‹์„๊นŒ์š”?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ํšŒ์›๊ฐ€์ž… ์‹œ๋‚˜ ๋กœ๊ทธ์ธ ์‹œ๋‚˜ ์‚ฌ์šฉ์ž๊ฐ€ ์ž…๋ ฅํ•œ username/password์— ๋Œ€ํ•œ ๊ธธ์ด ์ œํ•œ ์กฐ๊ฑด์€ ๋˜‘๊ฐ™์•„์„œ, ๋™์ผํ•œ usecase๋ฅผ ๋ถˆ๋Ÿฌ์™€์„œ ๊ฐ™์€ ํ•จ์ˆ˜๋กœ isValid ๋ฅผ ์ฒ˜๋ฆฌํ•œ ํ›„ setState ํ•ด์ฃผ๋Š” ๋ฐฉ์‹์œผ๋กœ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค!

์ด์ „์—๋Š” ViewModel์—์„œ ๋ฐ”๋กœ Contract์˜ setEvent๋ฅผ ๋ถˆ๋Ÿฌ์™€ ์ƒํƒœ๋ฅผ ๋ฐ”๊ฟ”์ฃผ๋Š” ๋ฐฉ๋ฒ•๊ณผ, Usecase๋ฅผ ํ™œ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ• ๋‘ ๊ฐœ๊ฐ€ ์–ด๋–จ ๋•Œ ๋‹ค๋ฅด๊ฒŒ ํ™œ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๊ฑด์ง€ ๋ถ„๊ฐ„์ด ์ž˜ ์•ˆ ๊ฐ”๋Š”๋ฐ ์กฐ๊ธˆ ๊ณ ๋ฏผํ•ด๋ณด๋‹ˆ UI์— ๋„์šฐ๋Š” ์ƒํƒœ (ํ™”๋ฉด์— ์˜ฌ๋ผ๊ฐ€๋Š” ๋ฐ์ดํ„ฐ ๊ฐ’๋“ค)์„ ๊ฐ„๋‹จํ•˜๊ฒŒ ๋ฐ”๊พธ๋Š” ์ž‘์—…์ธ์ง€ vs ํ˜น์€ ์กฐ๊ธˆ ๋” ๋ณต์žกํ•œ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง์ธ์ง€ ๋ฅผ ๊ณ ๋ฏผํ•˜๋ฉด ๊ตฌ๋ถ„์ด ์กฐ๊ธˆ ๋” ์ˆ˜์›”ํ•œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค! ์ข‹์€ ์กฐ์–ธ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค :)

Comment on lines +55 to +56
} catch (e: Exception) {
sendSideEffect(LoginContract.LoginSideEffect.ShowSnackbar("๋กœ๊ทธ์ธ ์š”์ฒญ ์ค‘ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค."))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tryCatch๋„ ์ •๋ง ์ข‹์€ ๋ฐฉ๋ฒ•์ด์ฃ !
ํ•˜์ง€๋งŒ ํ•ด๋‹น ๋ฐฉ๋ฒ•์„ ์‚ฌ์šฉํ•  ๋•Œ์—๋Š” catch๋ฅผ ํ•˜๋Š” Exception์— ๋Œ€ํ•ด์„œ ๋ช…์‹œ์ ์œผ๋กœ ํ‘œ์‹œํ•ด์ค˜์•ผ ํ•ฉ๋‹ˆ๋‹ค.

๋‹ค๋ฅธ ์‚ฌ๋žŒ์ด ์ด ์ฝ”๋“œ๋ฅผ ๋ณด์•˜์„ ๋•Œ์— ์–ด๋–ค ์ด์œ ๋กœ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•  ๊ฐ€๋Šฅ์„ฑ์ด ์žˆ๋Š”์ง€ ์•Œ์ง€ ๋ชปํ•˜๊ณ , ๊ฐ๊ฐ ์ƒํ™ฉ์— ๋งž๋Š” ๋Œ€์ฒ˜๋ฅผ ํ•ด์•ผํ•  ์ˆ˜ ๋„ ์žˆ์œผ๋‹ˆ๊นŒ์š”.
catch๋ฅผ ์—ฌ๋Ÿฌ๊ฐœ ์‚ฌ์šฉํ•˜๋”๋ผ๋„ Exception์„ ๊ฐ๊ฐ ๋‚˜ํƒ€๋‚ด์ฃผ๋Š”๊ฒŒ ๋” ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค

Comment on lines +43 to +45
"profile" -> {
navController.navigate(Route.MypageScreen(userName = "")) /*username์„ ์—ฌ๊ธฐ๋‹ค ์–ด๋–ป๊ฒŒ ๋„ฃ์–ด์ฃผ์ง€?*/
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์Œ ๊ตณ์ด ๋„˜๊ฒจ์ค„ ํ•„์š”๊ฐ€ ์žˆ์„๊นŒ์š”??

์„œ๋ฒ„ํ†ต์‹ ์„ ํ†ตํ•ด ๋ฐ›์•„์˜ค๊ฑฐ๋‚˜, ๋กœ์ปฌ์— ์ €์žฅํ•ด๋‘์—ˆ๋‹ค๊ฐ€ ๋ถˆ๋Ÿฌ์˜ค๋Š” ๋ฐฉ๋ฒ•์ด ๋”์šฑ ์ ํ•ฉํ•ด๋ณด์ด๋„ค์š”.
๋ฐ”ํ…€๋„ค๋น„๋ฅผ ํ†ตํ•ด ์›€์ง์ด๋Š” ํŠน์„ฑ์ƒ home์—์„œ profile๋กœ, search์—์„œ profile๋กœ ์ด๋™ํ•˜๋Š” ๋‘๊ฐ€์ง€ ๊ฒฝ์šฐ ๋ชจ๋‘ ์žˆ์–ด์š”.
๊ทธ๋ ‡๊ธฐ ๋•Œ๋ฌธ์— ์ด์ „ํ™”๋ฉด์—์„œ profie๋กœ ์ด๋™ํ•˜๋ผ ๋•Œ ์‚ฌ์šฉ์ž ์ด๋ฆ„์„ ๋ฐ›์•„์˜ค๋Š”๊ฑด ์กฐ๊ธˆ ์œ„ํ—˜ํ•œ ๋ฐฉ๋ฒ•์ด ๋  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์•„์š”

@@ -52,7 +52,7 @@ fun MyPageProfileSection(
)
Spacer(modifier = Modifier.width(10.dp))
Text(
"${deliveredEmail}๋‹˜",
"${deliveredUserHobby}๋ฅผ ์ฆ๊ธฐ๋Š”\n${deliveredUserName}๋‹˜",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ •๋ง ์‚ฌ์†Œํ•˜๊ธด ํ•˜์ง€๋งŒ deliverdUserHobby๊ฐ€ null์ด๋ผ๋ฉด "null๋ฅผ ์ฆ๊ธฐ๋Š” ~" ์ด๋ ‡๊ฒŒ ๋ ๊ฑฐ์—์š”.
์ด๋Ÿฐ ์ƒํ™ฉ๋„ ๊ณ ๋ คํ•ด์„œ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜์‹ ๋‹ค๋ฉด ๋”์šฑ ์‚ฌ์šฉ์ž ์นœํ™”์ ์ธ ๊ฐœ๋ฐœ์ž๊ฐ€ ๋  ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์•„์š” :)

Copy link
Contributor

@jihyunniiii jihyunniiii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค

Comment on lines +88 to 90
hilt {
enableAggregatingTask = false
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ๋ถ€๋ถ„์„ ์™œ ์ถ”๊ฐ€ํ•ด์•ผ ํ•˜๋Š”์ง€, ์–ด๋–ป๊ฒŒ ํ•˜๋ฉด ์ œ๊ฑฐํ•  ์ˆ˜ ์žˆ์„์ง€ ์ฐพ์•„๋ณด์‹œ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”


object ApiFactory {
// private const val BASE_URL: String = BuildConfig.BASE_URL
private const val BASE_URL: String = "http://223.130.135.50:8085"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BASE_URL ์ˆจ๊ฒจ์ฃผ์„ธ์š”

Comment on lines +42 to +46
val request = chain.request().newBuilder()
.addHeader("Accept", "*/*")
.build()
chain.proceed(request)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์™œ ์ด๋Ÿฐ Interceptor๋ฅผ ์ถ”๊ฐ€ํ•˜์…จ๋‚˜์š”?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

week7
3 participants