Skip to content

Commit

Permalink
#86 feat : Custom Dialog, CustomView 패키지 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
plashdof committed Nov 26, 2023
1 parent cba3f3c commit ec01c24
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package com.avengers.nibobnebob.presentation.ui.intro.signup

import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.databinding.BindingAdapter
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import androidx.navigation.NavController
Expand All @@ -14,9 +12,8 @@ import com.avengers.nibobnebob.R
import com.avengers.nibobnebob.databinding.FragmentDetailSignupBinding
import com.avengers.nibobnebob.presentation.base.BaseFragment
import com.avengers.nibobnebob.presentation.ui.intro.IntroViewModel
import com.avengers.nibobnebob.presentation.util.showCalendarDatePicker
import com.avengers.nibobnebob.presentation.customview.showCalendarDatePicker
import com.google.android.material.textfield.MaterialAutoCompleteTextView
import com.google.android.material.textfield.TextInputLayout
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.avengers.nibobnebob.data.model.BaseState
import com.avengers.nibobnebob.data.model.request.DetailSignupRequest
import com.avengers.nibobnebob.data.repository.IntroRepository
import com.avengers.nibobnebob.data.repository.ValidationRepository
import com.avengers.nibobnebob.presentation.util.Validation
import com.avengers.nibobnebob.presentation.util.ValidationUtil
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
Expand Down Expand Up @@ -95,7 +95,7 @@ class DetailSignupViewModel @Inject constructor(

private fun observeBirth() {
birth.onEach {
if (Validation.checkBirth(it) || it.isBlank()) {
if (ValidationUtil.checkBirth(it) || it.isBlank()) {
_uiState.update { state ->
state.copy(
birthState = InputState.Empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import com.avengers.nibobnebob.presentation.base.BaseFragment
import com.avengers.nibobnebob.presentation.ui.main.MainViewModel
import com.avengers.nibobnebob.presentation.ui.main.mypage.share.MyPageSharedUiEvent
import com.avengers.nibobnebob.presentation.ui.main.mypage.share.MyPageSharedViewModel
import com.avengers.nibobnebob.presentation.util.showCalendarDatePicker
import com.avengers.nibobnebob.presentation.customview.showCalendarDatePicker
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.flow.collectLatest

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.avengers.nibobnebob.presentation.util

object Validation {
object ValidationUtil {

private val birthRegex = Regex("""^\d{4}/\d{2}/\d{2}${'$'}""")

Expand Down

0 comments on commit ec01c24

Please sign in to comment.