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/tgyuu/#141 #145

Merged
merged 23 commits into from
Mar 3, 2024
Merged

Feature/tgyuu/#141 #145

merged 23 commits into from
Mar 3, 2024

Conversation

tgyuuAn
Copy link
Member

@tgyuuAn tgyuuAn commented Feb 27, 2024

1. ๐Ÿ“„ ๊ด€๋ จ๋œ ์ด์Šˆ ๋ฐ ์†Œ๊ฐœ

2. ๐Ÿ”ฅ ๋ณ€๊ฒฝ๋œ ์ 

-์ตœ์ดˆ ํšŒ์›๊ฐ€์ž… ์‹œ, ์ •๋ณด๋ฅผ ์ž…๋ ฅํ•œ ๋’ค WAPํšŒ์› ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅ ์„ฑ๊ณตํ•ด์•ผ๋งŒ ํšŒ์› ๊ฐ€์ž…์ด ์™„๋ฃŒ ๋œ๋‹ค.

3. โœ… ๊ผญ ํ™•์ธํ•ด์คฌ์œผ๋ฉด ํ•˜๋Š” ๋ถ€๋ถ„

์ƒˆ๋ฒฝ์— ๊ธ‰ํ•˜๊ฒŒ ์ฝ”๋“œ๋ฅผ ์งœ๋Š๋ผ๊ณ  ๋„ค์ด๋ฐ์ด ์ข€ ํ—ˆ์ ‘ํ•œ๊ฒŒ ์žˆ์„ ์ˆ˜๋„ ์žˆ์–ด์š”. ํ™•์ธ ๋ฐ”๋ž๋‹ˆ๋‹ค!

๊ทธ๋ฆฌ๊ณ  Manager Codeํ™•์ธํ•˜๋Š” ๋กœ์ง์ด GetManageMentCode๋ผ๊ณ  ๋˜์–ด์žˆ๋˜๋ฐ, ์‹ค์ œ ๋กœ์ง์€ ๋น„๊ตํ•˜๋Š” ๋กœ์ง์—๋‹ค๊ฐ€ Boolean์„ ๋ฐ›๋”๋ผ๊ณ ์š”. ์ฒดํฌ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค!!

// com.wap.wapp.core.network.source.management.ManagementDataSourceImpl..

    override suspend fun getManagementCode(code: String): Result<Boolean> = runCatching {
        val result = firebaseFirestore.collection(CODES_COLLECTION)
            .whereEqualTo("management", code)
            .get()
            .await()

        result.isEmpty.not()
    }

4. ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท(์„ ํƒ)

bandicam2024-02-2804-43-11-862-ezgif com-crop

5. ๐Ÿ’ก์•Œ๊ฒŒ๋œ ํ˜น์€ ๊ถ๊ธˆํ•œ ์‚ฌํ•ญ๋“ค

Android Compose Navigatoin ์ด๋™ ์‹œ, ๋ฐฑ์Šคํƒ์„ ๋ชจ๋‘ ์ง€์šฐ๊ณ  ์‹ถ์„ ๋•,

                navController.navigateToNotice(
                    navOptions { popUpTo(navController.graph.id) { inclusive = true } },
                )

์„ navOptions์œผ๋กœ ๋„ฃ์–ด์ค€๋‹ค!!!

@tgyuuAn tgyuuAn added ๐ŸŒฑ๊ธฐ๋Šฅ๐ŸŒฑ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋‘๋‘๋‘ฅ์žฅ! ๐Ÿงฉํƒœ๊ทœ๐Ÿงฉ ENFP ์•ˆํƒœ๊ทœ 24์„ธ labels Feb 27, 2024
@tgyuuAn tgyuuAn self-assigned this Feb 27, 2024
@tgyuuAn tgyuuAn marked this pull request as ready for review February 27, 2024 19:46
@tgyuuAn tgyuuAn added the ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. label Feb 27, 2024
Copy link
Member

@jeongjaino jeongjaino left a comment

Choose a reason for hiding this comment

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

ํƒœ๊ทœ์ƒ ๋Šฆ์–ด์„œ ์ฃ„์†กํ•ด์š” ํž๊ตฌ

๋ถ€์‚ฐ์— ๋‚ด๋ ค์˜ค๋Š”๋ฐ ์‹œ๊ฐ„๋„ ๋งŽ์ด ๊ฑธ๋ฆฌ๊ตฌ ,,, (์ฃผ์ €๋ฆฌ์ฃผ์ €๋ฆฌ ํ•‘๊ณ„)

๋ช‡๊ฐœ ์ฝ”๋ฉ˜ํŠธ ๋‚จ๊ฒจ๋ดฃ์–ด์šฉ ํžˆํžˆ
์˜๊ฒฌ ๊ธฐ๋‹ค๋ฆด๊ฒŒ์šฉ !

@@ -0,0 +1,5 @@
package com.wap.wapp.core.data.repository.auth

interface SignUpRepository {
Copy link
Member

Choose a reason for hiding this comment

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

ํƒœ๊ทœ์ƒ ์•„๋งˆ

์žฌ๊ฐ€ SignInRepository๋ฅผ ๋”ฐ๋กœ ๋งŒ๋“ค์–ด๋†”์„œ ๊ทธ๊ฑฐ๋ณด๊ณ  ์ƒˆ๋กญ๊ฒŒ ํด๋ž˜์Šค๋ฅผ ๋”ฐ๋กœ ๋งŒ๋“œ์‹ ๊ฑธ๋กœ ์ถ”์ธก์ด ๋˜๋Š”๋ฐ์šฉ ,,!!

์ œ๊ฐ€ AuthRepository๊ฐ€ ์žˆ์Œ์—๋„ ๋”ฐ๋กœ SigninRepo๋ฅผ ๊ตฌ์„ฑํ•œ๊ฑด ๋กœ๊ทธ์ธ ๋™์ž‘์€ Fragment์œ„์—์„œ ๋™์ž‘ํ•ด์„œ ActivityScoped๋กœ ์ฃผ์ž…ํ•ด์„œ ๋”ฐ๋กœ ๊ตฌ์„ฑํ•ด๋†จ์—ˆ์–ด์š” !!

๊ทธ๋ž˜์„œ ๋กœ๊ทธ์ธ์„ ์ œ์™ธํ•œ ๋‚˜๋จธ์ง€ ์ธ์ฆ ๊ด€๋ จ ๋กœ์ง์€ authRepo๋กœ ํ†ต์ผํ•ด์„œ ๊ตฌ์„ฑํ–ˆ์—ˆ์–ด์š” !

์—ฌ๊ธฐ๊นŒ์ง€๊ฐ€ ํžˆ์Šคํ† ๋ฆฌ๊ตฌ ๊ทธ๋ž˜์„œ ํ•˜๊ณ ์‹ถ์€ ๋ง์€

์‚ฌ์‹ค ๋”ฐ๋กœ ํด๋ž˜์Šค๋ฅผ ํŒŒ๋„ ๊ด€๊ณ„๋Š” ์—†๋Š”๋ฐ,
AuthRepo๋กœ ์ฝ”๋“œ์ธ์ฆ ๋ฉ”์†Œ๋“œ๋ฅผ ๋„ฃ๋Š” ๊ฒƒ๋„ ๊ดœ์ฐฎ์„ ๊ฒƒ ๊ฐ™์•„์„œ์š” !

ํƒœ๊ทœ์ƒ์˜ ์˜๊ฒฌ์ด ๊ถ๊ธˆํ•ฉ๋‹ˆ๋‹ค ใ…Žใ…Ž

Copy link
Member Author

Choose a reason for hiding this comment

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

@jeongjaino ์˜คํ˜ธ ์ •ํ™•ํ•ฉ๋‹ˆ๋‹ค.

AuthRepository์•ˆ์— ์ฐจ๊ณก์ฐจ๊ณก ๋„ฃ์–ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค

Copy link
Member Author

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ ์ž‘์—… ์™„๋ฃŒํ–ˆ์”๋‹ˆ๋‹ค!

dataSource์ชฝ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€๋ผ์„œ AuthDataSource๋กœ ๋„ฃ์—ˆ์–ด์š”!

class SignUpRepositoryImpl @Inject constructor(
private val signUpDataSource: SignUpDataSource,
) : SignUpRepository {
override suspend fun validationWapCode(code: String): Result<Boolean> =
Copy link
Member

Choose a reason for hiding this comment

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

๋ฉ”์†Œ๋“œ ๋„ค์ด๋ฐ์ด ๋ช…์‚ฌ์‹œ์ž‘๋ณด๋‹ค๋Š” ๋™์‚ฌ๋กœ ์‹œ์ž‘ํ•˜๋Š”๊ฒŒ ๋‚ซ์ง€ ์•Š์„๊นŒ์š” !?

๊ทธ๋ฆฌ๊ตฌ wapCode๋„ ์ข‹์€ ๊ฒƒ ๊ฐ™๊ธดํ•œ๋ฐ (์™‘ ๋™์•„๋ฆฌ๋ฅผ ์ธ์ฆํ•˜๋Š”๊ฑฐ๋‹ˆ๊นŒ)
์ €๋Š” ๋™์•„๋ฆฌ ๊ตฌ์„ฑ์› ์ธ์ฆ์ฝ”๋“œ๋ผ๋Š” ์˜๋ฏธ๋กœ memeberCode ์ถ”์ฒœ๋“œ๋ฆฝ๋‹ˆ๋‹ค ํžˆํžˆ

Copy link
Member Author

Choose a reason for hiding this comment

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

@jeongjaino ํ—‰ ์™œ validation์œผ๋กœ ๋˜์–ด์žˆ์„๊นŒ์š”... ์ˆ˜์ •ํ•ด๋†“๊ฒ ์”๋‹ˆ๋‹ค!

Copy link
Member Author

Choose a reason for hiding this comment

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

์ž‘์—… ์™„๋ฃŒ ํ–ˆ์”๋‹ˆ๋‹ค!

_signUpEventFlow.emit(SignUpEvent.ValidationSuccess)
}

fun postUserProfile() = viewModelScope.launch {
Copy link
Member

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.

@jeongjaino ๋งž์”๋‹ˆ๋‹ค ์ง„ํ˜ธ์ƒ ์ˆ˜์ •ํ•ด๋†“๊ฒ ์”๋‹ˆ๋‹ค!!

@jeongjaino jeongjaino added โœ๏ธ์ˆ˜์ • ์š”์ฒญโœ๏ธ ์ฝ”๋“œ ๋ฆฌ๋ทฐํ›„ ์ฝ”๋“œ ์ˆ˜์ • ์š”์ฒญ and removed ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. labels Mar 1, 2024
@tgyuuAn
Copy link
Member Author

tgyuuAn commented Mar 3, 2024

@jeongjaino ์ˆ˜์ • ์™„๋ฃŒ ํ–ˆ์Šต๋‹ˆ๋‹ค!!!!

๊ผญ ํ™•์ธํ•ด์คฌ์œผ๋ฉด ํ•˜๋Š” ๋ถ€๋ถ„ << ์ด๊ฑฐ ์ฒดํฌ ๋ถ€ํƒ๋“œ๋ ค์š”!

@tgyuuAn tgyuuAn added ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. ๐ŸŒŸ๋จธ์ง€ ํ•ด์ฃผ์„ธ์š”๐ŸŒŸ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋œ ๋’ค PR์„ ์˜ฌ๋ฆฐ์‚ฌ๋žŒ์ด Merge๋ฅผ ํ•˜๋ฉด ๋˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. and removed โœ๏ธ์ˆ˜์ • ์š”์ฒญโœ๏ธ ์ฝ”๋“œ ๋ฆฌ๋ทฐํ›„ ์ฝ”๋“œ ์ˆ˜์ • ์š”์ฒญ ๐Ÿ”ฅ๋ฆฌ๋ทฐ ๊ธฐ๋‹ค๋ฆฌ๋Š” ์ค‘๐Ÿ”ฅ PR์„ ์˜ฌ๋ฆฌ๊ณ  ์ฝ”๋“œ๋ฆฌ๋ทฐ๋ฅผ ๊ธฐ๋‹ค๋ฆฌ๊ณ  ์žˆ๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค. labels Mar 3, 2024
@tgyuuAn tgyuuAn merged commit e64ac5f into develop Mar 3, 2024
@tgyuuAn tgyuuAn deleted the feature/tgyuu/#141 branch March 8, 2024 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
๐ŸŒŸ๋จธ์ง€ ํ•ด์ฃผ์„ธ์š”๐ŸŒŸ ์ฝ”๋“œ ๋ฆฌ๋ทฐ๊ฐ€ ์™„๋ฃŒ๋œ ๋’ค PR์„ ์˜ฌ๋ฆฐ์‚ฌ๋žŒ์ด Merge๋ฅผ ํ•˜๋ฉด ๋˜๋Š” ๋‹จ๊ณ„์ž…๋‹ˆ๋‹ค. ๐ŸŒฑ๊ธฐ๋Šฅ๐ŸŒฑ ์ƒˆ๋กœ์šด ๊ธฐ๋Šฅ ๋‘๋‘๋‘ฅ์žฅ! ๐Ÿงฉํƒœ๊ทœ๐Ÿงฉ ENFP ์•ˆํƒœ๊ทœ 24์„ธ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE]: ํšŒ์› ์ตœ์ดˆ ๊ฐ€์ž… ์‹œ, WAP ํšŒ์› ์ธ์ฆ
2 participants