File tree Expand file tree Collapse file tree 4 files changed +19
-17
lines changed
app/src/main/java/com/example/jetcaster/data
buildSrc/src/main/java/com/example/jetcaster/buildsrc Expand file tree Collapse file tree 4 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,23 @@ import kotlin.coroutines.resumeWithException
2828 * Suspending wrapper around an OkHttp [Call], using [Call.enqueue].
2929 */
3030suspend fun Call.await (): Response = suspendCancellableCoroutine { continuation ->
31- enqueue(object : Callback {
32- override fun onResponse (call : Call , response : Response ) {
33- continuation.resume(response) {
34- // If we have a response but we're cancelled while resuming, we need to
35- // close() the unused response
36- if (response.body != null ) {
37- response.closeQuietly()
31+ enqueue(
32+ object : Callback {
33+ override fun onResponse (call : Call , response : Response ) {
34+ continuation.resume(response) {
35+ // If we have a response but we're cancelled while resuming, we need to
36+ // close() the unused response
37+ if (response.body != null ) {
38+ response.closeQuietly()
39+ }
3840 }
3941 }
40- }
4142
42- override fun onFailure (call : Call , e : IOException ) {
43- continuation.resumeWithException(e)
43+ override fun onFailure (call : Call , e : IOException ) {
44+ continuation.resumeWithException(e)
45+ }
4446 }
45- } )
47+ )
4648
4749 continuation.invokeOnCancellation {
4850 try {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ buildscript {
3131}
3232
3333plugins {
34- id ' com.diffplug.spotless' version ' 5.1 .1'
34+ id ' com.diffplug.spotless' version ' 5.5 .1'
3535}
3636
3737subprojects {
Original file line number Diff line number Diff line change 1717package com.example.jetcaster.buildsrc
1818
1919object Versions {
20- const val ktlint = " 0.37.2 "
20+ const val ktlint = " 0.38.1 "
2121}
2222
2323object Libs {
24- const val androidGradlePlugin = " com.android.tools.build:gradle:4.2.0-alpha08 "
24+ const val androidGradlePlugin = " com.android.tools.build:gradle:4.2.0-alpha10 "
2525 const val jdkDesugar = " com.android.tools:desugar_jdk_libs:1.0.9"
2626
2727 const val junit = " junit:junit:4.13"
2828
2929 const val material = " com.google.android.material:material:1.1.0"
3030
3131 object Accompanist {
32- private const val version = " 0.2.0 "
32+ private const val version = " 0.2.1 "
3333 const val coil = " dev.chrisbanes.accompanist:accompanist-coil:$version "
3434 }
3535
@@ -62,7 +62,7 @@ object Libs {
6262
6363 object Compose {
6464 const val snapshot = " "
65- const val version = " 1.0.0-alpha01 "
65+ const val version = " 1.0.0-alpha02 "
6666
6767 const val runtime = " androidx.compose.runtime:runtime:$version "
6868 const val foundation = " androidx.compose.foundation:foundation:${version} "
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22distributionPath =wrapper/dists
33zipStoreBase =GRADLE_USER_HOME
44zipStorePath =wrapper/dists
5- distributionUrl =https\://services.gradle.org/distributions/gradle-6.6-bin.zip
5+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.6.1 -bin.zip
You can’t perform that action at this time.
0 commit comments