element-hq / element-hq/element-x-android

[Architecture] Allow Activity to be injected through the dagger graph.

オープン
#558 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
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 はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。