Clean forgotten code
This commit is contained in:
parent
17dcbc1cd6
commit
1d5587c5ba
|
@ -2,7 +2,6 @@ package im.vector.matrix.android.internal.di
|
||||||
|
|
||||||
import im.vector.matrix.android.internal.network.AccessTokenInterceptor
|
import im.vector.matrix.android.internal.network.AccessTokenInterceptor
|
||||||
import im.vector.matrix.android.internal.network.NetworkConnectivityChecker
|
import im.vector.matrix.android.internal.network.NetworkConnectivityChecker
|
||||||
import im.vector.matrix.android.internal.network.RequestExecutor
|
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
import okhttp3.logging.HttpLoggingInterceptor
|
import okhttp3.logging.HttpLoggingInterceptor
|
||||||
import org.koin.dsl.context.ModuleDefinition
|
import org.koin.dsl.context.ModuleDefinition
|
||||||
|
@ -51,10 +50,6 @@ class NetworkModule : Module {
|
||||||
NetworkConnectivityChecker(get())
|
NetworkConnectivityChecker(get())
|
||||||
}
|
}
|
||||||
|
|
||||||
single {
|
|
||||||
RequestExecutor(get(), get())
|
|
||||||
}
|
|
||||||
|
|
||||||
factory {
|
factory {
|
||||||
Retrofit.Builder()
|
Retrofit.Builder()
|
||||||
.client(get())
|
.client(get())
|
||||||
|
|
|
@ -38,7 +38,7 @@ internal class SessionModule(private val sessionParams: SessionParams) : Module
|
||||||
RealmConfiguration.Builder()
|
RealmConfiguration.Builder()
|
||||||
.directory(directory)
|
.directory(directory)
|
||||||
.name("disk_store.realm")
|
.name("disk_store.realm")
|
||||||
.inMemory()
|
.deleteRealmIfMigrationNeeded()
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue