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

50 lines
1.4 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-05-06 01:27:38 +02:00
import info.nightscout.androidaps.danars.dependencyInjection.DanaRSActivitiesModule
2020-05-10 23:45:49 +02:00
import info.nightscout.androidaps.danars.dependencyInjection.DanaRSCommModule
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-10 23:45:49 +02:00
PluginsModule::class,
SkinsModule::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,
UIModule::class,
2020-05-10 23:45:49 +02:00
CoreModule::class,
2020-05-06 01:27:38 +02:00
DanaRSCommModule::class,
DanaRSActivitiesModule::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
}