Skip to content

Commit

Permalink
Try out Paparazzi 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodbx committed Oct 9, 2024
1 parent 5101809 commit bafc60b
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.android.application) apply false // https://youtrack.jetbrains.com/issue/KT-31643/Unable-to-load-class-com.android.build.gradle.BaseExtension-with-Kotlin-plugin-applied-to-root-Gradle-project
alias(libs.plugins.android.library) apply false // see above url
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.paparazzi) apply false
alias(libs.plugins.kapt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.hilt) apply false // fun https://github.com/google/dagger/issues/3068
Expand Down
7 changes: 4 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ arrow = "1.1.2"
assertk = "0.25"
coil = "2.2.2"
compose = "1.5.1"
composeCompiler = "1.5.3"
composeCompiler = "1.5.14"
composeMaterial3 = "1.1.1"
composeUiTestJUnit4 = "1.5.1"
daggerHilt = "2.48"
Expand All @@ -24,7 +24,7 @@ espresso-runner = "1.5.2"
firebaseBom = "32.2.3"
glance = "1.0.0"
glance-tools = "0.2.2"
gradlePlugins-agp = "8.4.0-alpha09"
gradlePlugins-agp = "8.4.2"
gradlePlugins-crashlytics = "2.9.9"
gradlePlugins-detekt = "1.23.1"
gradlePlugins-gms = "4.3.15"
Expand All @@ -40,7 +40,7 @@ gradlePlugins-versionsBenManes = "0.47.0"
hilt = "1.0.0"
hiltNavigationCompose = "1.0.0"
junit = "4.13.2"
kotlin = "1.9.10"
kotlin = "1.9.24"
kotlinxCoroutinesTest = "1.7.1"
kotlinxSerialization = "1.5.0"
lifecycle = "2.6.2"
Expand Down Expand Up @@ -182,6 +182,7 @@ googleServices = { id = "com.google.gms.google-services", version.ref = "gradleP
hilt = { id = "dagger.hilt.android.plugin", version.ref = "gradlePlugins-hilt" }
kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
kotlinAndroid = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
paparazzi = { id = "app.cash.paparazzi", version = "1.3.4" }
kotlinxSerialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "gradlePlugins-kotlinxSerialization" }
kotlinter = { id = "org.jmailen.kotlinter", version.ref = "gradlePlugins-kotlinter" }
ksp = { id = "com.google.devtools.ksp", version.ref = "gradlePlugins-ksp" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Nov 03 16:26:13 CET 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-rc-1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 2 additions & 1 deletion shared-ui/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
plugins {
alias(libs.plugins.android.library)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.paparazzi)
}

android {
namespace = "dev.sebastiano.bundel.ui"
compileSdk = 33
compileSdk = 34

defaultConfig {
minSdk = 26
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package dev.sebastiano.bundel.ui.composables

import app.cash.paparazzi.Paparazzi
import com.android.ide.common.rendering.api.SessionParams
import org.junit.Rule
import org.junit.Test

class OnboardingPreviewsTest {
@get:Rule
val paparazzi = Paparazzi(
renderingMode = SessionParams.RenderingMode.SHRINK
)

@Test
fun active() {
paparazzi.snapshot {
OnboardingPreviews().TimeRangeRowOnboardingActivePreview()
}
}

@Test
fun inactive() {
paparazzi.snapshot {
OnboardingPreviews().TimeRangeRowOnboardingInactivePreview()
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bafc60b

Please sign in to comment.