27 lines
564 B
Kotlin
27 lines
564 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
|
||
|
]
|
||
|
)
|
||
|
interface AppComponent : AndroidInjector<Aaps> {
|
||
|
|
||
|
@Component.Builder
|
||
|
interface Builder {
|
||
|
|
||
|
@BindsInstance
|
||
|
fun application(aaps: Aaps): Builder
|
||
|
|
||
|
fun build(): AppComponent
|
||
|
}
|
||
|
}
|