Commit c4cd38b0 authored by Filipe de Lima Brito's avatar Filipe de Lima Brito

Add provideAuthTokenRepository function.

parent 4e2e3faa
...@@ -5,11 +5,14 @@ import android.arch.persistence.room.Room ...@@ -5,11 +5,14 @@ import android.arch.persistence.room.Room
import android.content.Context import android.content.Context
import chat.rocket.android.BuildConfig import chat.rocket.android.BuildConfig
import chat.rocket.android.app.RocketChatDatabase import chat.rocket.android.app.RocketChatDatabase
import chat.rocket.android.authentication.infraestructure.AuthTokenRepository
import chat.rocket.android.server.infraestructure.ServerDao import chat.rocket.android.server.infraestructure.ServerDao
import chat.rocket.android.util.TimberLogger import chat.rocket.android.util.TimberLogger
import chat.rocket.common.util.PlatformLogger import chat.rocket.common.util.PlatformLogger
import chat.rocket.core.RocketChatClient
import dagger.Module import dagger.Module
import dagger.Provides import dagger.Provides
import okhttp3.HttpUrl
import okhttp3.OkHttpClient import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor import okhttp3.logging.HttpLoggingInterceptor
import javax.inject.Singleton import javax.inject.Singleton
...@@ -70,6 +73,12 @@ class AppModule { ...@@ -70,6 +73,12 @@ class AppModule {
}.build() }.build()
} }
@Provides
@Singleton
fun provideAuthTokenRepository(): AuthTokenRepository {
return AuthTokenRepository()
}
@Provides @Provides
@Singleton @Singleton
fun providePlatformLogger(): PlatformLogger { fun providePlatformLogger(): PlatformLogger {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment