2018-11-11 19:36:17 -08:00
|
|
|
package cash.z.android.wallet.di.component
|
|
|
|
|
2018-11-12 10:38:37 -08:00
|
|
|
import cash.z.android.wallet.ui.activity.MainActivityModule
|
2018-11-11 19:36:17 -08:00
|
|
|
import cash.z.android.wallet.ZcashWalletApplication
|
|
|
|
import cash.z.android.wallet.di.module.ApplicationModule
|
2019-01-29 10:08:33 -08:00
|
|
|
import cash.z.android.wallet.di.module.SynchronizerModule
|
2019-02-01 08:10:43 -08:00
|
|
|
import cash.z.android.wallet.ui.fragment.*
|
2018-11-11 19:36:17 -08:00
|
|
|
import dagger.Component
|
|
|
|
import dagger.android.AndroidInjector
|
|
|
|
import dagger.android.support.AndroidSupportInjectionModule
|
|
|
|
import javax.inject.Singleton
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The application's main component, defining the roots of the object graph for all dependencies that live within the
|
|
|
|
* ApplicationScope.
|
|
|
|
*/
|
|
|
|
@Singleton
|
|
|
|
@Component(
|
|
|
|
modules = [
|
|
|
|
AndroidSupportInjectionModule::class,
|
2018-12-04 23:26:03 -08:00
|
|
|
ApplicationModule::class,
|
2019-01-29 10:08:33 -08:00
|
|
|
SynchronizerModule::class,
|
2018-12-04 23:26:03 -08:00
|
|
|
MainActivityModule::class,
|
2019-02-01 08:10:43 -08:00
|
|
|
|
|
|
|
// Injected Fragments
|
|
|
|
AboutFragmentModule::class,
|
|
|
|
HistoryFragmentModule::class,
|
2018-12-04 23:26:03 -08:00
|
|
|
HomeFragmentModule::class,
|
2019-02-19 05:22:45 -08:00
|
|
|
WelcomeFragmentModule::class,
|
2019-01-31 12:44:25 -08:00
|
|
|
ReceiveFragmentModule::class,
|
2019-02-01 08:10:43 -08:00
|
|
|
RequestFragmentModule::class,
|
|
|
|
SendFragmentModule::class,
|
2019-02-16 00:47:39 -08:00
|
|
|
ScanFragmentModule::class,
|
2019-02-19 05:22:45 -08:00
|
|
|
SettingsFragmentModule::class,
|
|
|
|
WelcomeFragmentModule::class,
|
|
|
|
FirstrunFragmentModule::class,
|
|
|
|
SyncFragmentModule::class
|
2018-11-11 19:36:17 -08:00
|
|
|
]
|
|
|
|
)
|
|
|
|
interface ApplicationComponent : AndroidInjector<ZcashWalletApplication> {
|
|
|
|
@Component.Builder
|
|
|
|
abstract class Builder : AndroidInjector.Builder<ZcashWalletApplication>()
|
|
|
|
}
|