Nam integration into the app and some small releated fixes.
This commit is contained in:
		
							parent
							
								
									d5736c99ee
								
							
						
					
					
						commit
						5fdf262bde
					
				
					 13 changed files with 19 additions and 146 deletions
				
			
		| 
						 | 
				
			
			@ -10,7 +10,6 @@ import com.pixelized.rplexicon.data.repository.character.ActionRepository
 | 
			
		|||
import com.pixelized.rplexicon.data.repository.character.AlterationRepository
 | 
			
		||||
import com.pixelized.rplexicon.data.repository.character.CharacterSheetRepository
 | 
			
		||||
import com.pixelized.rplexicon.data.repository.character.DescriptionRepository
 | 
			
		||||
import com.pixelized.rplexicon.data.repository.character.EquipmentRepository
 | 
			
		||||
import com.pixelized.rplexicon.data.repository.character.ItemsRepository
 | 
			
		||||
import com.pixelized.rplexicon.data.repository.character.SkillRepository
 | 
			
		||||
import com.pixelized.rplexicon.data.repository.character.SpellRepository
 | 
			
		||||
| 
						 | 
				
			
			@ -44,7 +43,6 @@ class LauncherViewModel @Inject constructor(
 | 
			
		|||
    skillRepository: SkillRepository,
 | 
			
		||||
    descriptionRepository: DescriptionRepository,
 | 
			
		||||
    itemsRepository: ItemsRepository,
 | 
			
		||||
    equipmentRepository: EquipmentRepository,
 | 
			
		||||
    removeConRepository: RemoteConfigRepository // Unused but injected to initialize it.
 | 
			
		||||
) : ViewModel() {
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -112,14 +110,6 @@ class LauncherViewModel @Inject constructor(
 | 
			
		|||
                    _error.emit(FetchErrorUio.Structure(type = Type.INVENTORY))
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            val equipment = async {
 | 
			
		||||
                try {
 | 
			
		||||
                    equipmentRepository.fetchEquipment()
 | 
			
		||||
                } catch (exception: Exception) {
 | 
			
		||||
                    Log.e(TAG, exception.message, exception)
 | 
			
		||||
                    _error.emit(FetchErrorUio.Structure(type = Type.EQUIPMENT))
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            awaitAll(characterSheet)
 | 
			
		||||
 | 
			
		||||
            val alteration = async {
 | 
			
		||||
| 
						 | 
				
			
			@ -156,7 +146,7 @@ class LauncherViewModel @Inject constructor(
 | 
			
		|||
            }
 | 
			
		||||
 | 
			
		||||
            awaitAll(order, lexicon, location, quest)
 | 
			
		||||
            awaitAll(description, inventory, equipment, alteration, action, spell, skill)
 | 
			
		||||
            awaitAll(description, inventory, alteration, action, spell, skill)
 | 
			
		||||
 | 
			
		||||
            withContext(Dispatchers.Main) {
 | 
			
		||||
                isLoading = false
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue