Skip to content

Commit

Permalink
Remove Compose previews
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeso committed Apr 29, 2024
1 parent 594f7f2 commit b9ab160
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 23 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- Use "debug" signing config instead of creating a new one
- Remove unnecessary lines from .gitignore
- Remove Compose previews

## [1.8.2](https://github.com/ldeso/blitz/releases/tag/v1.8.2) – 2024-04-19

Expand Down
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ dependencies {
implementation(libs.androidx.compose.foundation)
implementation(libs.androidx.lifecycle.runtime.compose)
implementation(libs.androidx.lifecycle.viewmodel.compose)
implementation(libs.androidx.ui.tooling.preview)
debugImplementation(libs.androidx.ui.tooling)

testImplementation(kotlin("test"))
testImplementation(libs.kotlinx.coroutines.test)
}
Expand Down
2 changes: 0 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ androidx-compose-compiler = { group = "androidx.compose.compiler", name = "compi
androidx-compose-foundation = { group = "androidx.compose.foundation", name = "foundation" }
androidx-lifecycle-runtime-compose = { group = "androidx.lifecycle", name = "lifecycle-runtime-compose", version.ref = "androidxLifecycle" }
androidx-lifecycle-viewmodel-compose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "androidxLifecycle" }
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
kotlinx-coroutines-test = { group = "org.jetbrains.kotlinx", name = "kotlinx-coroutines-test", version.ref = "kotlinxCoroutines" }

[plugins]
Expand Down
19 changes: 0 additions & 19 deletions src/main/kotlin/ui/ClockContent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.tooling.preview.PreviewScreenSizes
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import net.leodesouza.blitz.ui.components.BasicTime
Expand Down Expand Up @@ -131,23 +129,6 @@ fun ClockContent(
}
}

/** Preview the chess clock screen content in Android Studio. */
@Preview
@PreviewScreenSizes
@Composable
private fun ClockContentPreview() {
ClockContent(
whiteTimeProvider = { 5.minutes + 3.seconds },
blackTimeProvider = { 5.minutes + 3.seconds },
clockStateProvider = { ClockState.FULL_RESET },
playerStateProvider = { PlayerState.WHITE },
leaningSideProvider = { LeaningSide.RIGHT },
backEventActionProvider = { ClockBackAction.PAUSE },
backEventProgressProvider = { 0F },
backEventSwipeEdgeProvider = { BackEventCompat.EDGE_LEFT },
)
}

/**
* Set the rotation, translation and opacity of a BasicTime element in a graphics layer scope.
*
Expand Down

0 comments on commit b9ab160

Please sign in to comment.