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

4주차 과제 #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

4주차 과제 #4

wants to merge 3 commits into from

Conversation

Jokwanhee
Copy link
Collaborator

이슈

  • 고양이 불러오기 Open API 사용
  • LazyVerticalStaggeredGrid API 사용
  • Version catalog 적용
  • build-logic 적용
  • 모듈화

시연 영상

Android.Emulator.-.Pixel_4_API_34_5554.2024-04-15.21-19-32.mp4

알립니다!

그 전 섭팟장님해주신 api 사용하려고 하니깐 안되어서 로그인 쪽 api는 적용하지 못했습니다!_! 그래서 따로 open api 사용해서 고양이들 불러와봤습니다!

추가적으로 버전 카탈로그 적용해보면서 build-logic으로 플러그인 클래스를 만들어봤씁니다!

Copy link

@taeheeL taeheeL 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 +35 to +41
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)
Copy link

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 = "고양이 보실?",
Copy link

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(
Copy link

Choose a reason for hiding this comment

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

워우 신기하네용

Copy link
Member

@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.

이사람 뭐죠?
잠시사이에 실력 뭐야;;

Comment on lines +27 to +30
val state by homeViewModel.loginData.collectAsState()
val loginData = it.savedStateHandle.get<LoginData>("loginData")
if (loginData != null) {
homeViewModel.updateUserData(loginData)
Copy link
Member

Choose a reason for hiding this comment

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

여기선 composableActivityViewModel()을 사용하고, 윗부분에선 hiltViewModel을 사용하셨는데 어떤 이유로 차이를 준건가요?

Copy link
Collaborator Author

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로 이동 되어도 데이터를 보존하기 위함 하나입니다!

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.

3 participants