AndroidAPS/wear/src/main/java/info/nightscout/androidaps/di/AppComponent.kt

28 lines
595 B
Kotlin
Raw Normal View History

2021-12-09 22:42:43 +01:00
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,
2021-12-10 08:58:23 +01:00
WearModule::class,
ServicesModule::class
2021-12-09 22:42:43 +01:00
]
)
interface AppComponent : AndroidInjector<Aaps> {
@Component.Builder
interface Builder {
@BindsInstance
fun application(aaps: Aaps): Builder
fun build(): AppComponent
}
}