manually including the paparazzi jar as the plugin is only applied when executing the screenshot tasks (which automatically included the jar previously)

This commit is contained in:
Adam Brown 2022-09-26 14:19:02 +01:00
parent be1e8a8ef8
commit 4a81ee25ac

View file

@ -312,6 +312,7 @@ ext.initScreenshotTests = { project ->
if (hasScreenshots) { if (hasScreenshots) {
project.apply plugin: 'app.cash.paparazzi' project.apply plugin: 'app.cash.paparazzi'
} }
project.dependencies { testCompileOnly "app.cash.paparazzi:paparazzi:1.0.0" }
project.android.testOptions.unitTests.all { project.android.testOptions.unitTests.all {
def screenshotTestCapture = "**/*ScreenshotTest*" def screenshotTestCapture = "**/*ScreenshotTest*"
if (hasScreenshots) { if (hasScreenshots) {