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

86 lines
4.1 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-03 21:27:42 +02:00
import info.nightscout.androidaps.core.dependencyInjection.CoreModule
2020-03-10 18:58:27 +01:00
import info.nightscout.androidaps.data.Profile
2020-02-05 17:40:13 +01:00
import info.nightscout.androidaps.data.ProfileStore
2020-03-06 23:43:29 +01:00
import info.nightscout.androidaps.data.PumpEnactResult
2020-01-01 23:23:16 +01:00
import info.nightscout.androidaps.db.BgReading
2020-04-24 22:39:56 +02:00
import info.nightscout.androidaps.db.CareportalEvent
2020-03-19 18:02:24 +01:00
import info.nightscout.androidaps.db.ProfileSwitch
2020-04-24 22:39:56 +02:00
import info.nightscout.androidaps.db.TemporaryBasal
import info.nightscout.androidaps.plugins.aps.logger.LoggerCallback
2020-03-08 22:42:36 +01:00
import info.nightscout.androidaps.plugins.aps.loop.APSResult
import info.nightscout.androidaps.plugins.aps.openAPSAMA.DetermineBasalResultAMA
import info.nightscout.androidaps.plugins.aps.openAPSSMB.DetermineBasalAdapterSMBJS
import info.nightscout.androidaps.plugins.aps.openAPSSMB.DetermineBasalResultSMB
2019-12-30 00:53:44 +01:00
import info.nightscout.androidaps.plugins.constraints.objectives.objectives.*
2020-01-05 12:02:32 +01:00
import info.nightscout.androidaps.plugins.general.automation.AutomationEvent
2020-01-02 19:20:36 +01:00
import info.nightscout.androidaps.plugins.general.automation.actions.*
2020-01-05 12:02:32 +01:00
import info.nightscout.androidaps.plugins.general.automation.elements.*
import info.nightscout.androidaps.plugins.general.automation.triggers.*
2020-03-21 15:09:14 +01:00
import info.nightscout.androidaps.plugins.general.overview.graphData.GraphData
2020-01-01 23:23:16 +01:00
import info.nightscout.androidaps.plugins.general.overview.notifications.NotificationWithAction
2020-03-09 23:49:00 +01:00
import info.nightscout.androidaps.plugins.general.smsCommunicator.AuthRequest
2020-01-10 23:14:58 +01:00
import info.nightscout.androidaps.plugins.iob.iobCobCalculator.AutosensData
2020-03-10 18:58:27 +01:00
import info.nightscout.androidaps.plugins.iob.iobCobCalculator.GlucoseStatus
2020-01-10 23:14:58 +01:00
import info.nightscout.androidaps.plugins.iob.iobCobCalculator.IobCobOref1Thread
import info.nightscout.androidaps.plugins.iob.iobCobCalculator.IobCobThread
2020-04-26 23:52:29 +02:00
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.RileyLinkCommunicationManager
2020-04-27 20:22:00 +02:00
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.ble.RFSpy
2020-04-27 18:14:06 +02:00
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.ble.RileyLinkBLE
2020-04-27 20:22:00 +02:00
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.ble.command.SendAndListen
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.ble.command.SetPreamble
2020-04-27 22:19:50 +02:00
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.ble.data.RadioPacket
2020-04-27 18:14:06 +02:00
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.ble.data.RadioResponse
2020-04-26 22:47:13 +02:00
import info.nightscout.androidaps.plugins.pump.common.hw.rileylink.service.tasks.*
2020-04-26 23:52:29 +02:00
import info.nightscout.androidaps.plugins.pump.medtronic.comm.MedtronicCommunicationManager
import info.nightscout.androidaps.plugins.pump.medtronic.comm.ui.MedtronicUITask
2020-01-01 23:23:16 +01:00
import info.nightscout.androidaps.plugins.treatments.Treatment
2020-01-10 23:14:58 +01:00
import info.nightscout.androidaps.queue.CommandQueue
import info.nightscout.androidaps.queue.commands.*
2020-03-21 13:11:17 +01:00
import info.nightscout.androidaps.setupwizard.SWEventListener
import info.nightscout.androidaps.setupwizard.SWScreen
import info.nightscout.androidaps.setupwizard.elements.*
2019-12-31 11:57:58 +01:00
import info.nightscout.androidaps.utils.wizard.BolusWizard
import info.nightscout.androidaps.utils.wizard.QuickWizardEntry
2020-04-24 12:00:31 +02:00
import javax.inject.Singleton
@Singleton
@Component(
modules = [
AndroidInjectionModule::class,
2020-05-03 21:27:42 +02:00
CoreModule::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,
MedtronicModule::class,
APSModule::class,
PreferencesModule::class,
OverviewModule::class,
DataClassesModule::class,
SMSModule::class,
OmnipodModule::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
}