mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Bind identity service
This commit is contained in:
parent
363ae79378
commit
d0f226dcd1
1 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@ import dagger.Module
|
|||
import dagger.Provides
|
||||
import io.realm.RealmConfiguration
|
||||
import okhttp3.OkHttpClient
|
||||
import org.matrix.android.sdk.api.session.identity.IdentityService
|
||||
import org.matrix.android.sdk.internal.database.RealmKeysUtils
|
||||
import org.matrix.android.sdk.internal.di.AuthenticatedIdentity
|
||||
import org.matrix.android.sdk.internal.di.IdentityDatabase
|
||||
|
@ -75,6 +76,9 @@ internal abstract class IdentityModule {
|
|||
}
|
||||
}
|
||||
|
||||
@Binds
|
||||
abstract fun bindIdentityService(service: DefaultIdentityService): IdentityService
|
||||
|
||||
@Binds
|
||||
@AuthenticatedIdentity
|
||||
abstract fun bindAccessTokenProvider(provider: IdentityAccessTokenProvider): AccessTokenProvider
|
||||
|
|
Loading…
Reference in a new issue