Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Update Kotlin and Coroutine version
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalmeida authored and mergify[bot] committed Mar 12, 2021
1 parent 12c9062 commit 33dc881
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 4 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ android {
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions.allWarningsAsErrors = true
kotlinOptions {
allWarningsAsErrors = true
freeCompilerArgs += "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"
}
}

dependencies {
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/java/org/mozilla/focus/utils/Debounce.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
package org.mozilla.focus.utils

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.Job
import kotlinx.coroutines.ObsoleteCoroutinesApi
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.ReceiveChannel
import kotlinx.coroutines.channels.consumeEach
Expand All @@ -22,8 +20,6 @@ import kotlinx.coroutines.launch
* @param channel the channel to debounce
* @return a throttled channel
*/
@ObsoleteCoroutinesApi
@ExperimentalCoroutinesApi
fun <T> CoroutineScope.debounce(time: Long, channel: ReceiveChannel<T>): ReceiveChannel<T> =
produce(coroutineContext, Channel.CONFLATED) {
var job: Job? = null
Expand Down
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ buildscript {
ext.architecture_components_version = '2.1.0'
ext.support_libraries_version = '1.0.0'
ext.espresso_version = '3.1.0-alpha4'
ext.kotlin_version = '1.3.61'
ext.coroutines_version = '1.3.0'
ext.kotlin_version = '1.4.30'
ext.coroutines_version = '1.4.2'
ext.mozilla_components_version = '73.0.8'
// Pinning the last working version of the service-telemetry component until we decide
// what we want to do with telemetry in the app.
Expand Down Expand Up @@ -33,7 +33,6 @@ plugins {
// other methods involve using undocumented APIs
// https://docs.gradle.org/current/userguide/plugins.html#plugins_dsl_limitations
id "io.gitlab.arturbosch.detekt" version "1.0.0.RC6-3"
id "org.jetbrains.kotlin.kapt" version "1.2.50"
}

detekt {
Expand Down

0 comments on commit 33dc881

Please sign in to comment.