From 23d3b831bf99551f4b017045cfedbbbfde13b69f Mon Sep 17 00:00:00 2001 From: Said Tahsin Dane Date: Wed, 11 Jan 2017 15:05:26 +0100 Subject: [PATCH 1/3] Fix 2 typos and add a link to the sample project --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9129350..1afed28 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ You can use this plugin to do things such as: - Run monkey for that specific APK on that specific device - Uninstall the APK -This is particularly useful for CI servers but could be used to speed up IDE development as well. +This is particularly useful for CI servers but could be used to speed up development as well. ## Adding to your project @@ -34,7 +34,6 @@ buildscript { classpath 'com.novoda:gradle-android-command-plugin:1.6.2' } } - ``` @@ -50,7 +49,9 @@ The plugin creates new tasks that you can use: * `monkey` [`com.novoda.gradle.command.Monkey`] - installs and runs monkey on a specific device. * `clearPrefs` [`com.novoda.gradle.command.ClearPreferences`] - clears app preferences on a specific device. * `com.novoda.gradle.command.Input` - runs `input` scripts, wrapping `adb shell input`. - * `com.novoda.gradle.command.Files` - enables basic file copy via `push` and `pull`, wrapping the respecitve adb calls. + * `com.novoda.gradle.command.Files` - enables basic file copy via `push` and `pull`, wrapping the respective adb calls. + +For advanced usage please take a look into the sample project [build.gradle](sample/app/build.gradle) file. ## Links From 0987cd5657334f724564cce9b9664fbd56b9c77a Mon Sep 17 00:00:00 2001 From: Said Tahsin Dane Date: Wed, 11 Jan 2017 15:30:45 +0100 Subject: [PATCH 2/3] Increase version to 1.7.0 --- README.md | 2 +- plugin/build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1afed28..669aba8 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.novoda:gradle-android-command-plugin:1.6.2' + classpath 'com.novoda:gradle-android-command-plugin:1.7.0' } } ``` diff --git a/plugin/build.gradle b/plugin/build.gradle index 0da65e8..ead7c31 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -23,7 +23,7 @@ dependencies { } group = 'com.novoda' -version = '1.6.2' +version = '1.7.0' publish { userOrg = 'novoda' From 85d1235717256425f30d64406ca772c97cfd5bfd Mon Sep 17 00:00:00 2001 From: Said Tahsin Dane Date: Wed, 11 Jan 2017 15:31:12 +0100 Subject: [PATCH 3/3] Update changelog with the new features and explaining how to change monkey configurations --- CHANGELOG.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 90531c4..7ab3590 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,51 @@ +# 1.7.0 + +_2017-01-11_ + +- Fix a bug where installation error marked as a successful build. [#104](https://github.com/novoda/gradle-android-command-plugin/pull/104) +- Fixed a bug that caused InstallTask to fail on Nougat devices. [#110](https://github.com/novoda/gradle-android-command-plugin/pull/110) +- On Nougat devices, errors in `adb shell` commands will now cause the build to fail forwarding the error. [#110](https://github.com/novoda/gradle-android-command-plugin/pull/110) +- Added a sample showing how to install APKs of all variants in one go. [#109](https://github.com/novoda/gradle-android-command-plugin/pull/109) +- Monkey task configuration is adjusted to make more sense. [#106](https://github.com/novoda/gradle-android-command-plugin/pull/106) + +**Breaking changes in Monkey configuration** + +Monkey task configuration is adjusted to make more sense. The following adjustments are needed if custom monkey configs are used. + +This sample configuration +```groovy +android { + ... + command { + events 1000 + categories = ['android.intent.category.ONLY_ME'] + } +} +``` +needs to be changed into these 2 possible options: +- Just surround with `monkey` closure. (Notice also that equals in `categories` is not necessary anymore) +```groovy +android { + ... + command { + monkey { + events 1000 + categories 'android.intent.category.ONLY_ME' + } + } +} +``` +- If you have simple configuration, you can also prepend the fields with `monkey` +```groovy +android { + ... + command { + monkey.events 1000 + } +} +``` + + # 1.6.2 - Fix source/target compatibility to Java 1.6