-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bec9913
commit 721bd79
Showing
28 changed files
with
87 additions
and
52 deletions.
There are no files selected for viewing
7 changes: 0 additions & 7 deletions
7
...dMain/kotlin/org/michaelbel/movies/ui/preview/provider/BooleanPreviewParameterProvider.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ovider/AccountPreviewParameterProvider.kt → ...review/AccountPreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...der/AppearancePreviewParameterProvider.kt → ...iew/AppearancePreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package org.michaelbel.movies.ui.preview.provider | ||
package org.michaelbel.movies.ui.preview | ||
|
||
import androidx.compose.ui.tooling.preview.datasource.CollectionPreviewParameterProvider | ||
import org.michaelbel.movies.common.appearance.FeedView | ||
import org.michaelbel.movies.ui.preview.base.CollectionPreviewParameterProvider | ||
|
||
class AppearancePreviewParameterProvider: CollectionPreviewParameterProvider<FeedView>(FeedView.VALUES) |
7 changes: 7 additions & 0 deletions
7
...src/commonMain/kotlin/org/michaelbel/movies/ui/preview/BooleanPreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.michaelbel.movies.ui.preview | ||
|
||
import org.michaelbel.movies.ui.preview.base.CollectionPreviewParameterProvider | ||
|
||
class BooleanPreviewParameterProvider: CollectionPreviewParameterProvider<Boolean>( | ||
listOf(true, false) | ||
) |
4 changes: 2 additions & 2 deletions
4
...ider/IconAliasPreviewParameterProvider.kt → ...view/IconAliasPreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package org.michaelbel.movies.ui.preview.provider | ||
package org.michaelbel.movies.ui.preview | ||
|
||
import androidx.compose.ui.tooling.preview.datasource.CollectionPreviewParameterProvider | ||
import org.michaelbel.movies.ui.appicon.IconAlias | ||
import org.michaelbel.movies.ui.preview.base.CollectionPreviewParameterProvider | ||
|
||
class IconAliasPreviewParameterProvider: CollectionPreviewParameterProvider<IconAlias>(IconAlias.VALUES) |
7 changes: 4 additions & 3 deletions
7
...ovider/MovieDbPreviewParameterProvider.kt → ...review/MovieDbPreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ider/MovieListPreviewParameterProvider.kt → ...view/MovieListPreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package org.michaelbel.movies.ui.preview.provider | ||
package org.michaelbel.movies.ui.preview | ||
|
||
import androidx.compose.ui.tooling.preview.datasource.CollectionPreviewParameterProvider | ||
import org.michaelbel.movies.common.list.MovieList | ||
import org.michaelbel.movies.ui.preview.base.CollectionPreviewParameterProvider | ||
|
||
class MovieListPreviewParameterProvider: CollectionPreviewParameterProvider<MovieList>(MovieList.VALUES) |
7 changes: 4 additions & 3 deletions
7
...provider/MoviePreviewParameterProvider.kt → .../preview/MoviePreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...r/SuggestionDbPreviewParameterProvider.kt → ...w/SuggestionDbPreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...provider/ThemePreviewParameterProvider.kt → .../preview/ThemePreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package org.michaelbel.movies.ui.preview.provider | ||
package org.michaelbel.movies.ui.preview | ||
|
||
import androidx.compose.ui.tooling.preview.datasource.CollectionPreviewParameterProvider | ||
import org.michaelbel.movies.common.theme.AppTheme | ||
import org.michaelbel.movies.ui.preview.base.CollectionPreviewParameterProvider | ||
|
||
class ThemePreviewParameterProvider: CollectionPreviewParameterProvider<AppTheme>(AppTheme.VALUES) |
4 changes: 2 additions & 2 deletions
4
...provider/TitlePreviewParameterProvider.kt → .../preview/TitlePreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ovider/VersionPreviewParameterProvider.kt → ...review/VersionPreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...onMain/kotlin/org/michaelbel/movies/ui/preview/base/CollectionPreviewParameterProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.michaelbel.movies.ui.preview.base | ||
|
||
import org.jetbrains.compose.ui.tooling.preview.PreviewParameterProvider | ||
|
||
open class CollectionPreviewParameterProvider<T>( | ||
private val collection: Collection<T> | ||
): PreviewParameterProvider<T> { | ||
|
||
override val values: Sequence<T> | ||
get() = collection.asSequence() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.