Bump version to 0.7.1
This commit is contained in:
parent
2f113a14d6
commit
e0593c9cbf
16 changed files with 237 additions and 49 deletions
|
|
@ -15,6 +15,7 @@ import com.pixelized.rplexicon.data.repository.character.InventoryRepository
|
|||
import com.pixelized.rplexicon.data.repository.character.ObjectActionRepository
|
||||
import com.pixelized.rplexicon.data.repository.character.SkillRepository
|
||||
import com.pixelized.rplexicon.data.repository.character.SpellRepository
|
||||
import com.pixelized.rplexicon.data.repository.lexicon.CategoryOrderRepository
|
||||
import com.pixelized.rplexicon.data.repository.lexicon.LexiconRepository
|
||||
import com.pixelized.rplexicon.data.repository.lexicon.LocationRepository
|
||||
import com.pixelized.rplexicon.data.repository.lexicon.QuestRepository
|
||||
|
|
@ -30,6 +31,7 @@ import javax.inject.Inject
|
|||
|
||||
@HiltViewModel
|
||||
class LauncherViewModel @Inject constructor(
|
||||
categoryRepository: CategoryOrderRepository,
|
||||
lexiconRepository: LexiconRepository,
|
||||
locationRepository: LocationRepository,
|
||||
questRepository: QuestRepository,
|
||||
|
|
@ -52,6 +54,14 @@ class LauncherViewModel @Inject constructor(
|
|||
|
||||
init {
|
||||
viewModelScope.launch {
|
||||
val order = async {
|
||||
try {
|
||||
categoryRepository.fetchCategoryOrder()
|
||||
} catch (exception: Exception) {
|
||||
Log.e(TAG, exception.message, exception)
|
||||
_error.emit(FetchErrorUio.Structure(type = Type.CATEGORY_ORDER))
|
||||
}
|
||||
}
|
||||
val lexicon = async {
|
||||
try {
|
||||
lexiconRepository.fetchLexicon()
|
||||
|
|
@ -151,7 +161,7 @@ class LauncherViewModel @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
awaitAll(lexicon, location, quest)
|
||||
awaitAll(order, lexicon, location, quest)
|
||||
awaitAll(description, inventory, equipment, alteration, action, objects, spell, skill)
|
||||
|
||||
isLoading = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue