-
Notifications
You must be signed in to change notification settings - Fork 1
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/jaino/#35 #36
Conversation
fun Throwable.toSupportingText(): String { | ||
return when (this) { | ||
is UnknownHostException -> { | ||
"λ€νΈμν¬ μ°κ²°μ΄ μννμ§ μμ΅λλ€." | ||
} | ||
is FirebaseAuthException -> { | ||
this.toSupportingText() | ||
} | ||
is FirebaseFirestoreException -> { | ||
this.toSupportingText() | ||
} | ||
else -> { | ||
"μ μ μλ μ€λ₯κ° λ°μνμμ΅λλ€." | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ¬κΈ°μ μμΈ μ²λ¦¬λ₯Ό λ°κ³ μμκΎΌμ.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
λΉλΉλΉλΉλΉ
μ¬κΈ°μ μμΈ λ νΌλ°μ€ μμ΄μ©
@@ -1,4 +1,4 @@ | |||
package com.android.mediproject.core.ui.base | |||
package com.wap.wapp.core.commmon.base | |||
|
|||
import android.os.Bundle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
μ£μ‘ν©λλ€..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
νν μ½λ 리뷰 λ κ²μ¬νμ§ λͺ»ν μνμλ μ± μμ΄ μμ΅λλ€ νν
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
κ³ μνμ ¨μ΅λλ·. ..! ππ
1. π κ΄λ ¨λ μ΄μ λ° μκ°
#35 common λͺ¨λ 리λ€μ΄λ° + μμΈμ²λ¦¬ ꡬν
2. π₯λ³κ²½λ μ
utils + const + extension λͺ¨μ common module,
μμΈμ²λ¦¬ throwable to string extenstion ꡬννμ¬, μ€λ₯κ° λ°μνμ λ ν΄λΉ μμΈμ λ°λ₯Έ ν μ€νΈ λ ΈμΆ
3. πΈ μ€ν¬λ¦°μ·(μ ν)
4. π‘μκ²λ νΉμ κΆκΈν μ¬νλ€
Firebaseλ κ°κ° μμΈ FirebaseExceptionμ΄ μκ³ , μλ‘ μ²λ¦¬νλ λ°©λ²μ΄ λ€λ₯΄λ€.
FirebaseAuth -> errorCode,
FirebaseFirestore -> code
Scaffold λ μ΄μμμ ν΅ν΄ SnackBar νΈμΆνκΈ°! SnackBar κ·μ€