Skip to content

Commit

Permalink
Prepare release 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrovgs committed Aug 31, 2017
1 parent fac3b85 commit 7bc6b36
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Setup the Gradle plugin:
// ...
dependencies {
// ...
classpath 'com.karumi:shot:0.1.1'
classpath 'com.karumi:shot:0.1.2'
}
}
apply plugin: 'shot'
Expand Down
2 changes: 1 addition & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.karumi'
version '0.1.2-SNAPSHOT'
version '0.1.2'

apply plugin: 'scala'
apply plugin: 'jacoco'
Expand Down
7 changes: 7 additions & 0 deletions core/src/main/scala/com/karumi/shot/Shot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,15 @@ class Shot(val adb: Adb,
private def clearScreenshots(appId: AppId): Unit =
adb.clearScreenshots(appId)

private def createScreenshotsFolderIfDoesNotExist(screenshotsFolder: AppId) = {
val folder = new File(screenshotsFolder)
folder.mkdirs()
}

private def pullScreenshots(projectFolder: Folder, appId: AppId): Unit = {
val screenshotsFolder = projectFolder + Config.pulledScreenshotsFolder
createScreenshotsFolderIfDoesNotExist(
projectFolder + Config.screenshotsFolderName)
adb.pullScreenshots(screenshotsFolder, appId)
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_CODE=000101
VERSION_NAME=0.1.2-SNAPSHOT
VERSION_NAME=0.1.2
GROUP=com.karumi
POM_DESCRIPTION=Gradle plugin developed to facilitate screenshot testing for Android.
POM_URL=https://github.com/karumi/shot
Expand Down
2 changes: 1 addition & 1 deletion shot-consumer/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.7'
classpath 'com.karumi:shot:0.1.2-SNAPSHOT'
classpath 'com.karumi:shot:0.1.2'
}
}

Expand Down
2 changes: 1 addition & 1 deletion shot/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.karumi'
version '0.1.2-SNAPSHOT'
version '0.1.2'

apply plugin: 'scala'
apply plugin: 'groovy'
Expand Down

0 comments on commit 7bc6b36

Please sign in to comment.