mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Emoji data source as singleton
This commit is contained in:
parent
03c3c9ae57
commit
2dd2a8db6c
@ -44,6 +44,7 @@ import im.vector.riotx.features.notifications.*
|
||||
import im.vector.riotx.features.rageshake.BugReporter
|
||||
import im.vector.riotx.features.rageshake.VectorFileLogger
|
||||
import im.vector.riotx.features.rageshake.VectorUncaughtExceptionHandler
|
||||
import im.vector.riotx.features.reactions.data.EmojiDataSource
|
||||
import im.vector.riotx.features.session.SessionListener
|
||||
import im.vector.riotx.features.settings.VectorPreferences
|
||||
import im.vector.riotx.features.share.ShareRoomListDataSource
|
||||
@ -124,6 +125,8 @@ interface VectorComponent {
|
||||
|
||||
fun uiStateRepository(): UiStateRepository
|
||||
|
||||
fun emojiDataSource(): EmojiDataSource
|
||||
|
||||
@Component.Factory
|
||||
interface Factory {
|
||||
fun create(@BindsInstance context: Context): VectorComponent
|
||||
|
@ -20,8 +20,9 @@ import com.squareup.moshi.Moshi
|
||||
import im.vector.riotx.R
|
||||
import im.vector.riotx.core.di.ScreenScope
|
||||
import javax.inject.Inject
|
||||
import javax.inject.Singleton
|
||||
|
||||
@ScreenScope
|
||||
@Singleton
|
||||
class EmojiDataSource @Inject constructor(
|
||||
resources: Resources
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user