Aaps -> WearApp

This commit is contained in:
Milos Kozak 2022-11-16 10:36:42 +01:00
parent 1b08e78809
commit 152fd063cb
4 changed files with 8 additions and 8 deletions

View file

@ -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"

View file

@ -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

View file

@ -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
}

View file

@ -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
}
}