use dagger to inject messagelist viewmodel

This commit is contained in:
Moez Bhatti
2017-08-28 12:05:38 -07:00
parent 98f5e80dcc
commit e193b8f3cf
10 changed files with 81 additions and 27 deletions
@@ -1,13 +1,16 @@
package com.moez.QKSMS.dagger
import android.content.Context
import com.moez.QKSMS.ui.conversations.ConversationListFragment
import dagger.Component
import javax.inject.Singleton
@Singleton
@Component(modules = arrayOf(AppModule::class, ConversationModule::class))
@Component(modules = arrayOf(AppModule::class, ConversationsModule::class))
interface AppComponent {
fun inject(fragment: ConversationListFragment)
fun provideContext(): Context
}