summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Schimke <yuri@schimke.ee>2024-04-19 08:38:00 +0100
committerGitHub <noreply@github.com>2024-04-19 08:38:00 +0100
commit7998ec55521568ff93279b2d26c76c0319577db4 (patch)
tree02fa0b5324f141cba24aa57876570d91e5cd5bc3
parent7123b8b78cc38d39f0ea20bb709a4a44f1d42b2a (diff)
downloadhorologist-7998ec55521568ff93279b2d26c76c0319577db4.tar.gz
Update DataStore dependencies 1.0.0 to v1.1.0 (#2205)
-rw-r--r--datalayer/watch/src/test/java/com/google/android/horologist/datalayer/watch/WearDataLayerAppHelperTest.kt9
-rw-r--r--gradle/libs.versions.toml2
2 files changed, 10 insertions, 1 deletions
diff --git a/datalayer/watch/src/test/java/com/google/android/horologist/datalayer/watch/WearDataLayerAppHelperTest.kt b/datalayer/watch/src/test/java/com/google/android/horologist/datalayer/watch/WearDataLayerAppHelperTest.kt
index 5c58f0e7..933558f4 100644
--- a/datalayer/watch/src/test/java/com/google/android/horologist/datalayer/watch/WearDataLayerAppHelperTest.kt
+++ b/datalayer/watch/src/test/java/com/google/android/horologist/datalayer/watch/WearDataLayerAppHelperTest.kt
@@ -31,6 +31,7 @@ import com.google.android.horologist.data.WearableApiAvailability
import com.google.android.horologist.data.apphelper.SurfacesInfoSerializer
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.async
+import kotlinx.coroutines.cancelChildren
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.test.runTest
@@ -54,6 +55,8 @@ class WearDataLayerAppHelperTest {
}
assertThat(checkApiAvailability.await()).isFalse()
+
+ coroutineContext.cancelChildren()
}
@Test
@@ -70,6 +73,8 @@ class WearDataLayerAppHelperTest {
}
assertThat(checkApiAvailability.await()).isFalse()
+
+ coroutineContext.cancelChildren()
}
@Test
@@ -104,6 +109,8 @@ class WearDataLayerAppHelperTest {
val infoReverted = testDataStore.data.first()
assertThat(infoReverted.tilesList).isEmpty()
+
+ coroutineContext.cancelChildren()
}
@Test
@@ -138,5 +145,7 @@ class WearDataLayerAppHelperTest {
val infoReverted = testDataStore.data.first()
assertThat(infoReverted.complicationsList).isEmpty()
+
+ coroutineContext.cancelChildren()
}
}
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index 80a73e1a..2b5ecf33 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -5,7 +5,7 @@ androidx-complications-data = "1.2.1"
androidx-constraintlayout-compose = "1.0.1"
androidx-compose-material = "1.7.0-alpha07"
androidx-concurrent = "1.1.0"
-androidx-datastore = "1.0.0"
+androidx-datastore = "1.1.0"
androidx-health-services = "1.0.0-rc02"
androidx-hilt = "1.2.0"
androidx-media3 = "1.3.1"