Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignores RestorePurchasesDialog previews using IgnoreEmergeSnapshot #2116

Merged
merged 7 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ detekt-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting",
detekt-compose = { module = "io.nlopez.compose.rules:detekt", version.ref = "detektRulesCompose" }

emerge-snapshots = { module = "com.emergetools.snapshots:snapshots", version.ref = "emergeSnapshots" }
emerge-snapshots-annotations = { module = "com.emergetools.snapshots:snapshots-annotations", version.ref = "emergeSnapshots" }

kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationJSON"}
Expand Down
2 changes: 2 additions & 0 deletions ui/revenuecatui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ android {
}

dependencies {

implementation project(path: ':purchases')

compileOnly libs.emerge.snapshots.annotations
implementation(platform(libs.kotlin.bom))
implementation libs.androidx.core
implementation platform(libs.compose.bom)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import com.emergetools.snapshots.annotations.IgnoreEmergeSnapshot

@JvmSynthetic
@Composable
Expand Down Expand Up @@ -150,6 +151,7 @@ private fun PurchasesNotFoundDialog(
}

@Preview(showBackground = true)
@IgnoreEmergeSnapshot
@Composable
private fun RestorePurchasesDialogInitialPreview() {
RestorePurchasesDialog(
Expand All @@ -161,6 +163,7 @@ private fun RestorePurchasesDialogInitialPreview() {
}

@Preview(showBackground = true)
@IgnoreEmergeSnapshot
@Composable
private fun RestorePurchasesDialogRecoveredPreview() {
RestorePurchasesDialog(
Expand All @@ -172,6 +175,7 @@ private fun RestorePurchasesDialogRecoveredPreview() {
}

@Preview(showBackground = true)
@IgnoreEmergeSnapshot
@Composable
private fun RestorePurchasesDialogNotFoundPreview() {
RestorePurchasesDialog(
Expand All @@ -183,6 +187,7 @@ private fun RestorePurchasesDialogNotFoundPreview() {
}

@Preview(showBackground = true)
@IgnoreEmergeSnapshot
@Composable
private fun RestorePurchasesDialogLoadingPreview() {
RestorePurchasesDialog(
Expand All @@ -194,6 +199,7 @@ private fun RestorePurchasesDialogLoadingPreview() {
}

@Preview(showBackground = true)
@IgnoreEmergeSnapshot
@Composable
private fun RestorePurchasesDialogRestoringPreview() {
RestorePurchasesDialog(
Expand Down