29 lines
657 B
Kotlin
29 lines
657 B
Kotlin
package info.nightscout.androidaps.dependencyInjection
|
|
|
|
import dagger.BindsInstance
|
|
import dagger.Component
|
|
import dagger.android.AndroidInjectionModule
|
|
import dagger.android.AndroidInjector
|
|
import info.nightscout.androidaps.MainApp
|
|
import javax.inject.Singleton
|
|
|
|
@Singleton
|
|
@Component(
|
|
modules = [
|
|
AndroidInjectionModule::class,
|
|
ActivitiesModule::class,
|
|
FragmentsModule::class,
|
|
AppModule::class
|
|
]
|
|
)
|
|
interface AppComponent : AndroidInjector<MainApp> {
|
|
|
|
@Component.Builder
|
|
interface Builder {
|
|
|
|
@BindsInstance
|
|
fun application(mainApp: MainApp): Builder
|
|
|
|
fun build(): AppComponent
|
|
}
|
|
} |