Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbel committed Jul 22, 2024
1 parent 38fe54c commit bec9913
Show file tree
Hide file tree
Showing 62 changed files with 115 additions and 1,111 deletions.
1 change: 0 additions & 1 deletion androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ dependencies {
testImplementation(libs.bundles.junit.android)
androidTestImplementation(libs.bundles.test.espresso.android)
androidTestImplementation(libs.bundles.test.ext.junit.android)
androidTestImplementation(libs.bundles.compose.ui.test.android)
androidTestImplementation(libs.bundles.benchmark.android)
debugImplementation(libs.bundles.leakcanary.android)
lintChecks(libs.lint.checks)
Expand Down
20 changes: 0 additions & 20 deletions androidApp/src/main/kotlin/org/michaelbel/sandbox/KotlinSandbox.kt

This file was deleted.

1 change: 1 addition & 0 deletions core/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ kotlin {
jvmMain.dependencies {
api(compose.desktop.common)
api(compose.desktop.currentOs)
api(libs.bundles.compose.desktop)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import org.michaelbel.movies.common.theme.AppTheme
import org.jetbrains.compose.ui.tooling.preview.Preview
import org.michaelbel.movies.ui.R
import org.michaelbel.movies.ui.accessibility.MoviesContentDescription
import org.michaelbel.movies.ui.icons.MoviesIcons
import org.michaelbel.movies.ui.ktx.appNotificationSettingsIntent
import org.michaelbel.movies.ui.preview.DevicePreviews
import org.michaelbel.movies.ui.theme.MoviesTheme
import org.michaelbel.movies.ui.R

@Composable
fun NotificationBottomSheet(
Expand Down Expand Up @@ -156,8 +154,8 @@ fun NotificationBottomSheet(
}
}

@Preview
@Composable
@DevicePreviews
private fun NotificationBottomSheetPreview() {
MoviesTheme {
NotificationBottomSheet(
Expand All @@ -167,19 +165,4 @@ private fun NotificationBottomSheetPreview() {
onDismissRequest = {}
)
}
}

@Composable
@Preview
private fun NotificationBottomSheetAmoledPreview() {
MoviesTheme(
theme = AppTheme.Amoled
) {
NotificationBottomSheet(
modifier = Modifier
.fillMaxWidth()
.background(MaterialTheme.colorScheme.primaryContainer),
onDismissRequest = {}
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import org.michaelbel.movies.common.theme.AppTheme
import org.jetbrains.compose.ui.tooling.preview.Preview
import org.michaelbel.movies.ui.accessibility.MoviesContentDescription
import org.michaelbel.movies.ui.icons.MoviesIcons
import org.michaelbel.movies.ui.preview.DevicePreviews
import org.michaelbel.movies.ui.theme.MoviesTheme

@Composable
Expand Down Expand Up @@ -61,26 +59,13 @@ fun VoiceIcon(
}
}

@Preview
@Composable
@DevicePreviews
private fun VoiceIconPreview() {
MoviesTheme {
VoiceIcon(
onInputText = {},
modifier = Modifier.background(MaterialTheme.colorScheme.primaryContainer)
)
}
}

@Composable
@Preview
private fun VoiceIconAmoledPreview() {
MoviesTheme(
theme = AppTheme.Amoled
) {
VoiceIcon(
onInputText = {},
modifier = Modifier.background(MaterialTheme.colorScheme.primaryContainer)
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import org.michaelbel.movies.common.theme.AppTheme
import org.jetbrains.compose.ui.tooling.preview.Preview
import org.michaelbel.movies.ui.R
import org.michaelbel.movies.ui.accessibility.MoviesContentDescription
import org.michaelbel.movies.ui.icons.MoviesIcons
import org.michaelbel.movies.ui.preview.DevicePreviews
import org.michaelbel.movies.ui.theme.MoviesTheme
import org.michaelbel.movies.ui.R

@Composable
fun PageFailure(
Expand Down Expand Up @@ -79,8 +77,8 @@ fun PageFailure(
}
}

@Preview
@Composable
@DevicePreviews
private fun PageFailurePreview() {
MoviesTheme {
PageFailure(
Expand All @@ -89,18 +87,4 @@ private fun PageFailurePreview() {
.background(MaterialTheme.colorScheme.primaryContainer)
)
}
}

@Composable
@Preview
private fun PageFailureAmoledPreview() {
MoviesTheme(
theme = AppTheme.Amoled
) {
PageFailure(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colorScheme.primaryContainer)
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ import androidx.compose.foundation.lazy.staggeredgrid.StaggeredGridCells
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import org.jetbrains.compose.ui.tooling.preview.Preview
import org.michaelbel.movies.common.appearance.FeedView
import org.michaelbel.movies.common.theme.AppTheme
import org.michaelbel.movies.network.model.MovieResponse
import org.michaelbel.movies.persistence.database.entity.pojo.MoviePojo
import org.michaelbel.movies.ui.compose.movie.MovieColumn
Expand All @@ -27,11 +26,6 @@ import org.michaelbel.movies.ui.ktx.isPortrait
import org.michaelbel.movies.ui.placeholder.PlaceholderHighlight
import org.michaelbel.movies.ui.placeholder.material3.fade
import org.michaelbel.movies.ui.placeholder.placeholder
import org.michaelbel.movies.ui.preview.DeviceLandscapePreview
import org.michaelbel.movies.ui.preview.DeviceLandscapePreviews
import org.michaelbel.movies.ui.preview.DevicePreviews
import org.michaelbel.movies.ui.preview.DeviceUserLandscapePreviews
import org.michaelbel.movies.ui.preview.DeviceUserPreviews
import org.michaelbel.movies.ui.theme.MoviesTheme

@Composable
Expand Down Expand Up @@ -148,8 +142,8 @@ private fun PageLoadingStaggeredGrid(
}
}

@Preview
@Composable
@DevicePreviews
private fun PageLoadingColumnPreview() {
MoviesTheme {
PageLoadingColumn(
Expand All @@ -160,22 +154,8 @@ private fun PageLoadingColumnPreview() {
}
}

@Composable
@Preview
private fun PageLoadingColumnAmoledPreview() {
MoviesTheme(
theme = AppTheme.Amoled
) {
PageLoadingColumn(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colorScheme.primaryContainer)
)
}
}

@Composable
@DeviceLandscapePreviews
private fun PageLoadingGridPreview() {
MoviesTheme {
PageLoadingGrid(
Expand All @@ -186,22 +166,8 @@ private fun PageLoadingGridPreview() {
}
}

@Preview
@Composable
@DeviceLandscapePreview
private fun PageLoadingGridAmoledPreview() {
MoviesTheme(
theme = AppTheme.Amoled
) {
PageLoadingGrid(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colorScheme.primaryContainer)
)
}
}

@Composable
@DeviceUserLandscapePreviews
private fun PageLoadingStaggeredGridPreview() {
MoviesTheme {
PageLoadingStaggeredGrid(
Expand All @@ -210,18 +176,4 @@ private fun PageLoadingStaggeredGridPreview() {
.background(MaterialTheme.colorScheme.primaryContainer)
)
}
}

@Composable
@DeviceUserPreviews
private fun PageLoadingStaggeredGridAmoledPreview() {
MoviesTheme(
theme = AppTheme.Amoled
) {
PageLoadingStaggeredGrid(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colorScheme.primaryContainer)
)
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import coil3.compose.LocalPlatformContext
import coil3.request.ImageRequest
import coil3.request.crossfade
import org.jetbrains.compose.resources.stringResource
import org.jetbrains.compose.ui.tooling.preview.Preview
import org.michaelbel.movies.persistence.database.entity.pojo.AccountPojo
import org.michaelbel.movies.persistence.database.ktx.letters
import org.michaelbel.movies.ui.accessibility.MoviesContentDescriptionCommon
Expand Down Expand Up @@ -58,8 +59,8 @@ fun AccountAvatar(
}
}

@Preview
@Composable
/*@DevicePreviews*/
private fun AccountAvatarPreview(
/*@PreviewParameter(AccountPreviewParameterProvider::class)*/ account: AccountPojo
) {
Expand Down
Loading

0 comments on commit bec9913

Please sign in to comment.