Commit 9f4ae66
committed
refactor(dashboard): Use TeamsRepository for team lookup
Replaces a direct Realm query in the dashboard's team click handler with an asynchronous call to `TeamsRepository`.
To avoid dependency conflicts in the `lite` build flavor, this change uses a Hilt `@EntryPoint` to safely access the `TeamsRepository` from the `BellDashboardFragment` without requiring a direct `@Inject` in the shared fragment.
This decouples the UI from the data layer, improves the architecture, and resolves a multi-flavor build issue.1 parent 64aae12 commit 9f4ae66
File tree
2 files changed
+19
-6
lines changed- app/src/main/java/org/ole/planet/myplanet
- di
- ui/dashboard
2 files changed
+19
-6
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | 39 | | |
43 | 40 | | |
44 | 41 | | |
| 42 | + | |
| 43 | + | |
45 | 44 | | |
46 | | - | |
47 | 45 | | |
48 | | - | |
49 | | - | |
50 | 46 | | |
51 | 47 | | |
52 | 48 | | |
| |||
451 | 447 | | |
452 | 448 | | |
453 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
454 | 455 | | |
455 | 456 | | |
456 | 457 | | |
| |||
0 commit comments