diff --git a/build.gradle b/build.gradle index 77b64860..c21921ff 100644 --- a/build.gradle +++ b/build.gradle @@ -12,11 +12,11 @@ buildscript { kotlin_ver = '1.3.72' ktx_core_ver = '1.3.0' - ktlint_ver = '0.37.1' - constr_ver = '2.0.0-beta7' + ktlint_ver = '0.37.2' + constr_ver = '2.0.0-beta8' retrofit_ver = '2.9.0' moshi_ver = '1.9.3' // '1.10.0-SNAPSHOT' - okhttp_ver = '4.7.2' + okhttp_ver = '4.8.0' oauth2_ver = '1.2.1' mdc_ver = '1.1.0' epoxy_ver = '3.11.0' diff --git a/lib/src/main/java/com/kirkbushman/araw/RedditClient.kt b/lib/src/main/java/com/kirkbushman/araw/RedditClient.kt index bd7e594e..b036bb53 100644 --- a/lib/src/main/java/com/kirkbushman/araw/RedditClient.kt +++ b/lib/src/main/java/com/kirkbushman/araw/RedditClient.kt @@ -46,7 +46,7 @@ class RedditClient @JvmOverloads constructor (private val bearer: TokenBearer, l } } - private val api = getApi(logging) + private val api by lazy { getApi(logging) } val accountsClient by lazy { AccountsClient(api, ::getHeaderMap) } val contributionsClient by lazy { ContributionsClient(api, ::getHeaderMap) }