Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.0.1-alpha-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Peerapathananont, Kajornsak (Agoda) committed Jan 2, 2020
2 parents 66857ec + f2ac594 commit 11b540e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ open class PullScreenshotsTask : ScreenshotTask() {
add("--record")
}

if (verify || record) {
add(extension.recordDir)
if (extension.variantRecord) {
if (verify || record) {
add(extension.recordDir + variant.flavorName.toLowerCase() + "/")
}
} else {
if (verify || record) {
add(extension.recordDir)
}
}

if (verify && extension.failureDir != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ open class ScreenshotsPluginExtension {
var referenceDir: String? = null
/** The directory to save failed screenshots */
var failureDir: String? = null
/** Using variant name as subdirectory for reference images */
var variantRecord = false
}

class ScreenshotsPlugin : Plugin<Project> {
Expand Down

0 comments on commit 11b540e

Please sign in to comment.