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

[Feature/#1] : Project Initial Setting #2

Merged
merged 9 commits into from
Nov 15, 2024

Conversation

gaeulzzang
Copy link
Contributor

โœ… ๐—–๐—ต๐—ฒ๐—ฐ๐—ธ-๐—Ÿ๐—ถ๐˜€๐˜

  • mergeํ•  ๋ธŒ๋žœ์น˜์˜ ์œ„์น˜๋ฅผ ํ™•์ธํ•ด ์ฃผ์„ธ์š”.(mainโŒ/developโญ•)
  • ๋ฆฌ๋ทฐ๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ ๋ฆฌ๋ทฐ์–ด๋ฅผ ์ง€์ •ํ•ด ์ฃผ์„ธ์š”.
  • ๋ฆฌ๋ทฐ๋Š” PR์ด ์˜ฌ๋ผ์˜ค๋ฉด ์ตœ๋Œ€ํ•œ ๋น ๋ฅด๊ฒŒ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.
  • P1 ๋‹จ๊ณ„์˜ ๋ฆฌ๋ทฐ๋Š” ๋น ๋ฅด๊ฒŒ ํ™•์ธ ํ›„ ๋ฐ˜์˜ํ•ฉ๋‹ˆ๋‹ค.
  • Approve๋œ PR์€ assigner๊ฐ€ ๋จธ์ง€ํ•˜๊ณ , ์ˆ˜์ • ์š”์ฒญ์ด ์˜จ ๊ฒฝ์šฐ ์ˆ˜์ • ํ›„ ๋‹ค์‹œ push๋ฅผ ํ•ฉ๋‹ˆ๋‹ค.

๐Ÿ“Œ ๐—œ๐˜€๐˜€๐˜‚๐—ฒ๐˜€

๐Ÿ“Ž ๐—ช๐—ผ๐—ฟ๐—ธ ๐——๐—ฒ๐˜€๐—ฐ๐—ฟ๐—ถ๐—ฝ๐˜๐—ถ๐—ผ๐—ป

  • ๋ฉ€ํ‹ฐ๋ชจ๋“ˆ ์„ธํŒ…
  • ๊ธฐ์ดˆ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ธํŒ…
  • ์˜ˆ์ œ ํŒŒ์ผ ์ถ”๊ฐ€
  • MVI ์„ธํŒ…
  • CI/CD ์„ธํŒ…

๐Ÿ“ท ๐—ฆ๐—ฐ๐—ฟ๐—ฒ๐—ฒ๐—ป๐˜€๐—ต๐—ผ๐˜

Screen_recording_20241004_180012.mp4

๐Ÿ’ฌ ๐—ง๐—ผ ๐—ฅ๐—ฒ๐˜ƒ๐—ถ๐—ฒ๐˜„๐—ฒ๐—ฟ๐˜€

local.properties ํŒŒ์ผ์— base.url="https://reqres.in" ๋„ฃ์–ด์ฃผ์„ธ์š”!

@gaeulzzang gaeulzzang added โš™๏ธ [SETTING] ์„ธํŒ… ๐Ÿ‚ ๊ฐ€์„ ๊ฐ€์‘๊ฐ€ labels Oct 4, 2024
@gaeulzzang gaeulzzang self-assigned this Oct 4, 2024
@gaeulzzang gaeulzzang requested a review from youjin09222 October 4, 2024 14:33
@gaeulzzang gaeulzzang requested a review from a team as a code owner October 4, 2024 14:38
Copy link
Contributor

@twogarlic twogarlic left a comment

Choose a reason for hiding this comment

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

๊ฐ€์„์ด ์นœ๊ตฌ๋“ค ์™•๋งŽ๋„ค ๊ณ ์ƒํ•ด์จ์–ด์–ดใ…“๐Ÿฅณ

Copy link
Contributor

@youjin09222 youjin09222 left a comment

Choose a reason for hiding this comment

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

๋„ˆ๋ฌด ๊ณ ์ƒํ–ˆ์–ดใ…“ใ…“ใ…“

Copy link
Member

@Eonji-sw Eonji-sw left a comment

Choose a reason for hiding this comment

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

์—„๋งˆ ํ”ผ๊ณคํ•ด์š”..

fun provideLoggingInterceptor(): HttpLoggingInterceptor {
val loggingInterceptor = HttpLoggingInterceptor { message ->
when {
message.isJsonObject() -> Timber.d(JSONObject(message).toString(4))
Copy link
Member

Choose a reason for hiding this comment

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

P3 : 4๋Š” ๊ฐ€๋…์„ฑ ๋•Œ๋ฌธ์— ๋„ฃ์€๊ฑฐ์ฃ ?

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 +51 to +52
.padding(top = 18.dp, bottom = 16.dp)
.padding(horizontal = 16.dp),
Copy link
Member

Choose a reason for hiding this comment

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

P2 : ์ถ”ํ›„ GUI ๋ณด๊ณ  ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” padding ๊ฐ’์€ (ex. ํ•˜๋‹จ ๋ฒ„ํŠผ๊ณผ ๋ฐฐ๊ฒฝ ๊ฐ„๊ฒฉ, ๋‹ค์ด์–ผ๋กœ๊ทธ ๋ฒ„ํŠผ ๊ฐ„๊ฒฉ ๋“ฑ...) dimens๋กœ ๋นผ๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™๋„ค์š”!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์˜ค ์ข‹์€ ์ƒ๊ฐ์ด๋„ค์š”!! ๋””์ž์ธ ํ™•์ •๋˜๋ฉด ๊ทธ๋•Œ dimens๋กœ ๋นผ๋ณผ๊ฒŒ์œ 

Copy link
Member

Choose a reason for hiding this comment

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

P3 : ์ œ๋Œ€๋กœ ์ปดํฌ์ฆˆ ๊ธ€๊ผด ์„ค์ •ํ•˜๋Š”๊ฑฐ ๋ณต์žกํ•˜๋˜๋ฐ~ ์ฉ..

Copy link
Contributor Author

@gaeulzzang gaeulzzang Nov 15, 2024

Choose a reason for hiding this comment

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

์ฐพ์•„๋ณด๋‹ˆ๊นŒ ์ง„์งœ ๋ณต์žกํ•˜๋„ค... ํฐํŠธ๋Š” ์–ธ์ง€๊ฐ€ ํ•˜์ž^^

Copy link
Member

Choose a reason for hiding this comment

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

P3 : otf๋กœ ํ•˜์‹  ์ด์œ ๋Š” ๋จผ๊ฐ€์š”~?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ttf๋ž‘ otf ์ฐจ์ด๊ฐ€ 1๋„ ์—†๋‹ค๊ธธ๋ž˜ ๊ทธ๋ƒฅ otf ๋„ฃ์—ˆ์–ด์šค

interface ExampleApiService {
@GET("/$API/$USERS")
suspend fun getUsers(
@Query("page") page: Int
Copy link
Member

@Eonji-sw Eonji-sw Nov 15, 2024

Choose a reason for hiding this comment

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

P2 :

Suggested change
@Query("page") page: Int
import com.sopt.data.service.ApiKeyStorage.PAGE
@Query(PAGE) page: Int

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 +131 to +133
retrofit-core = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" } # Retrofit ๋„คํŠธ์›Œํ‚น ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ
retrofit-kotlin-serialization = { group = "com.jakewharton.retrofit", name = "retrofit2-kotlinx-serialization-converter", version.ref = "retrofit-kotlinx-serialization-json" } # Retrofit Kotlinx Serialization ๋ณ€ํ™˜๊ธฐ
okhttp-logging = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp" } # OkHttp ๋กœ๊น… ์ธํ„ฐ์…‰ํ„ฐ
Copy link
Member

@Eonji-sw Eonji-sw Nov 15, 2024

Choose a reason for hiding this comment

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

P2 : ์ด๋Ÿฐ ์‹์œผ๋กœ ๊ฐ™์ด dependency ์ถ”๊ฐ€ํ•ด์„œ ์‚ฌ์šฉํ•  ๊ฒฝ์šฐ๊ฐ€ ๋งŽ๋‹ค๋ฉด bundle๋กœ ๋ฌถ์–ด์„œ ํ•œ๋ฒˆ์— ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ๋„ ํŽธ๋ฆฌํ•  ๊ฒƒ ๊ฐ™๋„ค์šฉ

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 80 to 82
implementation(libs.retrofit.core)
implementation(libs.retrofit.kotlin.serialization)
implementation(libs.okhttp.logging)
Copy link
Member

Choose a reason for hiding this comment

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

P3 :

Suggested change
implementation(libs.retrofit.core)
implementation(libs.retrofit.kotlin.serialization)
implementation(libs.okhttp.logging)
implementation(libs.bundles.retrofit)

์ด๋Ÿฐ ๋Š๋‚Œ์œผ๋กœ ๋ฐ”๊ฟ€ ์ˆ˜๋„ ์žˆ์„๋“ฏ? ๊ทธ๋ƒฅ ๊ฐ ์ ์ธ ์˜๊ฒฌ~

Copy link
Member

Choose a reason for hiding this comment

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

P3 : ์‘์•  ์—„๋งˆ ์„ค๋ช…ํ•ด์ค˜~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

NavGraphBuilder์— ์บ˜๋ฆฐ๋” ํ™”๋ฉด ๊ฒฝ๋กœ ๋“ฑ๋กํ•˜๊ตฌ, ์บ˜๋ฆฐ๋” ํ™”๋ฉด์œผ๋กœ ์ด๋™ํ•˜๋Š” navigateCalendar ํ•จ์ˆ˜ NavController์— ๋“ฑ๋กํ•˜๋Š” ์ฝ”๋“œ์—์—ฌ

onFailure = {
_state.value =
_state.value.copy(followers = UiState.Failure(it.message.toString()))
_sideEffects.emit(ExampleSideEffect.ShowToast(R.string.server_failure))
Copy link
Member

@Eonji-sw Eonji-sw Nov 15, 2024

Choose a reason for hiding this comment

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

P3 : toast ๋ฉ”์‹œ์ง€ text๋Š” UI ๊ด€๋ จ์ด๋ผ.. viewModel์—์„œ๋Š” UI ์ƒํƒœ์— ๋Œ€ํ•œ ๊ด€๋ฆฌ๋งŒ ํ•ด์ฃผ๊ณ  ์•กํ‹ฐ๋น„ํ‹ฐ์—์„œ ์•Œ๋งž์€ toast ๋ฉ”์‹œ์ง€ ํ˜ธ์ถœ ๋ฐฉ์‹์ด ๋ถ„๋ฆฌ ๋ชฉ์ ์—์„œ ๋งž์ง€ ์•Š๋‚˜๋ผ๋Š” ๊ธ€์„ ๋ณธ ์ ์ด ์žˆ๋Š”๋ฐ ์ปดํฌ์ฆˆ ์ž…์žฅ์—์„œ๋Š” ์–ด๋–ป๊ฒŒ ์ƒ๊ฐํ•˜๋Š”์ง€์š”~?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Composition์ด ์„ฑ๊ณต์ ์œผ๋กœ ์™„๋ฃŒ๋˜์—ˆ์„ ๋•Œ ๋ถ€์ˆ˜ ํšจ๊ณผ๋ฅผ ์ธํ…ํŠธ๋กœ ์‹คํ–‰ํ•˜๋ ค๋ฉด SideEffect์— Toast์— ๋“ค์–ด๊ฐˆ ๋ฉ”์‹œ์ง€๋ฅผ ๋‹ด์•„ ๋ณด๋‚ด๋”๋ผ๊ตฌ์š”... ๊ณ ์ • UI๋ฅผ ์ œ์™ธํ•œ ์š”์†Œ๋“ค์€ ๋ทฐ๋ชจ๋ธ์— ์ž‘์„ฑํ•ด์ฃผ๋Š”๊ฒŒ MVI์— ๋งž๋Š” ๋ฐฉ๋ฒ•์ธ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ต ๐Ÿ˜ญ

@gaeulzzang gaeulzzang merged commit 3ea912a into develop Nov 15, 2024
1 check passed
@gaeulzzang gaeulzzang deleted the feature/#1-project-initial-setting branch December 27, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐Ÿ‚ ๊ฐ€์„ ๊ฐ€์‘๊ฐ€ โš™๏ธ [SETTING] ์„ธํŒ…
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SETTING] : Project Initial Setting
4 participants