45 lines
1.3 KiB
Kotlin
45 lines
1.3 KiB
Kotlin
package cash.z.ecc.android.di
|
|
|
|
import cash.z.ecc.android.ZcashWalletApp
|
|
import cash.z.ecc.android.ui.MainActivityModule
|
|
import cash.z.ecc.android.ui.detail.WalletDetailFragmentModule
|
|
import cash.z.ecc.android.ui.home.HomeFragmentModule
|
|
import cash.z.ecc.android.ui.receive.ReceiveFragmentModule
|
|
import cash.z.ecc.android.ui.send.*
|
|
import cash.z.ecc.android.ui.setup.BackupFragmentModule
|
|
import cash.z.ecc.android.ui.setup.LandingFragmentModule
|
|
import dagger.BindsInstance
|
|
import dagger.Component
|
|
import dagger.android.AndroidInjector
|
|
import dagger.android.support.AndroidSupportInjectionModule
|
|
import javax.inject.Singleton
|
|
|
|
@Singleton
|
|
@Component(
|
|
modules = [
|
|
AndroidSupportInjectionModule::class,
|
|
|
|
AppModule::class,
|
|
|
|
// Activities
|
|
MainActivityModule::class,
|
|
|
|
// Fragments
|
|
HomeFragmentModule::class,
|
|
ReceiveFragmentModule::class,
|
|
SendAddressFragmentModule::class,
|
|
SendMemoFragmentModule::class,
|
|
SendConfirmFragmentModule::class,
|
|
SendFinalFragmentModule::class,
|
|
WalletDetailFragmentModule::class,
|
|
LandingFragmentModule::class,
|
|
BackupFragmentModule::class
|
|
]
|
|
)
|
|
interface AppComponent : AndroidInjector<ZcashWalletApp> {
|
|
|
|
@Component.Factory
|
|
interface Factory {
|
|
fun create(@BindsInstance application: ZcashWalletApp): AppComponent
|
|
}
|
|
} |