diff options
author | Allan Wang <me@allanwang.ca> | 2018-04-09 01:17:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 01:17:21 -0400 |
commit | 4c0ba22041ac01a5f0e1cc88a6c292034d697955 (patch) | |
tree | 0cba14ad715988b64cbcdc60c85f81671af679fd /app/src/main/kotlin/com/pitchedapps/frost/facebook/requests | |
parent | a70ce6a2e2d25aa001a085169f25ba39532b3f11 (diff) | |
download | frost-4c0ba22041ac01a5f0e1cc88a6c292034d697955.tar.gz frost-4c0ba22041ac01a5f0e1cc88a6c292034d697955.tar.bz2 frost-4c0ba22041ac01a5f0e1cc88a6c292034d697955.zip |
Feature/download manager (#855)
* Add initial github release check
* Create update service
* Clean old manager directory
* Update kau
* Update updateActivity snippet
* Add back gradle keys
* Remove update service functionality
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/facebook/requests')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/FbRequest.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/FbRequest.kt b/app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/FbRequest.kt index c70ae1ae..b5c2e4e9 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/FbRequest.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/facebook/requests/FbRequest.kt @@ -69,7 +69,7 @@ internal inline fun <T : Any?> RequestAuth.frostRequest( return FrostRequest(request.call(), invoke) } -private val client: OkHttpClient by lazy { +val httpClient: OkHttpClient by lazy { val builder = OkHttpClient.Builder() if (BuildConfig.DEBUG) builder.addInterceptor(HttpLoggingInterceptor() @@ -97,7 +97,7 @@ private fun String.requestBuilder() = Request.Builder() .header("User-Agent", USER_AGENT_BASIC) .cacheControl(CacheControl.FORCE_NETWORK) -fun Request.Builder.call() = client.newCall(build())!! +fun Request.Builder.call() = httpClient.newCall(build())!! fun String.getAuth(): RequestAuth { L.v { "Getting auth for ${hashCode()}" } |