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-04-19 18:44:17 +02:00
|
|
|
import info.nightscout.androidaps.di.CoreModule
|
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-21 18:03:26 +01:00
|
|
|
import info.nightscout.androidaps.danars.di.InsightModule
|
2021-02-06 00:30:27 +01:00
|
|
|
import info.nightscout.androidaps.database.DatabaseModule
|
2021-02-21 20:11:22 +01:00
|
|
|
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
|
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,
|
2020-08-17 00:10:37 +02:00
|
|
|
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,
|
2020-05-04 22:50:08 +02:00
|
|
|
SMSModule::class,
|
2020-05-07 21:11:12 +02:00
|
|
|
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,
|
2020-09-02 15:32:11 +02:00
|
|
|
DanaRSModule::class,
|
2021-02-21 18:03:26 +01:00
|
|
|
ComboModule::class,
|
|
|
|
InsightModule::class,
|
2021-01-30 22:34:05 +01:00
|
|
|
WorkersModule::class,
|
2020-09-02 15:32:11 +02:00
|
|
|
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
|
|
|
}
|