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

84 lines
2.9 KiB
Kotlin
Raw Normal View History

2022-01-06 17:45:00 +01:00
package info.nightscout.androidaps.di
2020-04-24 12:00:31 +02:00
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
2022-05-05 22:37:20 +02:00
import info.nightscout.androidaps.dependencyInjection.AutotuneModule
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
2022-06-21 13:26:13 +02:00
import info.nightscout.androidaps.plugin.general.openhumans.di.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
2022-06-21 13:26:13 +02:00
import info.nightscout.androidaps.plugins.pump.omnipod.dash.di.OmnipodDashModule
import info.nightscout.androidaps.plugins.pump.omnipod.eros.di.OmnipodErosModule
import info.nightscout.implementation.di.CommandQueueModule
2021-12-10 15:19:19 +01:00
import info.nightscout.shared.di.SharedModule
2022-10-31 20:20:41 +01:00
import info.nightscout.ui.di.UiModule
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,
2022-05-05 22:37:20 +02:00
AutotuneModule::class,
2020-04-30 00:37:58 +02:00
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,
2022-04-04 22:00:03 +02:00
WorkflowModule::class,
2020-04-30 00:37:58 +02:00
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,
2022-10-31 20:20:41 +01:00
SharedModule::class,
UiModule::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
}