-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add timber #6
base: develop/view
Are you sure you want to change the base?
Add timber #6
Conversation
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.
수고하셨어요 :)
@@ -100,6 +101,7 @@ class SignUpActivity : BindingActivity<ActivitySignUpBinding>(R.layout.activity_ | |||
|
|||
viewModel.signupResult.observe(this) { | |||
startActivity(Intent(this,SignInActivity::class.java)) | |||
Toast.makeText(this,getString(R.string.sign_up_success_toast_msg), Toast.LENGTH_LONG).show() |
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.
control + alt + L 을 눌러서 코드 정렬을 시켜봅시당!
@@ -33,11 +33,10 @@ class SignupViewModel: ViewModel() { | |||
response: Response<ResponseSignupDTO> | |||
) { | |||
_signupResult.value = response.body() | |||
Log.d("회원가입 성공", "${response.body()}") |
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.
이곳에서 Timber를 찍을 수 있겠네용!
val first_name: String, | ||
val last_name: String, | ||
@SerialName("first_name") | ||
val firstName: String, |
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.
카멜케이스 좋습니다~~
@@ -22,7 +22,7 @@ | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_marginTop="60dp" | |||
android:text="Welcome to SOPT" | |||
android:text="@string/sign_in_title" |
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.
👍
if(BuildConfig.DEBUG){ | ||
Timber.plant(Timber.DebugTree()) | ||
} |
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.
애플리케이션 클래스 생성해서 onCreate()에 넣어주세요! 애플리케이션이 실행될 때 딱 한번 실행됩니다! 현재 코드 상에서는 홈프래그먼트가 실행될 때 마다 해당 코드가 실행될 것입니다!
No description provided.