-
Notifications
You must be signed in to change notification settings - Fork 2
[Feat/#144] Google 로그인 연동 #149
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
Conversation
sonms
left a comment
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.
너무너무 고생하셨습니다~ 바쁘신데 너무 고마워요 사랑해요 우리형
app/src/main/AndroidManifest.xml
Outdated
| xmlns:tools="http://schemas.android.com/tools"> | ||
|
|
||
| <uses-permission android:name="android.permission.INTERNET"/> | ||
| <uses-permission android:name="android.permission.GET_ACCOUNTS"/> |
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.
이거 추가한 이유있을까요? 구글 로그인 만이면 굳이 핸드폰 자체의 계정까지 가져오지 않아도 되고 GoogleSignInClient으로 대체된 것으로 알아요
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.
앗 초기에 구글 로그인 연동 때, 오류 나서 이것 저것 시도했던 흔적이.. 남아 있네요. Client id 문제였던걸로 해결됐으니, 삭제하겠습니다!
| suspendRunCatching { | ||
| val googleIdOption = GetGoogleIdOption.Builder() | ||
| .setFilterByAuthorizedAccounts(false) | ||
| .setAutoSelectEnabled(false) |
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.
혹시 요거는 왜 지우셨을까요? 이유가 있을까요?
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.
이것도 위와 같은 이유인데, 등록된 계정만 가능할 수 있게? 해준다해서 세팅하다가.. 다시 돌려놓겠습니다
| onEmailChanged = viewModel::onEmailChanged, | ||
| onPasswordChanged = viewModel::onPasswordChanged, | ||
| onClickIcon = viewModel::onPasswordVisibilityChanged, | ||
| onClick = {}, |
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.
안쓰시는거 같은데 지워도 될 거 같습니다!
| .padding(top = 80.dp) | ||
| .padding(horizontal = 16.dp) | ||
| .imePadding() | ||
| modifier = modifier |
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.
최상위 트리가 아닌거 같은데 Modifier로 수정해주세요~
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.
아 아직도 이런 실수를 하냐
| Image( | ||
| painter = painterResource(R.drawable.img_login_sub), | ||
| contentDescription = stringResource(R.string.ic_login_sub_image), | ||
| ) |
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.
이거 figma보다 너무 작은 거 같은데 크기 확인또는 onGloballyPositioned 를 통해 위치를 조정하거나 크기를 좀더 키워봅시다~~! 안되면 디자인팀 쪼기 ㄱㄱ
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.
넵 디자인 확정되면 일괄적으로 수정하겠습니답
| logo = R.drawable.ic_login_kakao, | ||
| loginText = stringResource(R.string.ic_login_kakao), | ||
| onClick = onClick, | ||
| modifier = modifier |
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.
여기도~
| }, | ||
| ) | ||
| } | ||
| modifier = modifier |
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.
여기도 노리신건가요?
| modifier = Modifier | ||
| .fillMaxWidth() | ||
| .padding(horizontal = 16.dp, vertical = 24.dp) | ||
| .navigationBarsPadding() | ||
| .padding(bottom = 60.dp) | ||
| ) { | ||
| /* PawkeyButton( | ||
| text = "신규 계정으로 회원가입", | ||
| onClick = navigateUp, | ||
| enabled = true, | ||
| isBackGround = true, | ||
| isBorder = false, | ||
| modifier = Modifier.fillMaxWidth() | ||
| )*/ | ||
|
|
||
| Spacer(modifier = Modifier.height(12.dp)) | ||
|
|
||
| PawkeyButton( | ||
| text = "로그인", | ||
| onClick = navigateNext, | ||
| enabled = isLoginFormValid, | ||
| modifier = Modifier.fillMaxWidth() | ||
| ) | ||
| } | ||
| .size(370.dp) | ||
| .align(Alignment.CenterEnd) | ||
| .offset(x = 70.dp), | ||
| ) |
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.
contentScale = ContentScale.Crop,
//또는
BoxWithConstraints(modifier = Modifier.fillMaxSize()) {
val imageSize = maxWidth * 0.5f // 부모 가로의 50% 크기로 설정
Image(
painter = painterResource(R.drawable.img_login_main),
contentDescription = null,
modifier = Modifier
.size(imageSize)
.align(Alignment.CenterEnd)
)
}이런식으로 해서 size와 offset을 피해봅시다ㅏ
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.
넵!
| fun onEmailChanged(email: String) { | ||
| _state.value = _state.value.copy(email = email) | ||
| } | ||
|
|
||
| fun onPasswordChanged(password: String) { | ||
| _state.value = _state.value.copy( | ||
| password = password | ||
| ) | ||
| _state.value = _state.value.copy(password = password) |
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.
_state.update 사용을 지향합시다 ~
| contentScale = ContentScale.FillBounds | ||
| modifier = Modifier | ||
| .align(alignment = Alignment.Center) | ||
| .size(360.dp), |
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.
이것도 size를 피해보아요 정안되면 쓰고....
ISSUE
❗ WORK DESCRIPTIONAdd commentMore actions
📸 SCREENSHOT
-.Clipchamp.5.mp4