element-hq / element-hq/element-x-android
[Architecture] Allow Activity to be injected through the dagger graph.
オープン
S-Tolerable
T-Task
- 主要言語
- Kotlin
- スター
- 2.4k
- フォーク
- 624
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 149
説明
We might need to inject an activity context in some of our classes used by Presenter or others.
We can trick it by using the `LocalContext.current` but it's a hack.
We should probably create a `Component` owned by `MainActivity` so we can inject it in subcomponents.
It could require to create new subcomponents for Session and Room, as the existant ones can be used outside the context of an activity (like from notification).
コントリビューションガイド
評価
この issue はまだ評価されていません。