-
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
4주차 과제 #4
base: main
Are you sure you want to change the base?
4주차 과제 #4
Conversation
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.
어우 빌드 로직 모듈 만드느라 고생하셨습니다
고양이 불러오기 치명적이네요 ㅎㄷㄷ
implementation(libs.hilt.navigation.compose) | ||
implementation(libs.androidx.navigation.compose) | ||
testImplementation(libs.junit4) | ||
testImplementation(libs.orbit.test) | ||
androidTestImplementation(libs.androidx.test.ext) | ||
androidTestImplementation(libs.androidx.test.espresso) |
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.fillMaxSize() | ||
) { | ||
Text( | ||
text = "고양이 보실?", |
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() | ||
) | ||
Spacer(modifier = Modifier.height(10.dp)) | ||
LazyVerticalStaggeredGrid( |
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/java/com/koreatech/kwanhee_jo_compose_study/view/navi/serach/SearchViewModel.kt
Show resolved
Hide resolved
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.
이사람 뭐죠?
잠시사이에 실력 뭐야;;
val state by homeViewModel.loginData.collectAsState() | ||
val loginData = it.savedStateHandle.get<LoginData>("loginData") | ||
if (loginData != null) { | ||
homeViewModel.updateUserData(loginData) |
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.
여기선 composableActivityViewModel()을 사용하고, 윗부분에선 hiltViewModel을 사용하셨는데 어떤 이유로 차이를 준건가요?
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.
제가 hiltViewModel을 잘 모르는데, 사용되면 lifecycle owner가 composition이 아니라 activity를 따르는건가용..? 그렇다면 제가 공부를 더 해야겠네요..
단순한게 Home Composable에서 composableActivityViewModel 을 사용한 이유는 bottom navi로 이동 되어도 데이터를 보존하기 위함 하나입니다!
이슈
시연 영상
Android.Emulator.-.Pixel_4_API_34_5554.2024-04-15.21-19-32.mp4
알립니다!
그 전 섭팟장님해주신 api 사용하려고 하니깐 안되어서 로그인 쪽 api는 적용하지 못했습니다!_! 그래서 따로 open api 사용해서 고양이들 불러와봤습니다!
추가적으로 버전 카탈로그 적용해보면서 build-logic으로 플러그인 클래스를 만들어봤씁니다!