From a1cf58e0eee8d16576380e05a8d87e128242bf05 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Fri, 4 Jan 2019 13:56:12 -0500 Subject: Use coroutine version in kau --- app/build.gradle | 2 +- app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt | 2 -- gradle.properties | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 562de936..0cb401fb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -204,7 +204,7 @@ dependencies { // androidTestImplementation "io.mockk:mockk:${MOCKK}" - implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${COROUTINES}" + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${kau.coroutines}" implementation "org.apache.commons:commons-text:${COMMONS_TEXT}" diff --git a/app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt index 32a781df..e7520794 100644 --- a/app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt +++ b/app/src/test/kotlin/com/pitchedapps/frost/utils/CoroutineTest.kt @@ -16,7 +16,6 @@ */ package com.pitchedapps.frost.utils -import kotlinx.coroutines.CompletableDeferred import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.GlobalScope @@ -217,7 +216,6 @@ class CoroutineTest { @Ignore("Not yet working as unique only buffered removes the capacity limitation of the channel") @Test fun uniqueOnlyBuffer() { - val completable = CompletableDeferred() val channel = Channel(3) runBlocking { diff --git a/gradle.properties b/gradle.properties index 11127a3e..dcdb5630 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,8 +23,6 @@ ANDROID_GRADLE=3.2.1 # https://github.com/diffplug/spotless/blob/master/plugin-gradle/CHANGES.md SPOTLESS=3.17.0 -# https://github.com/Kotlin/kotlinx.coroutines/releases -COROUTINES=1.0.1 # https://github.com/bugsnag/bugsnag-android/releases BUGSNAG=4.9.3 # https://github.com/bugsnag/bugsnag-android-gradle-plugin/releases -- cgit v1.2.3