Hilt DatabaseModule (DI-Setup für Room) #19
Labels
No labels
block-planning
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
infrastructure
invalid
planning
priority:high
priority:low
question
refactoring
status:backlog
status:done
status:in-progress
status:todo
tech-decision
test
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: bollwerkadmin/bollwerk#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature: Hilt DatabaseModule
Part of: #5
Depends on: #17
Ziel
Room-Datenbank und alle DAOs sind über Hilt injizierbar – kein manuelles Erstellen von Datenbankinstanzen nötig.
Scope
DatabaseModule: Hilt@Modulemit@InstallIn(SingletonComponent::class)provideDatabase(): erstellt KrisenvorratDatabase als Singleton (Room.databaseBuilder)provideItemDao(),provideCategoryDao(),provideLocationDao(),provideSettingsDao(): liefern DAO-Instanzen aus der DatenbankTechnische Hinweise
de.krisenvorrat.app.dikrisenvorrat.db@Singleton-Scope für die Database-InstanzAkzeptanzkriterien
Abgeschlossen (2026-05-13)
Zyklen: 1 Implementierungszyklus + 1 Review-Korrektur
Tests: ✅ assembleDebug + unit tests, 0 Fehler
Implementierte Artefakte
Abweichungen