Aaps -> WearApp
This commit is contained in:
parent
1b08e78809
commit
152fd063cb
|
@ -11,7 +11,7 @@
|
|||
<uses-sdk tools:overrideLibrary="androidx.wear.tiles" />
|
||||
|
||||
<application
|
||||
android:name=".Aaps"
|
||||
android:name=".WearApp"
|
||||
android:allowBackup="true"
|
||||
android:icon="@drawable/ic_icon"
|
||||
android:label="@string/app_name"
|
||||
|
|
|
@ -17,7 +17,7 @@ import info.nightscout.rx.logging.AAPSLogger
|
|||
import info.nightscout.rx.logging.LTag
|
||||
import javax.inject.Inject
|
||||
|
||||
class Aaps : DaggerApplication(), OnSharedPreferenceChangeListener {
|
||||
class WearApp : DaggerApplication(), OnSharedPreferenceChangeListener {
|
||||
|
||||
@Inject lateinit var aapsLogger: AAPSLogger
|
||||
@Inject lateinit var rxBus: RxBus
|
|
@ -4,7 +4,7 @@ import dagger.BindsInstance
|
|||
import dagger.Component
|
||||
import dagger.android.AndroidInjectionModule
|
||||
import dagger.android.AndroidInjector
|
||||
import info.nightscout.androidaps.Aaps
|
||||
import info.nightscout.androidaps.WearApp
|
||||
import javax.inject.Singleton
|
||||
|
||||
@Singleton
|
||||
|
@ -15,13 +15,13 @@ import javax.inject.Singleton
|
|||
WearServicesModule::class
|
||||
]
|
||||
)
|
||||
interface WearComponent : AndroidInjector<Aaps> {
|
||||
interface WearComponent : AndroidInjector<WearApp> {
|
||||
|
||||
@Component.Builder
|
||||
interface Builder {
|
||||
|
||||
@BindsInstance
|
||||
fun application(aaps: Aaps): Builder
|
||||
fun application(aaps: WearApp): Builder
|
||||
|
||||
fun build(): WearComponent
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import android.content.Context
|
|||
import dagger.Binds
|
||||
import dagger.Module
|
||||
import dagger.android.HasAndroidInjector
|
||||
import info.nightscout.androidaps.Aaps
|
||||
import info.nightscout.androidaps.WearApp
|
||||
import info.nightscout.rx.di.RxModule
|
||||
import info.nightscout.shared.di.SharedModule
|
||||
import info.nightscout.shared.impl.di.SharedImplModule
|
||||
|
@ -24,8 +24,8 @@ open class WearModule {
|
|||
@Module
|
||||
interface AppBindings {
|
||||
|
||||
@Binds fun bindContext(aaps: Aaps): Context
|
||||
@Binds fun bindInjector(aaps: Aaps): HasAndroidInjector
|
||||
@Binds fun bindContext(aaps: WearApp): Context
|
||||
@Binds fun bindInjector(aaps: WearApp): HasAndroidInjector
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue