Rename duplicated names
This commit is contained in:
parent
1a8f00c5e7
commit
52fda97582
3 changed files with 6 additions and 6 deletions
|
@ -7,7 +7,7 @@ import androidx.localbroadcastmanager.content.LocalBroadcastManager
|
|||
import androidx.preference.PreferenceManager
|
||||
import dagger.android.AndroidInjector
|
||||
import dagger.android.DaggerApplication
|
||||
import info.nightscout.androidaps.di.DaggerAppComponent
|
||||
import info.nightscout.androidaps.di.DaggerWearComponent
|
||||
|
||||
class Aaps : DaggerApplication(), OnSharedPreferenceChangeListener {
|
||||
|
||||
|
@ -17,7 +17,7 @@ class Aaps : DaggerApplication(), OnSharedPreferenceChangeListener {
|
|||
}
|
||||
|
||||
override fun applicationInjector(): AndroidInjector<out DaggerApplication> =
|
||||
DaggerAppComponent
|
||||
DaggerWearComponent
|
||||
.builder()
|
||||
.application(this)
|
||||
.build()
|
||||
|
|
|
@ -12,10 +12,10 @@ import javax.inject.Singleton
|
|||
modules = [
|
||||
AndroidInjectionModule::class,
|
||||
WearModule::class,
|
||||
ServicesModule::class
|
||||
WearServicesModule::class
|
||||
]
|
||||
)
|
||||
interface AppComponent : AndroidInjector<Aaps> {
|
||||
interface WearComponent : AndroidInjector<Aaps> {
|
||||
|
||||
@Component.Builder
|
||||
interface Builder {
|
||||
|
@ -23,6 +23,6 @@ interface AppComponent : AndroidInjector<Aaps> {
|
|||
@BindsInstance
|
||||
fun application(aaps: Aaps): Builder
|
||||
|
||||
fun build(): AppComponent
|
||||
fun build(): WearComponent
|
||||
}
|
||||
}
|
|
@ -8,7 +8,7 @@ import info.nightscout.androidaps.watchfaces.*
|
|||
|
||||
@Module
|
||||
@Suppress("unused")
|
||||
abstract class ServicesModule {
|
||||
abstract class WearServicesModule {
|
||||
|
||||
@ContributesAndroidInjector abstract fun contributesListenerService(): ListenerService
|
||||
|
Loading…
Reference in a new issue