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

86 lines
4.1 KiB
Kotlin
Raw Normal View History

2019-12-13 02:12:19 +01:00
package info.nightscout.androidaps.dependencyInjection
2019-12-21 20:17:08 +01:00
import dagger.BindsInstance
2019-12-13 02:12:19 +01:00
import dagger.Component
import dagger.android.AndroidInjectionModule
2019-12-21 20:17:08 +01:00
import dagger.android.AndroidInjector
2019-12-13 02:12:19 +01:00
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
2019-12-21 20:17:08 +01:00
import javax.inject.Singleton
2019-12-13 02:12:19 +01:00
2019-12-21 20:17:08 +01:00
@Singleton
2019-12-13 02:12:19 +01:00
@Component(
2019-12-21 20:17:08 +01:00
modules = [
AndroidInjectionModule::class,
2020-05-03 21:27:42 +02:00
CoreModule::class,
2019-12-21 20:17:08 +01:00
ActivitiesModule::class,
2019-12-23 13:27:15 +01:00
FragmentsModule::class,
2019-12-30 00:53:44 +01:00
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,
2020-05-02 00:17:39 +02:00
SMSModule::class,
DanaRSCommModule::class
2019-12-21 20:17:08 +01:00
]
2019-12-13 02:12:19 +01:00
)
2019-12-21 20:17:08 +01:00
interface AppComponent : AndroidInjector<MainApp> {
@Component.Builder
interface Builder {
@BindsInstance
2019-12-26 17:50:16 +01:00
fun application(mainApp: MainApp): Builder
2019-12-13 02:12:19 +01:00
2019-12-21 20:17:08 +01:00
fun build(): AppComponent
}
2019-12-13 02:12:19 +01:00
}