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

[ADD/#1] 프로젝트 초기 세팅 #2

Merged
merged 35 commits into from
Jul 1, 2024
Merged

Conversation

leeeyubin
Copy link
Member

@leeeyubin leeeyubin commented Jun 28, 2024

⛳️ Work Description

  • gradle 기초 세팅
  • manifest 기초 세팅
  • naviagtion 세팅
  • 모듈 세팅
  • myApp 추가
  • 확장함수 추가
  • 디렉토리 별 dummy 파일 만들어두기
  • themes 기초 세팅
  • 타이포 세팅
  • 색상 세팅

📸 Screenshot

Screen_Recording_20240629_053015_Terning-Android.mp4

📢 To Reviewers

  • 초기 세팅 완료했습니다!!
  • 서버통신 잘 되는 지도 확인했어요!! 예시로 만들어둔 파일 보면서 state, sideEffect, UiState 등등 다루는 법도 같이 보면 좋을 것 같아요!
  • 네비게이션 기초 작업도 완료했습니당 이거 토대로 바텀 바가 보이는 부분과 안 보이는 부분 나눠서 작업하면 될 것 같아요!!
  • 아래는 파일 별 설명입니당

앱이 처음 진입할 때 쓰이는 로직: feature > main 파일
바텀 바의 왼쪽 화면: feature > first 파일
바텀 바의 오른쪽 서버통신 화면: feature > mock 파일

@leeeyubin leeeyubin added ADD ➕ 부수적인 코드 추가 및 라이브러리 추가, 새로운 파일 생성 유빈💙 유빈 labels Jun 28, 2024
@leeeyubin leeeyubin self-assigned this Jun 28, 2024
Copy link
Member

@boiledEgg-s boiledEgg-s left a comment

Choose a reason for hiding this comment

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

초기 세팅 너무 탄탄하게 잘 하셨네요,, 제 눈엔 완벽합니다😮
너무 고생 많으셨어요~👏 👏 👏 👏 👏 👏
우리 리드 최고!!

alias(libs.plugins.kotlin.android)
alias(libs.plugins.hilt)
id("kotlin-parcelize")
id("kotlin-kapt")
Copy link
Member

Choose a reason for hiding this comment

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

이 부분은 ksp로 바꾸는 걸 고려해봐도 될 것 같아요!
ksp가 코틀린 기반이라 컴파일 시 더 효율적이라고 하네요

누군가가 명석하게 정리해놓은 노션

Copy link
Member Author

Choose a reason for hiding this comment

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

예리한 석준씨,, 바꾸겠다 생각만 해놓고 까먹었네요🥲 수정했습니당!!

Copy link
Contributor

Choose a reason for hiding this comment

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

꼼꼼하다,,,,!!! 링크이름너무웃겨요

Comment on lines +44 to +51
fun toMockEntity(): List<MockResponseModel> = data.map {
MockResponseModel(
avatar = it.avatar,
email = it.email,
firstName = it.first_name,
lastName = it.last_name
)
}
Copy link
Member

Choose a reason for hiding this comment

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

한 수 배워갑니다!

Comment on lines +26 to +34
Scaffold(
bottomBar = {
MainBottomBar(
isVisible = navigator.showBottomBar(),
tabs = MainTab.entries.toList(),
currentTab = navigator.currentTab,
onTabSelected = navigator::navigate
)
},
Copy link
Member

Choose a reason for hiding this comment

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

지금 세팅이 이 컴포저블에서만 바텀바를 관리하는거죠??
화면마다 바텀바에에 포함된 컴포저블의 route와 비교해서 있으면 바텀바를 보여주고 없으면 보여주지 않는 로직이 맞나요?

Copy link
Member Author

Choose a reason for hiding this comment

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

맞습니다! 바텀바가 있어야 하는 화면은 MainTabRoute로, 바텀바가 없어야 하는 화면은 Route로 관리해주면 될 것 같아요!

Copy link
Contributor

Choose a reason for hiding this comment

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

깔끔 ㅠㅠ확인했습니당!

Copy link
Contributor

@arinming arinming 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 +26 to +34
Scaffold(
bottomBar = {
MainBottomBar(
isVisible = navigator.showBottomBar(),
tabs = MainTab.entries.toList(),
currentTab = navigator.currentTab,
onTabSelected = navigator::navigate
)
},
Copy link
Contributor

Choose a reason for hiding this comment

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

깔끔 ㅠㅠ확인했습니당!

Comment on lines +25 to +27
include(":domain")
include(":core")
Copy link
Contributor

Choose a reason for hiding this comment

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

멀티모듈 진짜 수고해써요.... ㅜ ㅜ

Comment on lines +11 to +20
@SerialName("per_page")
val per_page: Int,
@SerialName("total")
val total: Int,
@SerialName("total_pages")
val total_pages: Int,
@SerialName("data")
val data: List<MockData>,
@SerialName("support")
val support: Support,
Copy link
Contributor

Choose a reason for hiding this comment

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

변수명 네이밍에서 카멜케이스가 아닌 스네이크케이스를 따른 이유가 있나욤?

Copy link
Member Author

Choose a reason for hiding this comment

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

오호 이 부분은 제가 초기 세팅에 집중하느라 놓쳤네요ㅜㅜ! 카멜케이스로 뒀어야 합니다!
dummy 파일이기 때문에 추후에 지울 예정입니다!!

@leeeyubin leeeyubin merged commit 3745e87 into develop Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADD ➕ 부수적인 코드 추가 및 라이브러리 추가, 새로운 파일 생성 유빈💙 유빈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ADD] 프로젝트 초기 세팅
3 participants