Skip to content

Commit 5d33c6b

Browse files
author
Chris
committedSep 14, 2020
Update to Compose 1.0.0-alpha02
Also updated: - AGP - Gradle - ktlint - Spotless Change-Id: I147ee3c2196dbba1b2aaf14bb3ae0e269457afea
1 parent e70ba38 commit 5d33c6b

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed
 

Diff for: ‎Jetcaster/app/src/main/java/com/example/jetcaster/data/OkHttpExtensions.kt

+13-11
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,23 @@ import kotlin.coroutines.resumeWithException
2828
* Suspending wrapper around an OkHttp [Call], using [Call.enqueue].
2929
*/
3030
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+
}
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 {

Diff for: ‎Jetcaster/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ buildscript {
3131
}
3232

3333
plugins {
34-
id 'com.diffplug.spotless' version '5.1.1'
34+
id 'com.diffplug.spotless' version '5.5.1'
3535
}
3636

3737
subprojects {

Diff for: ‎Jetcaster/buildSrc/src/main/java/com/example/jetcaster/buildsrc/dependencies.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
package com.example.jetcaster.buildsrc
1818

1919
object Versions {
20-
const val ktlint = "0.37.2"
20+
const val ktlint = "0.38.1"
2121
}
2222

2323
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"
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}"

Diff for: ‎Jetcaster/gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
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

0 commit comments

Comments
 (0)