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
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
28
28
* Suspending wrapper around an OkHttp [Call], using [Call.enqueue].
29
29
*/
30
30
suspend 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
+ }
38
40
}
39
41
}
40
- }
41
42
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
+ }
44
46
}
45
- } )
47
+ )
46
48
47
49
continuation.invokeOnCancellation {
48
50
try {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ buildscript {
31
31
}
32
32
33
33
plugins {
34
- id ' com.diffplug.spotless' version ' 5.1 .1'
34
+ id ' com.diffplug.spotless' version ' 5.5 .1'
35
35
}
36
36
37
37
subprojects {
Original file line number Diff line number Diff line change 17
17
package com.example.jetcaster.buildsrc
18
18
19
19
object Versions {
20
- const val ktlint = " 0.37.2 "
20
+ const val ktlint = " 0.38.1 "
21
21
}
22
22
23
23
object 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 "
25
25
const val jdkDesugar = " com.android.tools:desugar_jdk_libs:1.0.9"
26
26
27
27
const val junit = " junit:junit:4.13"
28
28
29
29
const val material = " com.google.android.material:material:1.1.0"
30
30
31
31
object Accompanist {
32
- private const val version = " 0.2.0 "
32
+ private const val version = " 0.2.1 "
33
33
const val coil = " dev.chrisbanes.accompanist:accompanist-coil:$version "
34
34
}
35
35
@@ -62,7 +62,7 @@ object Libs {
62
62
63
63
object Compose {
64
64
const val snapshot = " "
65
- const val version = " 1.0.0-alpha01 "
65
+ const val version = " 1.0.0-alpha02 "
66
66
67
67
const val runtime = " androidx.compose.runtime:runtime:$version "
68
68
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
2
2
distributionPath =wrapper/dists
3
3
zipStoreBase =GRADLE_USER_HOME
4
4
zipStorePath =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