Code quality
Code quality
This commit is contained in:
parent
4c88d8e3c2
commit
0644a5822f
30 changed files with 44 additions and 51 deletions
|
|
@ -9,4 +9,4 @@ interface AppBindings {
|
|||
fun coroutineScope(): CoroutineScope
|
||||
fun matrix(): Matrix
|
||||
fun sessionComponentsOwner(): SessionComponentsOwner
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ import io.element.android.x.core.di.DaggerMavericksBindings
|
|||
|
||||
@SingleIn(AppScope::class)
|
||||
@MergeComponent(AppScope::class)
|
||||
interface AppComponent: DaggerMavericksBindings {
|
||||
interface AppComponent : DaggerMavericksBindings {
|
||||
|
||||
@Component.Factory
|
||||
interface Factory {
|
||||
fun create(@ApplicationContext @BindsInstance context: Context): AppComponent
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,4 +17,4 @@ object AppModule {
|
|||
fun providesAppCoroutineScope(): CoroutineScope {
|
||||
return MainScope() + CoroutineName("ElementX Scope")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import io.element.android.x.matrix.MatrixClient
|
|||
|
||||
@SingleIn(SessionScope::class)
|
||||
@MergeSubcomponent(SessionScope::class)
|
||||
interface SessionComponent: DaggerMavericksBindings {
|
||||
interface SessionComponent : DaggerMavericksBindings {
|
||||
|
||||
fun matrixClient(): MatrixClient
|
||||
|
||||
|
|
|
|||
|
|
@ -41,5 +41,4 @@ class SessionComponentsOwner @Inject constructor(@ApplicationContext private val
|
|||
activeSessionComponent = null
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue