Skip to content

Commit

Permalink
Merge pull request #66 from krzdabrowski/bugfix/pull-to-refresh-cleanups
Browse files Browse the repository at this point in the history
Clean-up after migrating PullToRefresh to Material3
  • Loading branch information
krzdabrowski authored Jan 14, 2024
2 parents d59e8d8 + 2f6a6e1 commit 2d7e54f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion basic-feature/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ dependencies {
implementation(project(":core"))

implementation(platform(libs.compose.bom))
implementation(libs.accompanist.swipe.refresh)
implementation(libs.coil)
implementation(libs.compose.material3)
implementation(libs.hilt)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class RocketsViewModelTest {
}

@Test
fun `should show loading state with no error state first during rockets refresh`() = runTest {
fun `should show loading state with no error state during rockets refresh`() = runTest {
// Given
every { getRocketsUseCase() } returns emptyFlow()
setUpRocketsViewModel()
Expand All @@ -79,7 +79,6 @@ class RocketsViewModelTest {
// Then
objectUnderTest.uiState.test {
val actualItem = awaitItem()
println(actualItem)

assertTrue(actualItem.isLoading)
assertFalse(actualItem.isError)
Expand Down
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ksp = "1.9.22-1.0.16"
ktlint = "3.16.0"

# production libraries
accompanist = "0.32.0"
coil = "2.5.0"
compose-bom = "2023.10.01"
compose-compiler = "1.5.8"
Expand Down Expand Up @@ -51,7 +50,6 @@ ktlint = { id = "org.jmailen.kotlinter", version.re

[libraries]
# production libraries
accompanist-swipe-refresh = { module = "com.google.accompanist:accompanist-swiperefresh", version.ref = "accompanist" }
coil = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "compose-bom" }
compose-material3 = { module = "androidx.compose.material3:material3", version.ref = "compose-material3" }
Expand Down

0 comments on commit 2d7e54f

Please sign in to comment.