Skip to content

Feature/#26 navigation #27

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

Merged
merged 5 commits into from
Jan 21, 2025
Merged

Feature/#26 navigation #27

merged 5 commits into from
Jan 21, 2025

Conversation

ashwon12
Copy link
Contributor

@ashwon12 ashwon12 commented Jan 21, 2025

๐Ÿ’ก Issue

๐ŸŒฑ Key changes

  • navHost ์ƒ์„ฑ
  • ๊ฒฝ๋กœ ์ง€์ •์„ ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ํด๋ž˜์Šค ์ƒ์„ฑ ( Navigator.kt )
  • ํ”ผ์ฒ˜๋ชจ๋“ˆ์— ํ™•์žฅํ•จ์ˆ˜ ์ƒ์„ฑ

โœ… To Reviewers

route ๊ด€๋ฆฌ๋ฅผ ์–ด๋–ป๊ฒŒ ํ• ๊นŒ ๊ณ ๋ฏผํ•˜๋‹ค๊ฐ€ .. !
ํ™•์žฅํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด์„œ app๋ชจ๋“ˆ์„ ์ฐธ์กฐํ•˜์ง€ ์•Š๊ธฐ ์œ„ํ•ด ๊ฐ๊ฐ์˜ ํ”ผ์ฒ˜ ์•ˆ์— ์„ ์–ธํ•ด์ฃผ์—ˆ์Šต๋‹ˆ๋‹ค.
( ex @Serializable data object LoginRoute )

nia ๊ตฌ์กฐ๊ฐ€ ๋น„์Šทํ•ด์„œ ์ฐธ๊ณ ํ•˜์˜€์Šต๋‹ˆ๋‹ค ~

Summary by CodeRabbit

๋ฆด๋ฆฌ์ฆˆ ๋…ธํŠธ

  • ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ

    • ์•ฑ ๋‚ด๋น„๊ฒŒ์ด์…˜ ์‹œ์Šคํ…œ ๋„์ž…
    • ๋กœ๊ทธ์ธ, ํšŒ์›๊ฐ€์ž…, ํ™ˆ, ๊ณต์ง€์‚ฌํ•ญ ํ™”๋ฉด ์ถ”๊ฐ€
    • Kotlin ์ง๋ ฌํ™” ์ง€์› ์ถ”๊ฐ€
  • ์˜์กด์„ฑ ์—…๋ฐ์ดํŠธ

    • ์ƒˆ๋กœ์šด ๋„ค๋น„๊ฒŒ์ด์…˜ ์ปดํฌ์ฆˆ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํ†ตํ•ฉ
    • Kotlin ์ง๋ ฌํ™” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ถ”๊ฐ€
  • ๊ฐœ์„  ์‚ฌํ•ญ

    • ์•ฑ ๊ตฌ์กฐ๋ฅผ ๋ชจ๋“ˆํ™”ํ•˜์—ฌ ์œ ์—ฐ์„ฑ ํ–ฅ์ƒ
    • ํ™”๋ฉด ๊ฐ„ ์ „ํ™˜์„ ์œ„ํ•œ ํ†ตํ•ฉ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฉ”์ปค๋‹ˆ์ฆ˜ ๊ตฌํ˜„

@ashwon12 ashwon12 added the Feature ๊ธฐ๋Šฅ ์ถ”๊ฐ€, ๊ฐœ๋ฐœ label Jan 21, 2025
@ashwon12 ashwon12 requested a review from jinukeu January 21, 2025 08:48
@ashwon12 ashwon12 self-assigned this Jan 21, 2025
Copy link

coderabbitai bot commented Jan 21, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

์ด ํ’€ ๋ฆฌํ€˜์ŠคํŠธ๋Š” Android ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ตฌ์กฐ๋ฅผ ๊ฐœ์„ ํ•˜๊ธฐ ์œ„ํ•œ ํฌ๊ด„์ ์ธ ๋ณ€๊ฒฝ ์‚ฌํ•ญ์„ ํฌํ•จํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ฃผ์š” ๋ณ€๊ฒฝ ์‚ฌํ•ญ์€ Jetpack Compose ๊ธฐ๋ฐ˜์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ์‹œ์Šคํ…œ ๊ตฌํ˜„์œผ๋กœ, ๋กœ๊ทธ์ธ, ํšŒ์›๊ฐ€์ž…, ํ™ˆ, ๊ณต์ง€์‚ฌํ•ญ ๋“ฑ ๋‹ค์–‘ํ•œ ํ™”๋ฉด ๊ฐ„ ์ด๋™์„ ๊ด€๋ฆฌํ•˜๋Š” ์ƒˆ๋กœ์šด ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฉ”์ปค๋‹ˆ์ฆ˜์„ ๋„์ž…ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋นŒ๋“œ ๊ตฌ์„ฑ๊ณผ ์˜์กด์„ฑ ๊ด€๋ฆฌ๋„ ํ•จ๊ป˜ ์—…๋ฐ์ดํŠธ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Changes

ํŒŒ์ผ ๋ณ€๊ฒฝ ์š”์•ฝ
app/build.gradle.kts ๋””์ž์ธ ์‹œ์Šคํ…œ, ๋„ค๋น„๊ฒŒ์ด์…˜ ๋Ÿฐํƒ€์ž„, ์ปดํฌ์ฆˆ ๋„ค๋น„๊ฒŒ์ด์…˜ ์˜์กด์„ฑ ์ถ”๊ฐ€
app/src/main/java/com/yapp/app/official/MainActivity.kt ๋„ค๋น„๊ฒŒ์ดํ„ฐ ์ดˆ๊ธฐํ™” ๋ฐ YappApp ์ปดํฌ์ €๋ธ”๋กœ UI ๊ตฌ์กฐ ๋ณ€๊ฒฝ
app/src/main/java/com/yapp/app/official/navigation/YappNavHost.kt ์ƒˆ๋กœ์šด ๋„ค๋น„๊ฒŒ์ด์…˜ ํ˜ธ์ŠคํŠธ ์ปดํฌ์ €๋ธ” ์ถ”๊ฐ€
app/src/main/java/com/yapp/app/official/ui/Navigator.kt ๋„ค๋น„๊ฒŒ์ด์…˜ ์ƒํƒœ ๊ด€๋ฆฌ๋ฅผ ์œ„ํ•œ NavigatorState ํด๋ž˜์Šค ๋„์ž…
app/src/main/java/com/yapp/app/official/ui/YappApp.kt ์•ฑ ์ „์ฒด UI ๊ตฌ์กฐ๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” YappApp ์ปดํฌ์ €๋ธ” ์ƒ์„ฑ
๊ธฐํƒ€ feature ๋ชจ๋“ˆ ๊ฐ ๊ธฐ๋Šฅ๋ณ„ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ ํ™”๋ฉด ์ปดํฌ์ €๋ธ” ์ถ”๊ฐ€

Assessment against linked issues

๋ชฉํ‘œ ํ•ด๊ฒฐ ์—ฌ๋ถ€ ์„ค๋ช…
NavHost ์ƒ์„ฑ โœ…
๊ฐ ๋ชจ๋“ˆ ๋‚ด ํ™•์žฅ ํ•จ์ˆ˜ ์ƒ์„ฑ โœ…

Possibly related PRs

Suggested labels

navigation, compose, feature-implementation

Suggested reviewers

  • jinukeu

Poem

๐Ÿฐ ๋„ค๋น„๊ฒŒ์ด์…˜์˜ ํ† ๋ผ ๐Ÿš€
ํ™”๋ฉด์„ ๋„˜๋‚˜๋“œ๋Š” ๊ฒฝ๋กœ
์ปดํฌ์ฆˆ์˜ ๋งˆ๋ฒ•์œผ๋กœ
์•ฑ์˜ ์—ฌ์ •์„ ๊ทธ๋ฆฌ๋‹ค
์ž์œ ๋กญ๊ฒŒ ํ๋ฅด๋„ค! ๐ŸŒˆ


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

โค๏ธ Share
๐Ÿชง Tips

Chat

There are 3 ways to chat with CodeRabbit:

โ€ผ๏ธ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Member

@jinukeu jinukeu 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 +12 to +14
fun NavController.navigateToSignUp(navOptions: NavOptions? = null) { navigate(SignUpRoute, navOptions) }

fun NavGraphBuilder.signupNavGraph(){
Copy link
Member

Choose a reason for hiding this comment

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

์ข‹๋„ค์š” ๐Ÿ‘

modifier = modifier,
) {
loginNavGraph(
onSignUpClick = { navigator.navigateSignUpScreen() }
Copy link
Member

Choose a reason for hiding this comment

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

๏ฟฝC: NIA์—์„œ๋„ loginNavGraph์— onXXXClick ๋„ค์ด๋ฐ์ด ๋“ค์–ด๊ฐ€๋‚˜์š”?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nia์—์„œ๋Š” toSignUpDestination ์ด๋Ÿฐ ๋„ค์ด๋ฐ์ด ๋“ค์–ด๊ฐ€๋Š”๋ฐ
์ €ํฌ๋Š” ๋ฒ„ํŠผ์„ ํ†ตํ•ด์„œ ์ „ํ™˜์ด ๋˜์–ด์„œ click ๋„ค์ด๋ฐ์ด ๋” ์ง๊ด€์ ์ผ ๊ฒƒ ๊ฐ™๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ์–ด์š” !

Copy link
Member

Choose a reason for hiding this comment

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

์•„ํ•˜ ์Œ .. onSignUpClick์ด SignUpButton์„ ํด๋ฆญํ•œ ๊ฒฝ์šฐ์ธ๊ฐ€์š”?

Copy link
Contributor Author

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.

์—‡ ๊ทธ๋ ‡๋‹ค๋ฉด Graph์—์„œ๋Š” Screen์˜ ๋™์ž‘์„ ๋ชจ๋ฅด๊ฒŒ๋” ํ•˜๋Š”๊ฒŒ ๋‚˜์ค‘์— ์œ ์ง€๋ณด์ˆ˜ ํ•˜๊ธฐ ๋” ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์˜คํ˜ธ .. ์ข‹์Šต๋‹ˆ๋‹ค ! ๋กœ๊ทธ์ธ ๋ทฐ ์ž‘์—…ํ•˜๋ฉด ๋งค๊ฐœ๋ณ€์ˆ˜๊ฐ€ ์ถ”๊ฐ€ ๋  ๊ฒƒ ๊ฐ™์•„์„œ ๊ทธ ๋•Œ ๊ฐ™์ด ๋„ค์ด๋ฐ ๋ฐ˜์˜ํ•˜๋„๋ก ํ• ๊ฒŒ์š” !

pluginManager.apply("org.jetbrains.kotlin.android")
with(pluginManager) {
apply("org.jetbrains.kotlin.android")
apply("org.jetbrains.kotlin.plugin.serialization")
Copy link
Member

@jinukeu jinukeu Jan 21, 2025

Choose a reason for hiding this comment

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

A: ์˜ค Nia์—์„œ๋„ serialization์„ ์—ฌ๊ธฐ์„œ ํ•˜๋‚˜์š”?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

์•— ์•„๋…€ ใ…Žใ…‹ ์ปจ๋ฐด์…˜ ์ด๋ฒˆ์— ์ถ”๊ฐ€ํ•˜๋ฉด์„œ ๋А๋‚€๊ฑด๋ฐ ์ˆ˜์ •์ด ํ•„์š”๋กœ ํ•ด๋ณด์ž…๋‹ˆ๋‹ค.. !
( register ๋ฐฉ์‹ vs / .gradle.kts ํ”Œ๋Ÿฌ๊ทธ์ธ ํŒŒ์ผ.)

์šฐ์„  ์ˆœ์œ„ ๋†’์€ ์ž‘์—… ๋๋‚˜๋ฉด ๋…ผ์˜ ํ†ตํ•ด์„œ ๊ฐœ์„ ํ•˜๋Š”๊ฒŒ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ท

Copy link
Member

Choose a reason for hiding this comment

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

์ข‹์Šต๋‹ˆ๋‹ค!! ์ผ๋‹จ ์š”๋ ‡๊ฒŒ ๊ณ ๊ณ  ํ•˜์‹œ์ฃ 

@ashwon12
Copy link
Contributor Author

@coderabbitai review

Copy link

coderabbitai bot commented Jan 21, 2025

โœ… Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@ashwon12 ashwon12 added the CodeRabbit CodeRabbit ์ฝ”๋“œ ๋ฆฌ๋ทฐ ์š”์ฒญ label Jan 21, 2025
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 16

โ™ป๏ธ Duplicate comments (1)
feature/signup/src/main/java/com/yapp/feature/signup/navigation/SignUpNavigation.kt (1)

10-18: ๐Ÿงน Nitpick (assertive)

๊ณต๊ฐœ API์— ๋Œ€ํ•œ ๋ฌธ์„œํ™” ํ•„์š”

HomeNavigation.kt์™€ ๋™์ผํ•œ ํŒจํ„ด์œผ๋กœ, ๋‹ค์Œ ํ•ญ๋ชฉ๋“ค์— ๋Œ€ํ•œ KDoc ๋ฌธ์„œํ™”๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค:

  • SignUpRoute ๋ฐ์ดํ„ฐ ๊ฐ์ฒด
  • navigateToSignUp ํ™•์žฅ ํ•จ์ˆ˜
  • signupNavGraph ํ™•์žฅ ํ•จ์ˆ˜
๐Ÿ“œ Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between da98001 and 67b7dd7.

๐Ÿ“’ Files selected for processing (17)
  • app/build.gradle.kts (1 hunks)
  • app/src/main/java/com/yapp/app/official/MainActivity.kt (2 hunks)
  • app/src/main/java/com/yapp/app/official/navigation/YappNavHost.kt (1 hunks)
  • app/src/main/java/com/yapp/app/official/ui/Navigator.kt (1 hunks)
  • app/src/main/java/com/yapp/app/official/ui/YappApp.kt (1 hunks)
  • build-logic/src/main/java/com/yapp/ComposeAndroid.kt (1 hunks)
  • build-logic/src/main/java/com/yapp/KotlinAndroid.kt (3 hunks)
  • build.gradle.kts (1 hunks)
  • feature/home/src/main/java/com/yapp/feature/home/HomeScreen.kt (1 hunks)
  • feature/home/src/main/java/com/yapp/feature/home/navigation/HomeNavigation.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/LoginScreen.kt (1 hunks)
  • feature/login/src/main/java/com/yapp/feature/login/navigation/LoginNavigation.kt (1 hunks)
  • feature/notice/src/main/java/com/yapp/feature/notice/NoticeScreen.kt (1 hunks)
  • feature/notice/src/main/java/com/yapp/feature/notice/navigation/NoticeNavigation.kt (1 hunks)
  • feature/signup/src/main/java/com/yapp/feature/signup/SignUpScreen.kt (1 hunks)
  • feature/signup/src/main/java/com/yapp/feature/signup/navigation/SignUpNavigation.kt (1 hunks)
  • gradle/libs.versions.toml (3 hunks)
๐Ÿ”‡ Additional comments (12)
feature/login/src/main/java/com/yapp/feature/login/LoginScreen.kt (1)

12-19: โš ๏ธ Potential issue

๋กœ๊ทธ์ธ ํ™”๋ฉด UI ์š”์†Œ ์ถ”๊ฐ€ ํ•„์š”

ํ˜„์žฌ ๊ตฌํ˜„๋œ ๋กœ๊ทธ์ธ ํ™”๋ฉด์—๋Š” ํ•„์ˆ˜์ ์ธ UI ์š”์†Œ๋“ค์ด ๋ˆ„๋ฝ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค:

  • ์ด๋ฉ”์ผ/์•„์ด๋”” ์ž…๋ ฅ ํ•„๋“œ
  • ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ ํ•„๋“œ
  • ๋กœ๊ทธ์ธ ์ƒํƒœ ํ‘œ์‹œ
  • ํšŒ์›๊ฐ€์ž… ๋งํฌ
  • ๋น„๋ฐ€๋ฒˆํ˜ธ ์ฐพ๊ธฐ ๋งํฌ

๋˜ํ•œ ๋นˆ onClick ํ•ธ๋“ค๋Ÿฌ๋Š” ์‹ค์ œ ๋กœ๊ทธ์ธ ๋กœ์ง์œผ๋กœ ๋Œ€์ฒด๋˜์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

feature/home/src/main/java/com/yapp/feature/home/HomeScreen.kt (1)

15-19: onClick ํ•ธ๋“ค๋Ÿฌ ๊ตฌํ˜„ ๋ฐ ๋ฒ„ํŠผ ํ…์ŠคํŠธ ๊ฐœ์„  ํ•„์š”

๋‹ค์Œ ์‚ฌํ•ญ๋“ค์„ ๊ฐœ์„ ํ•ด์ฃผ์„ธ์š”:

  1. ๋ฒ„ํŠผ์˜ onClick ํ•ธ๋“ค๋Ÿฌ๊ฐ€ ๋น„์–ด์žˆ์Šต๋‹ˆ๋‹ค
  2. "Home"์ด๋ผ๋Š” ๋ฒ„ํŠผ ํ…์ŠคํŠธ๋Š” ์‚ฌ์šฉ์ž์—๊ฒŒ ๋ฒ„ํŠผ์˜ ๋ชฉ์ ์„ ๋ช…ํ™•ํžˆ ์ „๋‹ฌํ•˜์ง€ ๋ชปํ•ฉ๋‹ˆ๋‹ค
feature/notice/src/main/java/com/yapp/feature/notice/navigation/NoticeNavigation.kt (2)

10-11: Serializable ๋ฐ์ดํ„ฐ ๊ฐ์ฒด์˜ ์ ์ ˆํ•œ ์‚ฌ์šฉ์„ ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค.

Route ๊ฐ์ฒด๋ฅผ @Serializable data object๋กœ ์ •์˜ํ•œ ๊ฒƒ์€ ์ข‹์€ ์ ‘๊ทผ ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค.


12-12: ๋„ค๋น„๊ฒŒ์ด์…˜ ํ™•์žฅ ํ•จ์ˆ˜์˜ ๊ตฌํ˜„์ด ๊ฐ„๊ฒฐํ•ฉ๋‹ˆ๋‹ค.

NavController ํ™•์žฅ ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด ๋„ค๋น„๊ฒŒ์ด์…˜ ๋กœ์ง์„ ์บก์Аํ™”ํ•œ ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

app/src/main/java/com/yapp/app/official/MainActivity.kt (1)

19-22: ๋„ค๋น„๊ฒŒ์ด์…˜ ์ƒํƒœ ๊ด€๋ฆฌ์™€ ํ…Œ๋งˆ ์ ์šฉ์ด ์ž˜ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

  1. rememberNavigator()๋ฅผ ํ†ตํ•œ ๋„ค๋น„๊ฒŒ์ด์…˜ ์ƒํƒœ ๊ด€๋ฆฌ๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.
  2. YappTheme์œผ๋กœ ์•ฑ ์ „์ฒด UI๋ฅผ ๋ž˜ํ•‘ํ•˜์—ฌ ์ผ๊ด€๋œ ๋””์ž์ธ ์‹œ์Šคํ…œ ์ ์šฉ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.
app/src/main/java/com/yapp/app/official/navigation/YappNavHost.kt (1)

23-25: ์ด์ „ ๋ฆฌ๋ทฐ ์˜๊ฒฌ์„ ๋ฐ˜์˜ํ•ด์ฃผ์„ธ์š”

์ด์ „ ๋ฆฌ๋ทฐ์—์„œ ๋…ผ์˜๋œ ๋Œ€๋กœ, onSignUpClick ๋Œ€์‹  ํ™”๋ฉด ์ „ํ™˜ ๋™์ž‘์„ ๋” ์ž˜ ํ‘œํ˜„ํ•˜๋Š” ๋„ค์ด๋ฐ์œผ๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ์ด ์ข‹๊ฒ ์Šต๋‹ˆ๋‹ค.

app/src/main/java/com/yapp/app/official/ui/Navigator.kt (1)

29-31: ์‚ฌ์šฉ๋˜์ง€ ์•Š๋Š” ํ”„๋กœํผํ‹ฐ๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค

currentDestination ํ”„๋กœํผํ‹ฐ๊ฐ€ ์„ ์–ธ๋˜์–ด ์žˆ์ง€๋งŒ ์‚ฌ์šฉ๋˜์ง€ ์•Š๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ํ•„์š”ํ•˜์ง€ ์•Š๋‹ค๋ฉด ์ œ๊ฑฐํ•˜๊ฑฐ๋‚˜, ํ•„์š”ํ•˜๋‹ค๋ฉด ํ™œ์šฉ ๋ฐฉ์•ˆ์„ ๊ตฌํ˜„ํ•ด์ฃผ์„ธ์š”.

build-logic/src/main/java/com/yapp/KotlinAndroid.kt (2)

20-23: ๐Ÿงน Nitpick (assertive)

ํ”Œ๋Ÿฌ๊ทธ์ธ ๊ตฌ์„ฑ ๋ฐฉ์‹ ๊ฐœ์„  ํ•„์š”

์ด์ „ ๋ฆฌ๋ทฐ ์ฝ”๋ฉ˜ํŠธ์—์„œ ๋…ผ์˜๋œ ๊ฒƒ์ฒ˜๋Ÿผ, ํ”Œ๋Ÿฌ๊ทธ์ธ ๊ตฌ์„ฑ ๋ฐฉ์‹์— ๋Œ€ํ•œ ๊ฐœ์„ ์ด ํ•„์š”ํ•ด ๋ณด์ž…๋‹ˆ๋‹ค. ํ˜„์žฌ๋Š” ์ง์ ‘ apply๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์ง€๋งŒ, ๋นŒ๋“œ ๋กœ์ง์˜ ์ผ๊ด€์„ฑ์„ ์œ„ํ•ด .gradle.kts ํ”Œ๋Ÿฌ๊ทธ์ธ ํŒŒ์ผ ๋ฐฉ์‹์œผ๋กœ ์ „ํ™˜์„ ๊ณ ๋ คํ•ด๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.


51-54: ์ง๋ ฌํ™” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „ ๊ฒ€์ฆ ํ•„์š”

์ง๋ ฌํ™” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์˜์กด์„ฑ์ด ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ์˜ ์•ˆ์ •์„ฑ์„ ์œ„ํ•ด ๋ฒ„์ „ ํ˜ธํ™˜์„ฑ์„ ํ™•์ธํ•ด์ฃผ์„ธ์š”.

๋‹ค์Œ ์Šคํฌ๋ฆฝํŠธ๋กœ kotlinx.serialization ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์ตœ์‹  ๋ฒ„์ „๊ณผ ํ˜ธํ™˜์„ฑ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:

โœ… Verification successful

kotlinx.serialization ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „ ๊ฒ€์ฆ ์™„๋ฃŒ

ํ”„๋กœ์ ํŠธ์—์„œ ์‚ฌ์šฉ ์ค‘์ธ kotlinx.serialization 1.8.0 ๋ฒ„์ „์€ ์ตœ์‹  ์•ˆ์ • ๋ฒ„์ „์ด๋ฉฐ, Kotlin 2.0.0๊ณผ ์™„๋ฒฝํ•˜๊ฒŒ ํ˜ธํ™˜๋ฉ๋‹ˆ๋‹ค. ๋ฒ„์ „ ํ˜ธํ™˜์„ฑ์— ๋ฌธ์ œ๊ฐ€ ์—†์Šต๋‹ˆ๋‹ค.

๐Ÿ Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# kotlinx.serialization ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์˜ ์ตœ์‹  ๋ฒ„์ „ ํ™•์ธ
curl -s "https://api.github.com/repos/Kotlin/kotlinx.serialization/releases/latest" | jq -r '.tag_name'

# Kotlin ๋ฒ„์ „๊ณผ์˜ ํ˜ธํ™˜์„ฑ ๋งคํŠธ๋ฆญ์Šค ํ™•์ธ
rg "kotlin.*version" -g "*.{gradle,kts,properties}" 

Length of output: 162


Script:

#!/bin/bash
# Find and check version catalog
fd "libs.versions.toml" --type f --exec cat {}

# Search for version declarations in gradle files with different patterns
rg "kotlin|serialization" -g "*.{gradle,gradle.kts,toml,properties}" -A 2 -B 2

# Check buildSrc directory for version declarations
fd . "buildSrc" --type f --exec cat {}

Length of output: 7918

build.gradle.kts (1)

8-8: ๋ณ€๊ฒฝ์‚ฌํ•ญ ์Šน์ธ

์ง๋ ฌํ™” ํ”Œ๋Ÿฌ๊ทธ์ธ์ด ์ ์ ˆํ•˜๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

gradle/libs.versions.toml (2)

5-5: Kotlin ์ง๋ ฌํ™” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ ๊ถŒ์žฅ

ํ˜„์žฌ ์‚ฌ์šฉ ์ค‘์ธ kotlinx.serialization.json ๋ฒ„์ „(1.8.0)์ด ์ตœ์‹  ๋ฒ„์ „์ด ์•„๋‹ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ตœ์‹  ์•ˆ์ • ๋ฒ„์ „ ์‚ฌ์šฉ์„ ๊ถŒ์žฅ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

๋‹ค์Œ ์Šคํฌ๋ฆฝํŠธ๋กœ ์ตœ์‹  ๋ฒ„์ „์„ ํ™•์ธํ•ด๋ณด์„ธ์š”:


21-23: โš ๏ธ Potential issue

๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฒ„์ „ ์ •์˜ ๊ฐœ์„  ํ•„์š”

  1. ์ค‘๋ณต๋œ ๋ฒ„์ „ ์ •์˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค:
    • navigationCompose์™€ navigationComposeVersion์ด ์œ ์‚ฌํ•œ ๋ชฉ์ ์œผ๋กœ ์‚ฌ์šฉ๋จ
  2. ๋ฒ„์ „ ๋ฒˆํ˜ธ๊ฐ€ ํ˜„์žฌ ์•ˆ์ • ๋ฒ„์ „๋ณด๋‹ค ๋†’์•„ ๋ณด์ž…๋‹ˆ๋‹ค:
    • 2.8.4, 2.8.5๋Š” ํ˜„์žฌ ์กด์žฌํ•˜์ง€ ์•Š๋Š” ๋ฒ„์ „์ผ ์ˆ˜ ์žˆ์Œ

๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ฐœ์„ ํ•˜๋Š” ๊ฒƒ์„ ์ถ”์ฒœ๋“œ๋ฆฝ๋‹ˆ๋‹ค:

  1. ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ด€๋ จ ๋ฒ„์ „์„ ํ•˜๋‚˜๋กœ ํ†ต์ผ
  2. ์ตœ์‹  ์•ˆ์ • ๋ฒ„์ „ ์‚ฌ์šฉ

๋ฒ„์ „ ๊ฒ€์ฆ์„ ์œ„ํ•ด ๋‹ค์Œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•ด๋ณด์„ธ์š”:

โœ… Verification successful

๋„ค๋น„๊ฒŒ์ด์…˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „ ํ†ต์ผ ํ•„์š”

๋ฒ„์ „ ๋ฒˆํ˜ธ๋Š” ๋ชจ๋‘ ์œ ํšจํ•œ ์•ˆ์ • ๋ฒ„์ „์ด๋‚˜, ๋‹ค์Œ ๊ฐœ์„ ์‚ฌํ•ญ์„ ์ œ์•ˆ๋“œ๋ฆฝ๋‹ˆ๋‹ค:

  1. ์ค‘๋ณต ๋ฒ„์ „ ์ •์˜ ์ œ๊ฑฐ:
    • navigationCompose์™€ navigationComposeVersion ์ค‘ ํ•˜๋‚˜๋งŒ ์‚ฌ์šฉ
  2. ๋ชจ๋“  ๋„ค๋น„๊ฒŒ์ด์…˜ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋™์ผ ๋ฒ„์ „์œผ๋กœ ํ†ต์ผ:
    • ํ˜„์žฌ 2.8.4์™€ 2.8.5๊ฐ€ ํ˜ผ์šฉ๋˜์–ด ์žˆ์Œ
    • ๋ชจ๋‘ 2.8.5๋กœ ํ†ต์ผ ๊ถŒ์žฅ
๐Ÿ Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# ์ตœ์‹  ์•ˆ์ • ๋ฒ„์ „ ํ™•์ธ
curl -s "https://dl.google.com/dl/android/maven2/androidx/navigation/navigation-compose/maven-metadata.xml" | grep -oP "(?<=<version>)[^<]+(?=</version>)" | tail -n 1

Length of output: 180


Script:

#!/bin/bash
# Get all available versions
curl -s "https://dl.google.com/dl/android/maven2/androidx/navigation/navigation-compose/maven-metadata.xml" | grep -oP "(?<=<version>)[^<]+(?=</version>)" | sort -V

Length of output: 1186

Comment on lines 23 to 24
add("implementation", libs.findLibrary("androidx.material3").get())
add("implementation", libs.findLibrary("androidx.navigation.compose").get())
Copy link

Choose a reason for hiding this comment

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

โš ๏ธ Potential issue

์ค‘๋ณต๋œ ์˜์กด์„ฑ์„ ์ œ๊ฑฐํ•ด์ฃผ์„ธ์š”

androidx.material3 ์˜์กด์„ฑ์ด ์ค‘๋ณต ์„ ์–ธ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. 23๋ฒˆ ๋ผ์ธ์„ ์ œ๊ฑฐํ•ด์ฃผ์„ธ์š”.

Comment on lines 19 to 20
implementation(libs.androidx.navigation.runtime.ktx)
implementation(libs.navigation.compose)
Copy link

Choose a reason for hiding this comment

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

๐Ÿ› ๏ธ Refactor suggestion

๋„ค๋น„๊ฒŒ์ด์…˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „ ๋ถˆ์ผ์น˜ ํ™•์ธ ํ•„์š”

libs.versions.toml์— ์ •์˜๋œ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฒ„์ „๋“ค ์‚ฌ์ด์— ๋ถˆ์ผ์น˜๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค:

  • navigationCompose: 2.8.4
  • navigationRuntimeKtx: 2.8.5
  • navigationComposeVersion: 2.8.5

๋ฒ„์ „์„ ํ†ต์ผํ•˜์—ฌ ์ž ์žฌ์ ์ธ ํ˜ธํ™˜์„ฑ ๋ฌธ์ œ๋ฅผ ๋ฐฉ์ง€ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.


androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "navigationCompose" }
Copy link

Choose a reason for hiding this comment

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

๐Ÿ› ๏ธ Refactor suggestion

์ค‘๋ณต ๋„ค๋น„๊ฒŒ์ด์…˜ ์˜์กด์„ฑ ์ œ๊ฑฐ ํ•„์š”

๋™์ผํ•œ ๊ธฐ๋Šฅ์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ์˜์กด์„ฑ์ด ์—ฌ๋Ÿฌ ๋ฒˆ ์ •์˜๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค:

  • androidx-navigation-compose
  • navigation-compose

ํ•˜๋‚˜์˜ ์˜์กด์„ฑ๋งŒ ์‚ฌ์šฉํ•˜๋„๋ก ์ •๋ฆฌ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

Also applies to: 55-56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CodeRabbit CodeRabbit ์ฝ”๋“œ ๋ฆฌ๋ทฐ ์š”์ฒญ Feature ๊ธฐ๋Šฅ ์ถ”๊ฐ€, ๊ฐœ๋ฐœ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Navigation ๊ตฌ์กฐ ๋งŒ๋“ค๊ธฐ
2 participants