Skip to content

Commit

Permalink
updated deps, lazy load api in client
Browse files Browse the repository at this point in the history
  • Loading branch information
luca committed Jul 14, 2020
1 parent fa20e06 commit 67ebe00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/src/main/java/com/kirkbushman/araw/RedditClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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) }
Expand Down

0 comments on commit 67ebe00

Please sign in to comment.