From 26af7ccc772a4f9ea004481a7cdcc7abb2d60145 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 30 Oct 2022 19:38:18 -0400 Subject: [PATCH] Use BOM for kotlinx.coroutines dependencies --- app/build.gradle.kts | 2 ++ gradle/kotlinx.versions.toml | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 7496d41dc8..5fefe64a34 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -187,6 +187,8 @@ dependencies { implementation(libs.sqldelight.android.paging) implementation(kotlinx.reflect) + + implementation(platform(kotlinx.coroutines.bom)) implementation(kotlinx.bundles.coroutines) // AndroidX libraries diff --git a/gradle/kotlinx.versions.toml b/gradle/kotlinx.versions.toml index 854ae6a715..76e46ce3de 100644 --- a/gradle/kotlinx.versions.toml +++ b/gradle/kotlinx.versions.toml @@ -1,19 +1,19 @@ [versions] kotlin_version = "1.7.20" -coroutines_version = "1.6.4" -serialization_version = "1.4.1" +serialization_version = "1.4.0" xml_serialization_version = "0.84.3" [libraries] reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin_version" } gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin_version" } -coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines_version" } -coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines_version" } +coroutines-bom = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-bom", version = "1.6.4" } +coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core" } +coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android" } # TODO: 1.4.1 introduces an issue with cached serializers; see https://github.com/Kotlin/kotlinx.serialization/issues/2065 serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version = "1.4.0" } -serialization-json-okio = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json-okio", version.ref = "serialization_version" } +serialization-json-okio = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json-okio", version = "1.4.0" } serialization-protobuf = { module = "org.jetbrains.kotlinx:kotlinx-serialization-protobuf", version.ref = "serialization_version" } serialization-gradle = { module = "org.jetbrains.kotlin:kotlin-serialization", version.ref = "kotlin_version" } serialization-xml-core = { module = "io.github.pdvrieze.xmlutil:core-android", version.ref = "xml_serialization_version" }