Skip to content

Commit

Permalink
am 8097dda: Merge "Specify test dependecies in rules.gradle."
Browse files Browse the repository at this point in the history
* commit '8097dda930388d4e5063f6cb47409fc54507c633':
  Specify test dependecies in rules.gradle.
  • Loading branch information
Ficus Kirkpatrick authored and Android Git Automerger committed Aug 22, 2015
2 parents 59debd8 + 8097dda commit efe5858
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ buildscript {

apply plugin: 'com.android.library'

repositories {
jcenter()
}

android {
compileSdkVersion 22
buildToolsVersion = '22.0.1'
Expand Down
9 changes: 9 additions & 0 deletions rules.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
// See build.gradle for an explanation of what this file is.

apply plugin: 'com.android.library'

// Check if the android plugin version supports unit testing.
if (configurations.findByName("testCompile")) {
dependencies {
testCompile "junit:junit:4.10"
testCompile "org.mockito:mockito-core:1.9.5"
testCompile "org.robolectric:robolectric:2.2"
}
}

0 comments on commit efe5858

Please sign in to comment.