AndroidAPS/app/src/main/java/info/nightscout/androidaps/dependencyInjection/AppComponent.kt

58 lines
1.7 KiB
Kotlin
Raw Normal View History

2020-04-24 12:00:31 +02:00
package info.nightscout.androidaps.dependencyInjection
import dagger.BindsInstance
import dagger.Component
import dagger.android.AndroidInjectionModule
import dagger.android.AndroidInjector
import info.nightscout.androidaps.MainApp
2020-05-11 16:58:59 +02:00
import info.nightscout.androidaps.core.di.CoreModule
import info.nightscout.androidaps.dana.di.DanaModule
2020-05-12 23:33:42 +02:00
import info.nightscout.androidaps.danar.di.DanaRModule
2020-05-11 16:58:59 +02:00
import info.nightscout.androidaps.danars.di.DanaRSModule
import info.nightscout.androidaps.plugins.pump.common.dagger.RileyLinkModule
import info.nightscout.androidaps.plugins.pump.omnipod.dagger.OmnipodModule
2020-04-24 12:00:31 +02:00
import javax.inject.Singleton
@Singleton
@Component(
modules = [
AndroidInjectionModule::class,
2020-05-10 23:45:49 +02:00
PluginsModule::class,
SkinsModule::class,
2020-04-24 12:00:31 +02:00
ActivitiesModule::class,
FragmentsModule::class,
AppModule::class,
ReceiversModule::class,
2020-04-30 00:37:58 +02:00
ServicesModule::class,
AutomationModule::class,
CommandQueueModule::class,
ObjectivesModule::class,
WizardModule::class,
RileyLinkModule::class,
2020-04-30 00:37:58 +02:00
MedtronicModule::class,
OmnipodModule::class,
2020-04-30 00:37:58 +02:00
APSModule::class,
PreferencesModule::class,
OverviewModule::class,
DataClassesModule::class,
SMSModule::class,
UIModule::class,
2020-05-10 23:45:49 +02:00
CoreModule::class,
2020-05-11 16:58:59 +02:00
DanaModule::class,
2020-05-12 23:33:42 +02:00
DanaRModule::class,
DanaRSModule::class,
2021-01-30 22:34:05 +01:00
WorkersModule::class,
OHUploaderModule::class
2020-04-24 12:00:31 +02:00
]
)
interface AppComponent : AndroidInjector<MainApp> {
@Component.Builder
interface Builder {
@BindsInstance
fun application(mainApp: MainApp): Builder
fun build(): AppComponent
}
2020-05-04 23:36:00 +02:00
}