galex
02/05/2019, 8:18 PMactual val networkHttpClient: HttpClient
get() = HttpClient(OkHttp) {
engine {
if(BuildConfig.DEBUG)
addNetworkInterceptor(HttpLoggingInterceptor().apply {
level = HttpLoggingInterceptor.Level.BODY
})
}
install(JsonFeature) {
serializer = GsonSerializer()
}
}