Skip to content

Commit

Permalink
[Jetsnack] Remove low API level previews
Browse files Browse the repository at this point in the history
  • Loading branch information
JolandaVerhoef committed Jun 3, 2021
1 parent 9b6632f commit 0e40383
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ private val ButtonShape = RoundedCornerShape(percent = 50)

@Preview("default", "round")
@Preview("dark theme", "round", uiMode = UI_MODE_NIGHT_YES)
@Preview("api 21", "round", apiLevel = 21)
@Preview("large font", "round", fontScale = 2f)
@Composable
private fun ButtonPreview() {
Expand All @@ -119,7 +118,6 @@ private fun ButtonPreview() {

@Preview("default", "rectangle")
@Preview("dark theme", "rectangle", uiMode = UI_MODE_NIGHT_YES)
@Preview("api 21", "rectangle", apiLevel = 21)
@Preview("large font", "rectangle", fontScale = 2f)
@Composable
private fun RectangleButtonPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ fun JetsnackCard(

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
private fun CardPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ fun FilterChip(

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
private fun FilterDisabledPreview() {
Expand All @@ -154,7 +153,6 @@ private fun FilterDisabledPreview() {

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
private fun FilterEnabledPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ fun QuantitySelector(

@Preview("default")
@Preview("dark theme", uiMode = UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
fun QuantitySelectorPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ fun SnackImage(

@Preview("default")
@Preview("dark theme", uiMode = UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
fun SnackCardPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ fun DestinationBar(modifier: Modifier = Modifier) {

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
fun PreviewDestinationBar() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ private fun SnackCollectionList(

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
fun HomePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ fun Profile(modifier: Modifier = Modifier) {

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
fun ProfilePreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ private fun CheckoutBar(modifier: Modifier = Modifier) {

@Preview("default")
@Preview("dark theme", uiMode = UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
private fun CartPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ private fun SearchCategory(

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
private fun SearchCategoryPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ fun NoResults(

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
private fun SearchResultPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ private fun SearchHint() {

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
private fun SearchBarPreview() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ private fun Suggestion(

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
fun PreviewSuggestions() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ private fun CartBottomBar(modifier: Modifier = Modifier) {

@Preview("default")
@Preview("dark theme", uiMode = Configuration.UI_MODE_NIGHT_YES)
@Preview("api 21", apiLevel = 21)
@Preview("large font", fontScale = 2f)
@Composable
private fun SnackDetailPreview() {
Expand Down

0 comments on commit 0e40383

Please sign in to comment.