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

79 lines
2.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
2021-02-22 17:22:30 +01:00
import info.nightscout.androidaps.automation.di.AutomationModule
2021-02-21 18:03:26 +01:00
import info.nightscout.androidaps.combo.di.ComboModule
2021-05-03 09:33:14 +02:00
import info.nightscout.androidaps.dana.di.DanaHistoryModule
2020-05-11 16:58:59 +02:00
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
2021-02-06 00:30:27 +01:00
import info.nightscout.androidaps.database.DatabaseModule
import info.nightscout.androidaps.di.CoreModule
2021-06-08 23:27:14 +02:00
import info.nightscout.androidaps.diaconn.di.DiaconnG8Module
import info.nightscout.androidaps.insight.di.InsightDatabaseModule
import info.nightscout.androidaps.insight.di.InsightModule
import info.nightscout.androidaps.plugin.general.openhumans.dagger.OpenHumansModule
import info.nightscout.androidaps.plugins.pump.common.di.PumpCommonModule
import info.nightscout.androidaps.plugins.pump.common.di.RileyLinkModule
import info.nightscout.androidaps.plugins.pump.medtronic.di.MedtronicModule
2021-02-23 01:26:57 +01:00
import info.nightscout.androidaps.plugins.pump.omnipod.dash.dagger.OmnipodDashModule
2021-02-11 00:51:20 +01:00
import info.nightscout.androidaps.plugins.pump.omnipod.eros.dagger.OmnipodErosModule
2021-12-10 15:19:19 +01:00
import info.nightscout.shared.di.SharedModule
2020-04-24 12:00:31 +02:00
import javax.inject.Singleton
@Singleton
@Component(
modules = [
AndroidInjectionModule::class,
2021-02-06 00:30:27 +01:00
DatabaseModule::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,
PumpCommonModule::class,
RileyLinkModule::class,
2020-04-30 00:37:58 +02:00
MedtronicModule::class,
2021-02-23 01:26:57 +01:00
OmnipodDashModule::class,
2021-02-11 00:51:20 +01:00
OmnipodErosModule::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,
2021-05-03 09:33:14 +02:00
DanaHistoryModule::class,
2020-05-12 23:33:42 +02:00
DanaRModule::class,
DanaRSModule::class,
2021-02-21 18:03:26 +01:00
ComboModule::class,
InsightModule::class,
InsightDatabaseModule::class,
2021-01-30 22:34:05 +01:00
WorkersModule::class,
DiaconnG8Module::class,
2021-12-10 15:19:19 +01:00
OpenHumansModule::class,
SharedModule::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
}