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

Add timber #6

Open
wants to merge 3 commits into
base: develop/view
Choose a base branch
from
Open

Add timber #6

wants to merge 3 commits into from

Conversation

Dan2dani
Copy link
Contributor

No description provided.

Copy link
Member

@youngjinc youngjinc left a 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()
Copy link
Member

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()}")
Copy link
Member

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,
Copy link
Member

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"
Copy link
Member

Choose a reason for hiding this comment

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

👍

Comment on lines +24 to +26
if(BuildConfig.DEBUG){
Timber.plant(Timber.DebugTree())
}
Copy link
Member

Choose a reason for hiding this comment

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

애플리케이션 클래스 생성해서 onCreate()에 넣어주세요! 애플리케이션이 실행될 때 딱 한번 실행됩니다! 현재 코드 상에서는 홈프래그먼트가 실행될 때 마다 해당 코드가 실행될 것입니다!

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.

2 participants