Skip to content

Commit

Permalink
Update DataStore dependencies 1.0.0 to v1.1.0 (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke authored Apr 19, 2024
1 parent 7123b8b commit 7998ec5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,6 +55,8 @@ class WearDataLayerAppHelperTest {
}

assertThat(checkApiAvailability.await()).isFalse()

coroutineContext.cancelChildren()
}

@Test
Expand All @@ -70,6 +73,8 @@ class WearDataLayerAppHelperTest {
}

assertThat(checkApiAvailability.await()).isFalse()

coroutineContext.cancelChildren()
}

@Test
Expand Down Expand Up @@ -104,6 +109,8 @@ class WearDataLayerAppHelperTest {

val infoReverted = testDataStore.data.first()
assertThat(infoReverted.tilesList).isEmpty()

coroutineContext.cancelChildren()
}

@Test
Expand Down Expand Up @@ -138,5 +145,7 @@ class WearDataLayerAppHelperTest {

val infoReverted = testDataStore.data.first()
assertThat(infoReverted.complicationsList).isEmpty()

coroutineContext.cancelChildren()
}
}
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7998ec5

Please sign in to comment.