Bind identity service
This commit is contained in:
parent
363ae79378
commit
d0f226dcd1
|
@ -21,6 +21,7 @@ import dagger.Module
|
||||||
import dagger.Provides
|
import dagger.Provides
|
||||||
import io.realm.RealmConfiguration
|
import io.realm.RealmConfiguration
|
||||||
import okhttp3.OkHttpClient
|
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.database.RealmKeysUtils
|
||||||
import org.matrix.android.sdk.internal.di.AuthenticatedIdentity
|
import org.matrix.android.sdk.internal.di.AuthenticatedIdentity
|
||||||
import org.matrix.android.sdk.internal.di.IdentityDatabase
|
import org.matrix.android.sdk.internal.di.IdentityDatabase
|
||||||
|
@ -75,6 +76,9 @@ internal abstract class IdentityModule {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
abstract fun bindIdentityService(service: DefaultIdentityService): IdentityService
|
||||||
|
|
||||||
@Binds
|
@Binds
|
||||||
@AuthenticatedIdentity
|
@AuthenticatedIdentity
|
||||||
abstract fun bindAccessTokenProvider(provider: IdentityAccessTokenProvider): AccessTokenProvider
|
abstract fun bindAccessTokenProvider(provider: IdentityAccessTokenProvider): AccessTokenProvider
|
||||||
|
|
Loading…
Reference in New Issue