diff --git a/README.md b/README.md index 3a9055de..1840cfce 100644 --- a/README.md +++ b/README.md @@ -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' diff --git a/core/build.gradle b/core/build.gradle index 8cdd1168..62003b60 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -1,5 +1,5 @@ group 'com.karumi' -version '0.1.2-SNAPSHOT' +version '0.1.2' apply plugin: 'scala' apply plugin: 'jacoco' diff --git a/core/src/main/scala/com/karumi/shot/Shot.scala b/core/src/main/scala/com/karumi/shot/Shot.scala index 18a5d3e3..3e33f4ab 100644 --- a/core/src/main/scala/com/karumi/shot/Shot.scala +++ b/core/src/main/scala/com/karumi/shot/Shot.scala @@ -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) } diff --git a/gradle.properties b/gradle.properties index f841c3d6..6c82fa9b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/shot-consumer/app/build.gradle b/shot-consumer/app/build.gradle index 2a3b4759..d9e03a3f 100644 --- a/shot-consumer/app/build.gradle +++ b/shot-consumer/app/build.gradle @@ -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' } } diff --git a/shot/build.gradle b/shot/build.gradle index 8ac5d68c..67e16515 100644 --- a/shot/build.gradle +++ b/shot/build.gradle @@ -1,5 +1,5 @@ group 'com.karumi' -version '0.1.2-SNAPSHOT' +version '0.1.2' apply plugin: 'scala' apply plugin: 'groovy'