-18 - Dawnhold Dark Magic 0.16.0 Sahrab Android May 2026
@Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insert(spell: SpellEntity)
val description = comps.joinToString("\n") "- $it.name: $itLore[it.id] ?: "…"" -18 - dawnhold Dark Magic 0.16.0 sahrab Android
Implementation (inside SpellCraftViewModel ): @Insert(onConflict = OnConflictStrategy
7.1 Repository Skeleton @Singleton class SpellRepository @Inject constructor( private val spellDao: SpellDao, private val componentDao: ComponentDao, private val api: SpellApi, @ApplicationContext private val ctx: Context ) { // Local flow val allSpells: Flow<List<SpellEntity>> = spellDao.observeAll() private val componentDao: ComponentDao
Some text some message..