zcash-android-wallet-zcon1/zcash-android-wallet-app/app/src/main/java/cash/z/android/wallet/di/module/ApplicationModule.kt

25 lines
691 B
Kotlin
Raw Normal View History

2018-11-11 19:36:17 -08:00
package cash.z.android.wallet.di.module
import cash.z.android.qrecycler.QRecycler
import cash.z.android.wallet.ui.fragment.HomeFragment
import cash.z.android.wallet.ui.presenter.HomePresenter
import cash.z.wallet.sdk.data.Synchronizer
import cash.z.wallet.sdk.jni.JniConverter
2018-11-11 19:36:17 -08:00
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
2018-11-11 19:36:17 -08:00
/**
* Module that contributes all the objects with application scope. Anything that should live globally belongs here.
*/
@Module
internal object ApplicationModule {
@JvmStatic
2018-11-11 19:36:17 -08:00
@Provides
fun provideSanity(): SanityCheck = SanityCheck(true)
@JvmStatic
@Provides
fun provideQRecycler(): QRecycler = QRecycler()
2018-11-11 19:36:17 -08:00
}