|
16 | 16 |
|
17 | 17 | package im.vector.app.core.di |
18 | 18 |
|
19 | | -import android.content.Context |
20 | | -import android.content.res.Resources |
21 | 19 | import dagger.hilt.EntryPoint |
22 | 20 | import dagger.hilt.InstallIn |
23 | 21 | import dagger.hilt.components.SingletonComponent |
24 | | -import im.vector.app.ActiveSessionDataSource |
25 | | -import im.vector.app.AppStateHandler |
26 | | -import im.vector.app.EmojiCompatFontProvider |
27 | | -import im.vector.app.EmojiCompatWrapper |
28 | 22 | import im.vector.app.core.dialogs.UnrecognizedCertificateDialog |
29 | | -import im.vector.app.core.dispatchers.CoroutineDispatchers |
30 | 23 | import im.vector.app.core.error.ErrorFormatter |
31 | | -import im.vector.app.core.network.WifiDetector |
32 | | -import im.vector.app.core.pushers.PushersManager |
33 | | -import im.vector.app.core.utils.AssetReader |
34 | | -import im.vector.app.core.utils.DimensionConverter |
35 | | -import im.vector.app.features.call.conference.JitsiActiveConferenceHolder |
36 | 24 | import im.vector.app.features.call.webrtc.WebRtcCallManager |
37 | | -import im.vector.app.features.configuration.VectorConfiguration |
38 | | -import im.vector.app.features.crypto.keysrequest.KeyRequestHandler |
39 | | -import im.vector.app.features.crypto.verification.IncomingVerificationRequestHandler |
40 | 25 | import im.vector.app.features.home.AvatarRenderer |
41 | | -import im.vector.app.features.home.CurrentSpaceSuggestedRoomListDataSource |
42 | | -import im.vector.app.features.home.room.detail.RoomDetailPendingActionStore |
43 | | -import im.vector.app.features.home.room.detail.timeline.helper.MatrixItemColorProvider |
44 | | -import im.vector.app.features.html.EventHtmlRenderer |
45 | | -import im.vector.app.features.html.VectorHtmlCompressor |
46 | | -import im.vector.app.features.invite.AutoAcceptInvites |
47 | | -import im.vector.app.features.login.ReAuthHelper |
48 | 26 | import im.vector.app.features.navigation.Navigator |
49 | | -import im.vector.app.features.notifications.NotifiableEventResolver |
50 | | -import im.vector.app.features.notifications.NotificationDrawerManager |
51 | | -import im.vector.app.features.notifications.NotificationUtils |
52 | | -import im.vector.app.features.notifications.PushRuleTriggerListener |
53 | | -import im.vector.app.features.pin.PinCodeStore |
54 | 27 | import im.vector.app.features.pin.PinLocker |
55 | | -import im.vector.app.features.popup.PopupAlertManager |
56 | 28 | import im.vector.app.features.rageshake.BugReporter |
57 | | -import im.vector.app.features.rageshake.VectorFileLogger |
58 | | -import im.vector.app.features.rageshake.VectorUncaughtExceptionHandler |
59 | | -import im.vector.app.features.reactions.data.EmojiDataSource |
60 | 29 | import im.vector.app.features.session.SessionListener |
61 | | -import im.vector.app.features.settings.VectorDataStore |
62 | 30 | import im.vector.app.features.settings.VectorPreferences |
63 | 31 | import im.vector.app.features.ui.UiStateRepository |
64 | 32 | import kotlinx.coroutines.CoroutineScope |
65 | | -import org.matrix.android.sdk.api.Matrix |
66 | | -import org.matrix.android.sdk.api.auth.AuthenticationService |
67 | | -import org.matrix.android.sdk.api.auth.HomeServerHistoryService |
68 | | -import org.matrix.android.sdk.api.raw.RawService |
69 | | -import org.matrix.android.sdk.api.session.Session |
70 | 33 |
|
71 | 34 | @InstallIn(SingletonComponent::class) |
72 | 35 | @EntryPoint |
73 | 36 | interface SingletonEntryPoint { |
74 | 37 |
|
75 | | - fun matrix(): Matrix |
76 | | - |
77 | | - fun matrixItemColorProvider(): MatrixItemColorProvider |
78 | | - |
79 | 38 | fun sessionListener(): SessionListener |
80 | 39 |
|
81 | | - fun currentSession(): Session |
82 | | - |
83 | | - fun notificationUtils(): NotificationUtils |
84 | | - |
85 | | - fun notificationDrawerManager(): NotificationDrawerManager |
86 | | - |
87 | | - fun appContext(): Context |
88 | | - |
89 | | - fun resources(): Resources |
90 | | - |
91 | | - fun assetReader(): AssetReader |
92 | | - |
93 | | - fun dimensionConverter(): DimensionConverter |
94 | | - |
95 | | - fun vectorConfiguration(): VectorConfiguration |
96 | | - |
97 | 40 | fun avatarRenderer(): AvatarRenderer |
98 | 41 |
|
99 | 42 | fun activeSessionHolder(): ActiveSessionHolder |
100 | 43 |
|
101 | 44 | fun unrecognizedCertificateDialog(): UnrecognizedCertificateDialog |
102 | 45 |
|
103 | | - fun emojiCompatFontProvider(): EmojiCompatFontProvider |
104 | | - |
105 | | - fun emojiCompatWrapper(): EmojiCompatWrapper |
106 | | - |
107 | | - fun eventHtmlRenderer(): EventHtmlRenderer |
108 | | - |
109 | | - fun vectorHtmlCompressor(): VectorHtmlCompressor |
110 | | - |
111 | 46 | fun navigator(): Navigator |
112 | 47 |
|
113 | 48 | fun errorFormatter(): ErrorFormatter |
114 | 49 |
|
115 | | - fun appStateHandler(): AppStateHandler |
116 | | - |
117 | | - fun currentSpaceSuggestedRoomListDataSource(): CurrentSpaceSuggestedRoomListDataSource |
118 | | - |
119 | | - fun roomDetailPendingActionStore(): RoomDetailPendingActionStore |
120 | | - |
121 | | - fun activeSessionObservableStore(): ActiveSessionDataSource |
122 | | - |
123 | | - fun incomingVerificationRequestHandler(): IncomingVerificationRequestHandler |
124 | | - |
125 | | - fun incomingKeyRequestHandler(): KeyRequestHandler |
126 | | - |
127 | | - fun authenticationService(): AuthenticationService |
128 | | - |
129 | | - fun rawService(): RawService |
130 | | - |
131 | | - fun homeServerHistoryService(): HomeServerHistoryService |
132 | | - |
133 | 50 | fun bugReporter(): BugReporter |
134 | 51 |
|
135 | | - fun vectorUncaughtExceptionHandler(): VectorUncaughtExceptionHandler |
136 | | - |
137 | | - fun pushRuleTriggerListener(): PushRuleTriggerListener |
138 | | - |
139 | | - fun pusherManager(): PushersManager |
140 | | - |
141 | | - fun notifiableEventResolver(): NotifiableEventResolver |
142 | | - |
143 | 52 | fun vectorPreferences(): VectorPreferences |
144 | 53 |
|
145 | | - fun vectorDataStore(): VectorDataStore |
146 | | - |
147 | | - fun wifiDetector(): WifiDetector |
148 | | - |
149 | | - fun vectorFileLogger(): VectorFileLogger |
150 | | - |
151 | 54 | fun uiStateRepository(): UiStateRepository |
152 | 55 |
|
153 | | - fun pinCodeStore(): PinCodeStore |
154 | | - |
155 | | - fun emojiDataSource(): EmojiDataSource |
156 | | - |
157 | | - fun alertManager(): PopupAlertManager |
158 | | - |
159 | | - fun reAuthHelper(): ReAuthHelper |
160 | | - |
161 | 56 | fun pinLocker(): PinLocker |
162 | 57 |
|
163 | | - fun autoAcceptInvites(): AutoAcceptInvites |
164 | | - |
165 | 58 | fun webRtcCallManager(): WebRtcCallManager |
166 | 59 |
|
167 | 60 | fun appCoroutineScope(): CoroutineScope |
168 | | - |
169 | | - fun coroutineDispatchers(): CoroutineDispatchers |
170 | | - |
171 | | - fun jitsiActiveConferenceHolder(): JitsiActiveConferenceHolder |
172 | 61 | } |
0 commit comments