From 8539dce41b32c6c1fc7e86de68306ef30eb5c2e8 Mon Sep 17 00:00:00 2001 From: leeeha Date: Thu, 27 Jun 2024 01:02:53 +0900 Subject: [PATCH] =?UTF-8?q?[chore]=20#303=20ktlint=20check=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../go/sopt/winey/presentation/nickname/NicknameActivity.kt | 2 -- .../go/sopt/winey/presentation/nickname/NicknameViewModel.kt | 5 ++--- .../java/org/go/sopt/winey/util/binding/BindingAdapter.kt | 2 +- app/src/main/java/org/go/sopt/winey/util/state/InputError.kt | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/org/go/sopt/winey/presentation/nickname/NicknameActivity.kt b/app/src/main/java/org/go/sopt/winey/presentation/nickname/NicknameActivity.kt index 0db4d2ec..a362d11f 100644 --- a/app/src/main/java/org/go/sopt/winey/presentation/nickname/NicknameActivity.kt +++ b/app/src/main/java/org/go/sopt/winey/presentation/nickname/NicknameActivity.kt @@ -22,8 +22,6 @@ import org.go.sopt.winey.util.binding.BindingActivity import org.go.sopt.winey.util.context.hideKeyboard import org.go.sopt.winey.util.context.snackBar import org.go.sopt.winey.util.context.stringOf -import org.go.sopt.winey.util.state.InputError -import org.go.sopt.winey.util.state.InputUiState import org.go.sopt.winey.util.state.UiState import org.json.JSONException import org.json.JSONObject diff --git a/app/src/main/java/org/go/sopt/winey/presentation/nickname/NicknameViewModel.kt b/app/src/main/java/org/go/sopt/winey/presentation/nickname/NicknameViewModel.kt index 8f80edf0..03a29e07 100644 --- a/app/src/main/java/org/go/sopt/winey/presentation/nickname/NicknameViewModel.kt +++ b/app/src/main/java/org/go/sopt/winey/presentation/nickname/NicknameViewModel.kt @@ -1,6 +1,5 @@ package org.go.sopt.winey.presentation.nickname -import android.renderscript.ScriptGroup.Input import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import dagger.hilt.android.lifecycle.HiltViewModel @@ -23,7 +22,7 @@ import javax.inject.Inject @HiltViewModel class NicknameViewModel @Inject constructor( - private val authRepository: AuthRepository, + private val authRepository: AuthRepository ) : ViewModel() { val _nickname = MutableStateFlow("") private val nickname: String get() = _nickname.value @@ -132,7 +131,7 @@ class NicknameViewModel @Inject constructor( private fun Flow.mutableStateIn( initialValue: T, - scope: CoroutineScope, + scope: CoroutineScope ): MutableStateFlow { val flow = MutableStateFlow(initialValue) scope.launch { diff --git a/app/src/main/java/org/go/sopt/winey/util/binding/BindingAdapter.kt b/app/src/main/java/org/go/sopt/winey/util/binding/BindingAdapter.kt index 45e7eba2..a9e229f7 100644 --- a/app/src/main/java/org/go/sopt/winey/util/binding/BindingAdapter.kt +++ b/app/src/main/java/org/go/sopt/winey/util/binding/BindingAdapter.kt @@ -196,7 +196,7 @@ fun TextView.setNicknameHelperTextColor(inputUiState: InputUiState) { fun TextView.setNicknameCounter( prevScreenName: String, inputNicknameLength: Int, - originalNicknameLength: Int, + originalNicknameLength: Int ) { when (prevScreenName) { STORY_SCREEN -> { diff --git a/app/src/main/java/org/go/sopt/winey/util/state/InputError.kt b/app/src/main/java/org/go/sopt/winey/util/state/InputError.kt index 506ba369..e5ca30a8 100644 --- a/app/src/main/java/org/go/sopt/winey/util/state/InputError.kt +++ b/app/src/main/java/org/go/sopt/winey/util/state/InputError.kt @@ -1,12 +1,12 @@ package org.go.sopt.winey.util.state sealed interface InputError { - enum class Nickname: InputError { + enum class Nickname : InputError { BLANK_INPUT, INVALID_CHAR, UNCHECKED_DUPLICATION, DUPLICATED } - object Upload: InputError + object Upload : InputError }