Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #113 from novoda/release/1.7
Browse files Browse the repository at this point in the history
Preparations for release 1.7
  • Loading branch information
tasomaniac authored Jan 11, 2017
2 parents 4d2d124 + 85d1235 commit 42f7d96
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 5 deletions.
48 changes: 48 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,10 +31,9 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.novoda:gradle-android-command-plugin:1.6.2'
classpath 'com.novoda:gradle-android-command-plugin:1.7.0'
}
}
```


Expand All @@ -50,7 +49,9 @@ The plugin creates new tasks that you can use:
* `monkey<Variant>` [`com.novoda.gradle.command.Monkey`] - installs and runs monkey on a specific device.
* `clearPrefs<Variant>` [`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

Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
}

group = 'com.novoda'
version = '1.6.2'
version = '1.7.0'

publish {
userOrg = 'novoda'
Expand Down

0 comments on commit 42f7d96

Please sign in to comment.