Skip to content

Conversation

@leeseokchan00
Copy link
Contributor

@leeseokchan00 leeseokchan00 commented Jun 23, 2025

๐Ÿ“Œ PR ์š”์•ฝ

๐ŸŒฑ ์ž‘์—…ํ•œ ๋‚ด์šฉ

  • ์นด์นด์˜ค ๋กœ๊ทธ์ธ sdk ์—ฐ๊ฒฐ

๐ŸŒฑ PR ํฌ์ธํŠธ

  • "asdasd"๋กœ ๋กœ๊ทธ ์ฐ์œผ๋ฉด ์•ก์„ธ์Šค ,๋ฆฌํ”„๋ ˆ์‹œ ํ† ํฐ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท

Screen_recording_20250624_030922.mp4

|ํŒŒ์ผ์ฒจ๋ถ€๋ฐ”๋žŒ|

๐Ÿ“ฎ ๊ด€๋ จ ์ด์Šˆ

Summary by CodeRabbit

Summary by CodeRabbit

  • ์‹ ๊ทœ ๊ธฐ๋Šฅ

    • ์นด์นด์˜ค ๋กœ๊ทธ์ธ์„ ์œ„ํ•œ OAuth ๊ธฐ๋Šฅ์ด ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์•ฑ์—์„œ ์นด์นด์˜ค ๊ณ„์ •์œผ๋กœ ๋กœ๊ทธ์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
    • OAuth ์ „์šฉ ํ™”๋ฉด ๋ฐ ๋„ค๋น„๊ฒŒ์ด์…˜์ด ๋„์ž…๋˜์–ด, ์•ฑ ์‹คํ–‰ ์‹œ ์ตœ์ดˆ ์ง„์ž… ํ™”๋ฉด์ด OAuth๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
  • ๊ธฐํƒ€

    • ์นด์นด์˜ค SDK ๋ฐ ๊ด€๋ จ ์˜์กด์„ฑ, ๋„ค์ดํ‹ฐ๋ธŒ ํ‚ค ์„ค์ •์ด ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
    • ์•ฑ ๋นŒ๋“œ ๋ฐ ์„ค์ • ํŒŒ์ผ์ด OAuth ๊ธฐ๋Šฅ์— ๋งž๊ฒŒ ์—…๋ฐ์ดํŠธ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

@leeseokchan00 leeseokchan00 requested a review from a team June 23, 2025 17:36
@leeseokchan00 leeseokchan00 self-assigned this Jun 23, 2025
@coderabbitai
Copy link

coderabbitai bot commented Jun 23, 2025

"""

Walkthrough

์นด์นด์˜ค ๋กœ๊ทธ์ธ์„ ์œ„ํ•œ SDK ์—ฐ๋™ ๋ฐ OAuth ๊ธฐ๋Šฅ์ด ์‹ ๊ทœ๋กœ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์นด์นด์˜ค SDK ์˜์กด์„ฑ, ๋„ค์ดํ‹ฐ๋ธŒ ํ‚ค์˜ ๋นŒ๋“œ/๋งค๋‹ˆํŽ˜์ŠคํŠธ ์—ฐ๋™, OAuth ์ „์šฉ feature ๋ชจ๋“ˆ, OAuth ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ฐ ํ™”๋ฉด, ViewModel๊ณผ ์ƒํƒœ ๊ด€๋ฆฌ, ์นด์นด์˜ค ๋กœ๊ทธ์ธ ํ”Œ๋กœ์šฐ ์ฝ”๋“œ๊ฐ€ ํฌํ•จ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ๊ธฐ์กด ๋„ค๋น„๊ฒŒ์ด์…˜ ์ง„์ž…์ ๋„ OAuth๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Changes

ํŒŒ์ผ/๊ฒฝ๋กœ ๊ทธ๋ฃน ๋ณ€๊ฒฝ ์š”์•ฝ
app/build.gradle.kts, settings.gradle.kts, feature/main/build.gradle.kts, feature/oauth/build.gradle.kts ์นด์นด์˜ค ๋กœ๊ทธ์ธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฐ feature.oauth ๋ชจ๋“ˆ ์˜์กด์„ฑ ์ถ”๊ฐ€, ๋ชจ๋“ˆ ๋“ฑ๋ก, ์นด์นด์˜ค ์ €์žฅ์†Œ ์ถ”๊ฐ€
app/src/main/AndroidManifest.xml ์นด์นด์˜ค ์ธ์ฆ ํ•ธ๋“ค๋Ÿฌ Activity ์ถ”๊ฐ€, OAuth์šฉ intent filter ๋ฐ scheme ๋“ฑ๋ก
build-logic/convention/src/main/java/AndroidApplicationPlugin.kt, build-logic/convention/.../BuildConfig.kt ๋กœ์ปฌ Gradle ํ”„๋กœํผํ‹ฐ์—์„œ ์นด์นด์˜ค ๋„ค์ดํ‹ฐ๋ธŒ ํ‚ค๋ฅผ ์ฝ์–ด Manifest ๋ฐ BuildConfig์— ์—ฐ๊ฒฐ
core/common/src/main/java/.../BuildConfigFields.kt, core/buildconfig/.../BuildConfigFieldsProviderImpl.kt BuildConfigFields์— kakaoNativeKey ํ•„๋“œ ์ถ”๊ฐ€, ๋ฐ˜ํ™˜๊ฐ’์— ํฌํ•จ
core/ui/src/main/java/.../LaunchedEffectWithLifecycle.kt Compose์—์„œ ๋ผ์ดํ”„์‚ฌ์ดํด์— ๋งž์ถฐ ๋™์ž‘ํ•˜๋Š” LaunchedEffectWithLifecycle ํ•จ์ˆ˜ ์ถ”๊ฐ€
feature/main/src/main/java/com/teamsolply/solply/main/MainNavigator.kt ์•ฑ ์‹œ์ž‘ ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ชฉ์ ์ง€๋ฅผ Home์—์„œ Oauth๋กœ ๋ณ€๊ฒฝ
feature/main/src/main/java/com/teamsolply/solply/main/MainScreen.kt OAuth ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ทธ๋ž˜ํ”„๋ฅผ NavHost์— ์ถ”๊ฐ€
feature/oauth/.gitignore, feature/oauth/src/main/AndroidManifest.xml OAuth feature ๋ชจ๋“ˆ์— .gitignore ๋ฐ ๋นˆ ๋งค๋‹ˆํŽ˜์ŠคํŠธ ์ถ”๊ฐ€
feature/oauth/src/main/java/com/teamsolply/solply/oauth/navigation/OauthNavigation.kt Oauth ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ฒฝ๋กœ, NavController ํ™•์žฅ, NavGraphBuilder ํ™•์žฅ ํ•จ์ˆ˜ ์ถ”๊ฐ€
feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthContract.kt OauthState, OauthIntent, OauthSideEffect ๋“ฑ ์ƒํƒœ/์ธํ…ํŠธ/์‚ฌ์ด๋“œ์ดํŽ™ํŠธ ์ •์˜
feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthScreen.kt OauthRoute, OauthScreen, startKakaoLogin ํ•จ์ˆ˜ ๋“ฑ OAuth UI ๋ฐ ์นด์นด์˜ค ๋กœ๊ทธ์ธ ํ”Œ๋กœ์šฐ ๊ตฌํ˜„
feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthViewModel.kt OauthViewModel ํด๋ž˜์Šค ๋ฐ ์ธํ…ํŠธ ์ฒ˜๋ฆฌ ๋กœ์ง ์ถ”๊ฐ€

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant OauthScreen
    participant OauthViewModel
    participant KakaoSDK

    User->>OauthScreen: "Oauth" ํด๋ฆญ
    OauthScreen->>OauthViewModel: KakaoLoginClick ์ธํ…ํŠธ ์ „๋‹ฌ
    OauthViewModel->>OauthScreen: StartKakaoLogin ์‚ฌ์ด๋“œ์ดํŽ™ํŠธ ๋ฐœํ–‰
    OauthScreen->>KakaoSDK: startKakaoLogin() ํ˜ธ์ถœ
    alt KakaoTalk ์„ค์น˜๋จ
        KakaoSDK-->>OauthScreen: ๋กœ๊ทธ์ธ ์„ฑ๊ณต/์‹คํŒจ ์ฝœ๋ฐฑ
    else KakaoTalk ๋ฏธ์„ค์น˜
        KakaoSDK-->>OauthScreen: ์นด์นด์˜ค ๊ณ„์ • ๋กœ๊ทธ์ธ ์ฝœ๋ฐฑ
    end
    OauthScreen->>User: ๊ฒฐ๊ณผ ํ† ์ŠคํŠธ/๋กœ๊น…
Loading

Assessment against linked issues

Objective Addressed Explanation
์นด์นด์˜ค ๋กœ๊ทธ์ธ SDK ์—ฐ๋™ ๋ฐ OAuth ๊ธฐ๋Šฅ ๊ตฌํ˜„ (#3) โœ…
์นด์นด์˜ค ๋„ค์ดํ‹ฐ๋ธŒ ํ‚ค ๋นŒ๋“œ/๋งค๋‹ˆํŽ˜์ŠคํŠธ ์—ฐ๋™ (#3) โœ…
OAuth feature ๋ชจ๋“ˆ ๋ฐ ๋„ค๋น„๊ฒŒ์ด์…˜ ์ ์šฉ (#3) โœ…
OAuth ํ™”๋ฉด, ViewModel, ์ƒํƒœ๊ด€๋ฆฌ, ์นด์นด์˜ค ๋กœ๊ทธ์ธ ํ”Œ๋กœ์šฐ ๊ตฌํ˜„ (#3) โœ…

Poem

( )
(_/) ์นด์นด์˜ค ํ† ํฐ์„ ์ฅ๊ณ 
( โ€ข_โ€ข) ํ† ๋ผ๋Š” ๋กœ๊ทธ์ธ ๋ฌธ์„ ๋‘๋“œ๋ ค์š”!
/ >๐Ÿช OAuth์˜ ๊ธธ์„ ์ƒˆ๋กœ ์—ด๋ฉฐ
"Kakao, ์•ˆ๋…•?" ํ† ์ŠคํŠธ์™€ ํ•จ๊ป˜
์•ฑ์˜ ์‹œ์ž‘๋„ ์ด์ œ๋Š” OAuth!
๐Ÿฅ•
"""


๐Ÿ“œ Recent review details

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

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 7e7161a and 8265da7.

๐Ÿ“’ Files selected for processing (1)
  • .github/workflows/android-pull-request-ci.yml (1 hunks)
๐Ÿšง Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/android-pull-request-ci.yml
โฐ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build

๐Ÿชง Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @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

@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: 5

๐Ÿงน Nitpick comments (1)
core/ui/src/main/java/com/teamsolply/solply/ui/lifecycle/LaunchedEffectWithLifecycle.kt (1)

11-18: Composable ํ•จ์ˆ˜ ์‹œ๊ทธ๋‹ˆ์ฒ˜ ๋ฐ ๊ธฐ๋ณธ๊ฐ’ ์„ค์ •
key1, key2 ๊ธฐ๋ณธ๊ฐ’๊ณผ minActiveState๋ฅผ STARTED๋กœ ์„ค์ •ํ•ด ํ•„์š”ํ•œ ์‹œ์ ์—๋งŒ ์•ก์…˜์ด ์‹คํ–‰๋˜๋„๋ก ์ž˜ ์ •์˜ํ–ˆ์Šต๋‹ˆ๋‹ค. ์ถ”๊ฐ€ ํ‚ค ํ™•์žฅ์„ฑ์ด ํ•„์š”ํ•˜๋‹ค๋ฉด vararg ๋ฐฉ์‹ ๋„์ž…์„ ๊ณ ๋ คํ•˜์„ธ์š”.

๐Ÿ“œ Review details

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

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between 59b9cfe and fdb43bf.

๐Ÿ“’ Files selected for processing (19)
  • app/build.gradle.kts (1 hunks)
  • app/src/main/AndroidManifest.xml (1 hunks)
  • app/src/main/java/com/teamsolply/solply/SolplyApplication.kt (1 hunks)
  • build-logic/convention/src/main/java/AndroidApplicationPlugin.kt (2 hunks)
  • build-logic/convention/src/main/java/com/teamsolply/solply/convention/BuildConfig.kt (1 hunks)
  • core/buildconfig/src/main/java/com/teamsolply/solply/buildconfig/impl/BuildConfigFieldsProviderImpl.kt (1 hunks)
  • core/common/src/main/java/com/teamsolply/solply/common/buildconfig/BuildConfigFields.kt (1 hunks)
  • core/ui/src/main/java/com/teamsolply/solply/ui/lifecycle/LaunchedEffectWithLifecycle.kt (1 hunks)
  • feature/main/build.gradle.kts (1 hunks)
  • feature/main/src/main/java/com/teamsolply/solply/main/MainNavigator.kt (2 hunks)
  • feature/main/src/main/java/com/teamsolply/solply/main/MainScreen.kt (2 hunks)
  • feature/oauth/.gitignore (1 hunks)
  • feature/oauth/build.gradle.kts (1 hunks)
  • feature/oauth/src/main/AndroidManifest.xml (1 hunks)
  • feature/oauth/src/main/java/com/teamsolply/solply/oauth/navigation/OauthNavigation.kt (1 hunks)
  • feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthContract.kt (1 hunks)
  • feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthScreen.kt (1 hunks)
  • feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthViewModel.kt (1 hunks)
  • settings.gradle.kts (2 hunks)
โฐ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
๐Ÿ”‡ Additional comments (24)
app/build.gradle.kts (1)

24-25: Kakao ๋กœ๊ทธ์ธ SDK ์˜์กด์„ฑ ์ถ”๊ฐ€ ํ™•์ธ
app ๋ชจ๋“ˆ์— libs.kakao.login ์˜์กด์„ฑ์„ ์ ์ ˆํžˆ ์ถ”๊ฐ€ํ•ด OAuth ๊ธฐ๋Šฅ์„ ์—ฐ๋™ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋ฌธ์ œ ์—†์–ด ๋ณด์ž…๋‹ˆ๋‹ค.

settings.gradle.kts (2)

21-21: Kakao SDK์šฉ Maven ์ €์žฅ์†Œ ์ถ”๊ฐ€
maven(url = "https://devrepo.kakao.com/nexus/content/groups/public/")๋ฅผ dependencyResolutionManagement์— ์ถ”๊ฐ€ํ•ด SDK๋ฅผ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ฐ€์ ธ์˜ฌ ์ˆ˜ ์žˆ๋„๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค.


41-41: OAuth ๋ชจ๋“ˆ ํฌํ•จ ์ฒ˜๋ฆฌ
include(":feature:oauth") ๋ฅผ ๋ฃจํŠธ ํ”„๋กœ์ ํŠธ์— ์ถ”๊ฐ€ํ•ด OAuth ๋ชจ๋“ˆ์„ ๋นŒ๋“œ ๋Œ€์ƒ์— ํฌํ•จ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค.

core/ui/src/main/java/com/teamsolply/solply/ui/lifecycle/LaunchedEffectWithLifecycle.kt (2)

3-10: ํ•„์š”ํ•œ ๋ผ์ดํ”„์‚ฌ์ดํด ๋ฐ Compose ์ž„ํฌํŠธ ํ™•์ธ
LaunchedEffect, LocalLifecycleOwner, repeatOnLifecycle ๋“ฑ ํ•„์š”ํ•œ ์ž„ํฌํŠธ๊ฐ€ ๋ชจ๋‘ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.


19-24: repeatOnLifecycle ๋‚ด๋ถ€ ๋กœ์ง ์•ˆ์ „์„ฑ ๊ฒ€ํ† 
repeatOnLifecycle ๋ธ”๋ก์—์„œ action()์„ ํ˜ธ์ถœํ•ด ๋ผ์ดํ”„์‚ฌ์ดํด ์ƒํƒœ ๋ณ€ํ™”์— ๋”ฐ๋ผ ์•ˆ์ „ํ•˜๊ฒŒ ์ฝ”๋ฃจํ‹ด์„ ์žฌ์‹œ์ž‘ํ•˜๋„๋ก ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

feature/oauth/.gitignore (1)

1-1: ๋นŒ๋“œ ์•„ํ‹ฐํŒฉํŠธ ignore ์„ค์ •
/build ๋””๋ ‰ํ† ๋ฆฌ๋ฅผ ๋ฌด์‹œํ•ด ๋ชจ๋“ˆ๋ณ„ ๋นŒ๋“œ ์‚ฐ์ถœ๋ฌผ์ด ์ปค๋ฐ‹๋˜์ง€ ์•Š๋„๋ก ํ–ˆ์Šต๋‹ˆ๋‹ค.

feature/main/build.gradle.kts (1)

10-10: OAuth ๋ชจ๋“ˆ ์˜์กด์„ฑ ์ถ”๊ฐ€
feature/main ๋ชจ๋“ˆ์— projects.feature.oauth ์˜์กด์„ฑ์„ ์ถ”๊ฐ€ํ•ด OAuth ๊ธฐ๋Šฅ์„ ํ†ตํ•ฉํ–ˆ์Šต๋‹ˆ๋‹ค.

feature/oauth/src/main/AndroidManifest.xml (1)

1-4: ์ตœ์†Œํ•œ์˜ ๋งค๋‹ˆํŽ˜์ŠคํŠธ ๊ตฌ์„ฑ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

OAuth ํ”ผ์ณ ๋ชจ๋“ˆ์˜ ๋งค๋‹ˆํŽ˜์ŠคํŠธ๊ฐ€ ์ตœ์†Œํ•œ์œผ๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์œผ๋ฉฐ, ์ด๋Š” ํ”ผ์ณ ๋ชจ๋“ˆ์˜ ๋ชจ๋ฒ” ์‚ฌ๋ก€์— ๋”ฐ๋ฅธ ์˜ฌ๋ฐ”๋ฅธ ์ ‘๊ทผ์ž…๋‹ˆ๋‹ค. OAuth ๊ด€๋ จ Activity ๋ฐ ๊ถŒํ•œ์€ ์•ฑ ๋ ˆ๋ฒจ ๋งค๋‹ˆํŽ˜์ŠคํŠธ์—์„œ ์ฒ˜๋ฆฌ๋˜๋ฏ€๋กœ ์ด ๊ตฌ์„ฑ์ด ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.

feature/oauth/build.gradle.kts (1)

1-11: ๋นŒ๋“œ ๊ตฌ์„ฑ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์„ค์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

OAuth ํ”ผ์ณ ๋ชจ๋“ˆ์˜ ๋นŒ๋“œ ๊ตฌ์„ฑ์ด ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค:

  • solply.feature ํ”Œ๋Ÿฌ๊ทธ์ธ ์ ์šฉ
  • ์ผ๊ด€๋œ ๋„ค์ž„์ŠคํŽ˜์ด์Šค ๋ช…๋ช… ๊ทœ์น™
  • ์นด์นด์˜ค ๋กœ๊ทธ์ธ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์˜์กด์„ฑ ์ถ”๊ฐ€

๋ชจ๋“  ์„ค์ •์ด Android ๋ชจ๋“ˆ ๋ชจ๋ฒ” ์‚ฌ๋ก€๋ฅผ ๋”ฐ๋ฅด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

app/src/main/java/com/teamsolply/solply/SolplyApplication.kt (2)

4-5: ์นด์นด์˜ค SDK ์ดˆ๊ธฐํ™”๋ฅผ ์œ„ํ•œ import๊ฐ€ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์นด์นด์˜ค SDK ์ดˆ๊ธฐํ™”์— ํ•„์š”ํ•œ ํด๋ž˜์Šค๋“ค์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ import๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


12-13: ์นด์นด์˜ค SDK ์ดˆ๊ธฐํ™”๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Application์˜ onCreate()์—์„œ ์นด์นด์˜ค SDK๋ฅผ ์ดˆ๊ธฐํ™”ํ•˜๋Š” ๊ฒƒ์ด ์ ์ ˆํ•œ ์œ„์น˜์ž…๋‹ˆ๋‹ค. ๋นŒ๋“œ ๊ตฌ์„ฑ์—์„œ ๋„ค์ดํ‹ฐ๋ธŒ ํ‚ค๋ฅผ ๊ฐ€์ ธ์™€ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ์‹๋„ ๋ณด์•ˆ์ƒ ์•ˆ์ „ํ•˜๊ณ  ๊ตฌ์„ฑ ๊ฐ€๋Šฅํ•œ ์ ‘๊ทผ ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

core/common/src/main/java/com/teamsolply/solply/common/buildconfig/BuildConfigFields.kt (1)

5-5: ์นด์นด์˜ค ๋„ค์ดํ‹ฐ๋ธŒ ํ‚ค ํ•„๋“œ๊ฐ€ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

kakaoNativeKey ํ•„๋“œ๊ฐ€ ๊ธฐ์กด ๋นŒ๋“œ ๊ตฌ์„ฑ ํ•„๋“œ๋“ค๊ณผ ์ผ๊ด€์„ฑ์„ ์œ ์ง€ํ•˜๋ฉฐ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค. String ํƒ€์ž…๊ณผ ๋ช…๋ช… ๊ทœ์น™์ด ์˜ฌ๋ฐ”๋ฅด๋ฉฐ, ๋นŒ๋“œ ๊ตฌ์„ฑ ์‹œ์Šคํ…œ์„ ํ†ตํ•œ ์นด์นด์˜ค SDK ์—ฐ๋™์„ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

feature/main/src/main/java/com/teamsolply/solply/main/MainScreen.kt (2)

17-17: OAuth ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ทธ๋ž˜ํ”„ import๊ฐ€ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

OAuth ํ”ผ์ณ ๋ชจ๋“ˆ์˜ ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ทธ๋ž˜ํ”„๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•œ import ๋ฌธ์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


37-37: OAuth ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ทธ๋ž˜ํ”„๊ฐ€ ์ ์ ˆํžˆ ํ†ตํ•ฉ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

NavHost์— OAuth ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ทธ๋ž˜ํ”„๊ฐ€ ์ถ”๊ฐ€๋˜์–ด ๊ธฐ์กด ํ™ˆ ๋„ค๋น„๊ฒŒ์ด์…˜๊ณผ ํ•จ๊ป˜ ๊ตฌ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. PaddingValues๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ „๋‹ฌ๋˜๊ณ  ์žˆ์œผ๋ฉฐ, Jetpack Compose ๋„ค๋น„๊ฒŒ์ด์…˜ ๋ชจ๋ฒ” ์‚ฌ๋ก€๋ฅผ ๋”ฐ๋ฅด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

feature/main/src/main/java/com/teamsolply/solply/main/MainNavigator.kt (2)

13-13: OAuth ๋„ค๋น„๊ฒŒ์ด์…˜ import๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ƒˆ๋กœ์šด OAuth ๊ธฐ๋Šฅ ๋ชจ๋“ˆ ์—ฐ๋™์„ ์œ„ํ•œ import๊ฐ€ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.


22-22: ์•ฑ ์‹œ์ž‘ ํ™”๋ฉด์ด OAuth๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์นด์นด์˜ค ๋กœ๊ทธ์ธ ๊ตฌํ˜„์— ๋”ฐ๋ผ ์•ฑ์˜ ์‹œ์ž‘ ๋Œ€์ƒ์ด OAuth ํ™”๋ฉด์œผ๋กœ ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ์ด๋Š” PR ๋ชฉํ‘œ์™€ ์ผ์น˜ํ•˜๋ฉฐ ์ ์ ˆํ•œ ๋ณ€๊ฒฝ์‚ฌํ•ญ์ž…๋‹ˆ๋‹ค.

build-logic/convention/src/main/java/AndroidApplicationPlugin.kt (1)

2-2: gradleLocalProperties import๊ฐ€ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๋งค๋‹ˆํŽ˜์ŠคํŠธ ํ”Œ๋ ˆ์ด์Šคํ™€๋” ์„ค์ •์„ ์œ„ํ•œ import๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

core/buildconfig/src/main/java/com/teamsolply/solply/buildconfig/impl/BuildConfigFieldsProviderImpl.kt (2)

3-4: BuildConfig import๊ฐ€ ์ ์ ˆํžˆ ๊ฐœ์„ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ํ•„์š”ํ•œ ์ƒ์ˆ˜๋“ค๋งŒ ์„ ํƒ์ ์œผ๋กœ importํ•˜์—ฌ ๊น”๋”ํ•œ ์ฝ”๋“œ ๊ตฌ์กฐ๋ฅผ ์œ ์ง€ํ–ˆ์Šต๋‹ˆ๋‹ค.


12-14: ์นด์นด์˜ค ๋„ค์ดํ‹ฐ๋ธŒ ํ‚ค ํ•„๋“œ๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ์ถ”๊ฐ€๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

BuildConfigFields์— kakaoNativeKey ํ•„๋“œ๊ฐ€ ์ ์ ˆํžˆ ์ถ”๊ฐ€๋˜์–ด ๊ธฐ์กด ํŒจํ„ด๊ณผ ์ผ๊ด€์„ฑ์„ ์œ ์ง€ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

app/src/main/AndroidManifest.xml (1)

20-33: ์นด์นด์˜ค SDK OAuth Activity๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

AuthCodeHandlerActivity ์„ค์ •์ด ์นด์นด์˜ค OAuth ํ”Œ๋กœ์šฐ์— ํ•„์š”ํ•œ ๋ชจ๋“  ์š”์†Œ๋ฅผ ํฌํ•จํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค:

  • Intent filter๊ฐ€ VIEW ์•ก์…˜๊ณผ BROWSABLE ์นดํ…Œ๊ณ ๋ฆฌ๋กœ ์ ์ ˆํžˆ ์„ค์ •๋จ
  • ๋งค๋‹ˆํŽ˜์ŠคํŠธ ํ”Œ๋ ˆ์ด์Šคํ™€๋”๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋™์  ์Šคํ‚ค๋งˆ ๊ตฌ์„ฑ
  • exported="true"๋กœ ์™ธ๋ถ€ ์•ฑ์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•˜๋„๋ก ์„ค์ •

์ด๋Š” ์นด์นด์˜ค SDK ํ†ตํ•ฉ ๊ฐ€์ด๋“œ๋ผ์ธ์— ๋ถ€ํ•ฉํ•˜๋Š” ์˜ฌ๋ฐ”๋ฅธ ๊ตฌํ˜„์ž…๋‹ˆ๋‹ค.

feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthViewModel.kt (1)

7-15: LGTM! MVI ํŒจํ„ด์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ViewModel์ด BaseViewModel์„ ์ ์ ˆํžˆ ์ƒ์†ํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, Hilt๋ฅผ ํ†ตํ•œ ์˜์กด์„ฑ ์ฃผ์ž…๊ณผ ์ธํ…ํŠธ ์ฒ˜๋ฆฌ ๋กœ์ง์ด ๊น”๋”ํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthContract.kt (1)

11-17: ์ธํ…ํŠธ์™€ ์‚ฌ์ด๋“œ์ดํŽ™ํŠธ ์ •์˜๊ฐ€ ์ ์ ˆํ•ฉ๋‹ˆ๋‹ค.

OauthIntent์™€ OauthSideEffect๊ฐ€ sealed interface๋กœ ์ ์ ˆํžˆ ์ •์˜๋˜์–ด ์žˆ์œผ๋ฉฐ, ์นด์นด์˜ค ๋กœ๊ทธ์ธ ํ”Œ๋กœ์šฐ์— ๋งž๋Š” ํƒ€์ž… ์•ˆ์ „ํ•œ ๊ตฌ์กฐ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

feature/oauth/src/main/java/com/teamsolply/solply/oauth/navigation/OauthNavigation.kt (1)

12-30: LGTM! Compose Navigation ํŒจํ„ด์ด ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์ตœ์‹  Compose Navigation ํŒจํ„ด์„ ์‚ฌ์šฉํ•˜์—ฌ type-safe navigation์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค. @Serializable Route ๊ฐ์ฒด์™€ ํ™•์žฅ ํ•จ์ˆ˜๋“ค์ด ์ ์ ˆํžˆ ์ •์˜๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthScreen.kt (1)

58-75: UI ๊ตฌ์„ฑ์ด ๊ฐ„๋‹จํ•˜๊ณ  ๋ช…ํ™•ํ•ฉ๋‹ˆ๋‹ค.

OAuth ํ™”๋ฉด์˜ UI๊ฐ€ ๊ฐ„๋‹จํ•˜๊ณ  ํ…Œ์ŠคํŠธ ๋ชฉ์ ์— ์ ํ•ฉํ•˜๊ฒŒ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. customClickable ํ™•์žฅ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ ‘๊ทผ์„ฑ๋„ ๊ณ ๋ ค๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

Comment on lines +17 to +21
buildConfigField(
"String",
"KAKAO_NATIVE_KEY",
gradleLocalProperties(rootDir, providers).getProperty("kakao.native.key")
)
Copy link

Choose a reason for hiding this comment

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

๐Ÿ› ๏ธ Refactor suggestion

์นด์นด์˜ค ๋„ค์ดํ‹ฐ๋ธŒ ํ‚ค ๋นŒ๋“œ ์„ค์ •์— null ์•ˆ์ „์„ฑ ๊ณ ๋ ค๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

๋กœ์ปฌ properties์—์„œ "kakao.native.key" ์†์„ฑ์„ ์ฝ์–ด์˜ค๋Š”๋ฐ, ํ•ด๋‹น ์†์„ฑ์ด ์กด์žฌํ•˜์ง€ ์•Š์„ ๊ฒฝ์šฐ ๋นŒ๋“œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ธฐ๋ณธ๊ฐ’์„ ์ œ๊ณตํ•˜๋Š” ๊ฒƒ์„ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”:

            buildConfigField(
                "String",
                "KAKAO_NATIVE_KEY",
-               gradleLocalProperties(rootDir, providers).getProperty("kakao.native.key")
+               "\"${gradleLocalProperties(rootDir, providers).getProperty("kakao.native.key") ?: ""}\""
            )
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
buildConfigField(
"String",
"KAKAO_NATIVE_KEY",
gradleLocalProperties(rootDir, providers).getProperty("kakao.native.key")
)
buildConfigField(
"String",
"KAKAO_NATIVE_KEY",
- gradleLocalProperties(rootDir, providers).getProperty("kakao.native.key")
+ "\"${gradleLocalProperties(rootDir, providers).getProperty("kakao.native.key") ?: ""}\""
)
๐Ÿค– Prompt for AI Agents
In
build-logic/convention/src/main/java/com/teamsolply/solply/convention/BuildConfig.kt
around lines 17 to 21, the code reads the "kakao.native.key" property without
null safety, which can cause build errors if the property is missing. Modify the
code to provide a default value when the property is not found, ensuring null
safety and preventing build failures. Use a safe call or an Elvis operator to
supply a fallback string like an empty string or a placeholder.

Comment on lines +7 to +9
data class OauthState(
val g: String = ""
) : UiState
Copy link

Choose a reason for hiding this comment

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

๐Ÿ› ๏ธ Refactor suggestion

ํ”Œ๋ ˆ์ด์Šคํ™€๋” ํ”„๋กœํผํ‹ฐ๋ฅผ ์ œ๊ฑฐํ•˜๊ฑฐ๋‚˜ ์˜๋ฏธ์žˆ๋Š” ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•˜์„ธ์š”.

OauthState์˜ g ํ”„๋กœํผํ‹ฐ๋Š” ์˜๋ฏธ๊ฐ€ ๋ถˆ๋ถ„๋ช…ํ•˜๋ฉฐ ์‹ค์ œ๋กœ ์‚ฌ์šฉ๋˜์ง€ ์•Š๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. ๋ถˆํ•„์š”ํ•œ ํ”„๋กœํผํ‹ฐ๋ฅผ ์ œ๊ฑฐํ•˜๊ฑฐ๋‚˜ ์‹ค์ œ ํ•„์š”ํ•œ ์ƒํƒœ๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ์˜๋ฏธ์žˆ๋Š” ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

 data class OauthState(
-    val g: String = ""
+    // ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์˜๋ฏธ์žˆ๋Š” ์ƒํƒœ ํ”„๋กœํผํ‹ฐ ์ถ”๊ฐ€
 ) : UiState
๐Ÿค– Prompt for AI Agents
In
feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthContract.kt
around lines 7 to 9, the OauthState data class has a property named 'g' which is
unclear and likely unused. Remove this placeholder property if it is
unnecessary, or rename it to a meaningful name that accurately represents the
state it holds to improve code clarity and maintainability.

Comment on lines +40 to +47
Log.d(
"asdasdasd",
"accessToken: ${accessToken}\n refreshToken: $refreshToken"
)
},
onFailure = { error ->
Log.d("asdasdasd", error.toString())
}
Copy link

Choose a reason for hiding this comment

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

๐Ÿ› ๏ธ Refactor suggestion

๋””๋ฒ„๊ทธ ๋กœ๊ทธ ํƒœ๊ทธ๋ฅผ ์˜๋ฏธ์žˆ๋Š” ์ด๋ฆ„์œผ๋กœ ๋ณ€๊ฒฝํ•˜์„ธ์š”.

"asdasdasd" ๊ฐ™์€ ์ž„์‹œ ๋กœ๊ทธ ํƒœ๊ทธ๋Š” ํ”„๋กœ๋•์…˜ ์ฝ”๋“œ์— ์ ํ•ฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์˜๋ฏธ์žˆ๋Š” ํƒœ๊ทธ๋ช…์„ ์‚ฌ์šฉํ•˜๊ณ , ๋ฏผ๊ฐํ•œ ํ† ํฐ ์ •๋ณด ๋กœ๊น…์„ ๊ณ ๋ คํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

                        Log.d(
-                            "asdasdasd",
+                            "OAUTH_LOGIN",
                            "accessToken: ${accessToken}\n refreshToken: $refreshToken"
                        )
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Log.d(
"asdasdasd",
"accessToken: ${accessToken}\n refreshToken: $refreshToken"
)
},
onFailure = { error ->
Log.d("asdasdasd", error.toString())
}
Log.d(
"OAUTH_LOGIN",
"accessToken: ${accessToken}\n refreshToken: $refreshToken"
)
},
onFailure = { error ->
Log.d("asdasdasd", error.toString())
}
๐Ÿค– Prompt for AI Agents
In
feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthScreen.kt
around lines 40 to 47, replace the placeholder log tag "asdasdasd" with a
meaningful and descriptive tag relevant to the OAuth screen or authentication
process. Additionally, remove or mask sensitive token information like
accessToken and refreshToken from the logs to avoid exposing confidential data.

Comment on lines +77 to +122
fun startKakaoLogin(
context: Context,
onSuccess: (accessToken: String, refreshToken: String?) -> Unit = { _, _ -> },
onFailure: (Throwable) -> Unit = {}
) {
val activity = context as? Activity ?: return

if (UserApiClient.instance.isKakaoTalkLoginAvailable(context)) {
UserApiClient.instance.loginWithKakaoTalk(activity) { token, error ->
if (error != null) {
if (error is ClientError && error.reason == ClientErrorCause.Cancelled) {
Toast.makeText(context, "๋กœ๊ทธ์ธ ์ทจ์†Œ", Toast.LENGTH_SHORT).show()
return@loginWithKakaoTalk
}
UserApiClient.instance.loginWithKakaoAccount(context) { accountToken, accountError ->
if (accountError != null) {
onFailure(accountError)
Toast.makeText(
context,
"๋กœ๊ทธ์ธ ์‹คํŒจ: ${accountError.message}",
Toast.LENGTH_SHORT
).show()
return@loginWithKakaoAccount
}
if (accountToken != null) {
onSuccess(accountToken.accessToken, accountToken.refreshToken)
}
}
} else if (token != null) {
onSuccess(token.accessToken, token.refreshToken)
}
}
} else {
UserApiClient.instance.loginWithKakaoAccount(context) { token, error ->
Log.d("KAKAO_LOGIN", "loginWithKakaoAccount called. token=$token, error=$error")
if (error != null) {
onFailure(error)
Toast.makeText(context, "๋กœ๊ทธ์ธ ์‹คํŒจ: ${error.message}", Toast.LENGTH_SHORT).show()
return@loginWithKakaoAccount
}
if (token != null) {
onSuccess(token.accessToken, token.refreshToken)
}
}
}
}
Copy link

Choose a reason for hiding this comment

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

๐Ÿ› ๏ธ Refactor suggestion

์นด์นด์˜ค ๋กœ๊ทธ์ธ ๊ตฌํ˜„์ด ์ž˜ ๋˜์–ด ์žˆ์ง€๋งŒ ๊ฐœ์„  ์‚ฌํ•ญ์ด ์žˆ์Šต๋‹ˆ๋‹ค.

์นด์นด์˜คํ†ก ์•ฑ ๋กœ๊ทธ์ธ๊ณผ ๊ณ„์ • ๋กœ๊ทธ์ธ์˜ ๋ถ„๊ธฐ ์ฒ˜๋ฆฌ๊ฐ€ ์˜ฌ๋ฐ”๋ฅด๊ฒŒ ๊ตฌํ˜„๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ ๋‹ค์Œ ๊ฐœ์„ ์‚ฌํ•ญ์„ ๊ณ ๋ คํ•ด๋ณด์„ธ์š”:

  1. ๋ฌธ์ž์—ด ํ•˜๋“œ์ฝ”๋”ฉ: ํ† ์ŠคํŠธ ๋ฉ”์‹œ์ง€๋“ค์ด ํ•˜๋“œ์ฝ”๋”ฉ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค
  2. ๋กœ๊ทธ ์ผ๊ด€์„ฑ: ์ผ๋ถ€ ๋กœ๊ทธ๋งŒ ๊ตฌ์ฒด์ ์ธ ํƒœ๊ทธ๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค
  3. ํ† ํฐ ๋ณด์•ˆ: ์•ก์„ธ์Šค ํ† ํฐ์„ ๋กœ๊ทธ์— ์ถœ๋ ฅํ•˜๋Š” ๊ฒƒ์€ ๋ณด์•ˆ์ƒ ์œ„ํ—˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค
                if (error is ClientError && error.reason == ClientErrorCause.Cancelled) {
-                    Toast.makeText(context, "๋กœ๊ทธ์ธ ์ทจ์†Œ", Toast.LENGTH_SHORT).show()
+                    Toast.makeText(context, context.getString(R.string.login_cancelled), Toast.LENGTH_SHORT).show()
                    return@loginWithKakaoTalk
                }
-            Log.d("KAKAO_LOGIN", "loginWithKakaoAccount called. token=$token, error=$error")
+            Log.d("OAUTH_LOGIN", "loginWithKakaoAccount called")
๐Ÿ“ Committable suggestion

โ€ผ๏ธ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
fun startKakaoLogin(
context: Context,
onSuccess: (accessToken: String, refreshToken: String?) -> Unit = { _, _ -> },
onFailure: (Throwable) -> Unit = {}
) {
val activity = context as? Activity ?: return
if (UserApiClient.instance.isKakaoTalkLoginAvailable(context)) {
UserApiClient.instance.loginWithKakaoTalk(activity) { token, error ->
if (error != null) {
if (error is ClientError && error.reason == ClientErrorCause.Cancelled) {
Toast.makeText(context, "๋กœ๊ทธ์ธ ์ทจ์†Œ", Toast.LENGTH_SHORT).show()
return@loginWithKakaoTalk
}
UserApiClient.instance.loginWithKakaoAccount(context) { accountToken, accountError ->
if (accountError != null) {
onFailure(accountError)
Toast.makeText(
context,
"๋กœ๊ทธ์ธ ์‹คํŒจ: ${accountError.message}",
Toast.LENGTH_SHORT
).show()
return@loginWithKakaoAccount
}
if (accountToken != null) {
onSuccess(accountToken.accessToken, accountToken.refreshToken)
}
}
} else if (token != null) {
onSuccess(token.accessToken, token.refreshToken)
}
}
} else {
UserApiClient.instance.loginWithKakaoAccount(context) { token, error ->
Log.d("KAKAO_LOGIN", "loginWithKakaoAccount called. token=$token, error=$error")
if (error != null) {
onFailure(error)
Toast.makeText(context, "๋กœ๊ทธ์ธ ์‹คํŒจ: ${error.message}", Toast.LENGTH_SHORT).show()
return@loginWithKakaoAccount
}
if (token != null) {
onSuccess(token.accessToken, token.refreshToken)
}
}
}
}
fun startKakaoLogin(
context: Context,
onSuccess: (accessToken: String, refreshToken: String?) -> Unit = { _, _ -> },
onFailure: (Throwable) -> Unit = {}
) {
val activity = context as? Activity ?: return
if (UserApiClient.instance.isKakaoTalkLoginAvailable(context)) {
UserApiClient.instance.loginWithKakaoTalk(activity) { token, error ->
if (error != null) {
if (error is ClientError && error.reason == ClientErrorCause.Cancelled) {
Toast.makeText(
context,
context.getString(R.string.login_cancelled),
Toast.LENGTH_SHORT
).show()
return@loginWithKakaoTalk
}
UserApiClient.instance.loginWithKakaoAccount(context) { accountToken, accountError ->
if (accountError != null) {
onFailure(accountError)
Toast.makeText(
context,
"๋กœ๊ทธ์ธ ์‹คํŒจ: ${accountError.message}",
Toast.LENGTH_SHORT
).show()
return@loginWithKakaoAccount
}
if (accountToken != null) {
onSuccess(accountToken.accessToken, accountToken.refreshToken)
}
}
} else if (token != null) {
onSuccess(token.accessToken, token.refreshToken)
}
}
} else {
UserApiClient.instance.loginWithKakaoAccount(context) { token, error ->
Log.d("OAUTH_LOGIN", "loginWithKakaoAccount called")
if (error != null) {
onFailure(error)
Toast.makeText(
context,
"๋กœ๊ทธ์ธ ์‹คํŒจ: ${error.message}",
Toast.LENGTH_SHORT
).show()
return@loginWithKakaoAccount
}
if (token != null) {
onSuccess(token.accessToken, token.refreshToken)
}
}
}
}
๐Ÿค– Prompt for AI Agents
In
feature/oauth/src/main/java/com/teamsolply/solply/oauth/presentation/OauthScreen.kt
between lines 77 and 122, the toast messages are hardcoded in Korean and should
be moved to string resources for localization support. Also, ensure all log
statements use a consistent and specific tag instead of generic ones. Finally,
remove or avoid logging access tokens or any sensitive token information to
prevent security risks.

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: 1

๐Ÿงน Nitpick comments (1)
.github/workflows/android-pull-request-ci.yml (1)

25-25: ๋„ค์ด๋ฐ ์ผ๊ด€์„ฑ: step ์ด๋ฆ„๊ณผ ์†์„ฑ๋ช… ํ†ต์ผ
ํ˜„์žฌ step ์ด๋ฆ„์—์„œ kakaoNativeKey๋ผ๊ณ  ํ‘œ๊ธฐ๋˜์—ˆ์œผ๋‚˜, ์‹ค์ œ๋กœ ์ƒ์„ฑ๋˜๋Š” ์†์„ฑ์€ kakao.native.key์ž…๋‹ˆ๋‹ค. step ์ด๋ฆ„์„ ์†์„ฑ๋ช…๊ณผ ์ผ์น˜์‹œํ‚ค๊ฑฐ๋‚˜(์˜ˆ: kakao.native.key), ์†์„ฑ๋ช…์„ camelCase๋กœ ๋ณ€๊ฒฝํ•ด ๋„ค์ด๋ฐ์„ ํ†ต์ผํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

๐Ÿ“œ Review details

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

๐Ÿ“ฅ Commits

Reviewing files that changed from the base of the PR and between fdb43bf and e49d0ff.

๐Ÿ“’ Files selected for processing (2)
  • .github/workflows/android-pull-request-ci.yml (1 hunks)
  • build-logic/convention/src/main/java/AndroidApplicationPlugin.kt (2 hunks)
๐Ÿšง Files skipped from review as they are similar to previous changes (1)
  • build-logic/convention/src/main/java/AndroidApplicationPlugin.kt
โฐ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build

@leeseokchan00 leeseokchan00 merged commit 4ec8ef0 into develop Jun 23, 2025
2 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Jun 25, 2025
@coderabbitai coderabbitai bot mentioned this pull request Nov 21, 2025
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.

[Feature] ์นด์นด์˜ค ๋กœ๊ทธ์ธ SDK

2 participants