Skip to content

Commit

Permalink
[mod] #48 매칭 확인 로직 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
l2zh committed Jan 17, 2024
1 parent 294896e commit cf5664c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .idea/deploymentTargetDropDown.xml

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<application
android:name=".MotivooApplication"
android:allowBackup="true"
android:allowBackup="false"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
import sopt.motivoo.domain.entity.MotivooStorage
import sopt.motivoo.domain.repository.OnboardingRepository
import sopt.motivoo.util.UiState
import timber.log.Timber
import javax.inject.Inject

@HiltViewModel
class GetInviteCodeViewModel @Inject constructor(
private val motivooStorage: MotivooStorage
private val onboardingRepository: OnboardingRepository,
) : ViewModel() {

Expand All @@ -25,6 +27,7 @@ class GetInviteCodeViewModel @Inject constructor(
onboardingRepository.getInviteCode()
.onSuccess {
if (it.isMatched) {
motivooStorage.isUserMatched = true
_checkMatchState.value = UiState.Success(true)
}
}.onFailure {
Expand Down

0 comments on commit cf5664c

Please sign in to comment.