AndroidAPS/wear/src/main/java/info/nightscout/androidaps/di/AppComponent.kt
2021-12-10 08:58:23 +01:00

28 lines
No EOL
595 B
Kotlin

package info.nightscout.androidaps.di
import dagger.BindsInstance
import dagger.Component
import dagger.android.AndroidInjectionModule
import dagger.android.AndroidInjector
import info.nightscout.androidaps.Aaps
import javax.inject.Singleton
@Singleton
@Component(
modules = [
AndroidInjectionModule::class,
WearModule::class,
ServicesModule::class
]
)
interface AppComponent : AndroidInjector<Aaps> {
@Component.Builder
interface Builder {
@BindsInstance
fun application(aaps: Aaps): Builder
fun build(): AppComponent
}
}