package ru.fincode.tsudesk.core.network.di

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3.OkHttpClient
import ru.fincode.tsudesk.core.network.OkHttpClientFactory
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object OkHttpModule {

    @Provides
    @Singleton
    fun provideOkHttpClient(factory: OkHttpClientFactory): OkHttpClient =
        factory.create()
}
