pda
androidJvm
app
/
net.artux.pda.di
/
NetworkModule
Network
Module
@
Module
(
includes
=
AppModule::class
)
open
class
NetworkModule
Members
Constructors
Network
Module
Link copied to clipboard
constructor
(
)
Functions
api
Client
Link copied to clipboard
@
Provides
@
Singleton
open
fun
apiClient
(
okHttpClient
:
OkHttpClient
,
remoteConfig
:
FirebaseRemoteConfig
)
:
ApiClient
defaults
Link copied to clipboard
@
Provides
@
Singleton
open
fun
defaults
(
)
:
Map
<
String
,
Any
>
get
Default
Api
Link copied to clipboard
@
Provides
@
Singleton
open
fun
getDefaultApi
(
apiClient
:
ApiClient
)
:
DefaultApi
get
Gson
Link copied to clipboard
@
Provides
open
fun
getGson
(
)
:
Gson
http
Client
Link copied to clipboard
@
Provides
@
Singleton
open
fun
httpClient
(
dataManager
:
DataManager
)
:
OkHttpClient
remote
Config
Link copied to clipboard
@
Provides
@
Singleton
open
fun
remoteConfig
(
defaults
:
Map
<
String
,
Any
>
)
:
FirebaseRemoteConfig
retrofit
Link copied to clipboard
@
Provides
@
Singleton
open
fun
retrofit
(
client
:
OkHttpClient
,
remoteConfig
:
FirebaseRemoteConfig
,
gson
:
Gson
)
:
Retrofit