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-11 16:58:59 +02:00
|
|
|
import info.nightscout.androidaps.core.di.CoreModule
|
|
|
|
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
|
2020-04-24 12:00:31 +02:00
|
|
|
import javax.inject.Singleton
|
|
|
|
|
|
|
|
@Singleton
|
|
|
|
@Component(
|
|
|
|
modules = [
|
|
|
|
AndroidInjectionModule::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,
|
2020-09-01 22:19:08 +02:00
|
|
|
OmnipodModule::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-05-11 16:58:59 +02:00
|
|
|
DanaRSModule::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
|
|
|
}
|