summaryrefslogtreecommitdiff
path: root/library/self.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'library/self.gradle')
-rw-r--r--library/self.gradle25
1 files changed, 14 insertions, 11 deletions
diff --git a/library/self.gradle b/library/self.gradle
index 69f9654..a3e5334 100644
--- a/library/self.gradle
+++ b/library/self.gradle
@@ -13,12 +13,12 @@ android.sourceSets {
res.srcDirs = ['test/instrumentation/res']
dependencies {
- androidTestCompile 'com.android.support.test:rules:0.5'
- androidTestCompile 'com.android.support.test:runner:0.5'
- androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
- androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
- androidTestCompile 'junit:junit:4.+'
- androidTestCompile 'org.mockito:mockito-core:1.9.5'
+ androidTestImplementation 'com.android.support.test:rules:0.5'
+ androidTestImplementation 'com.android.support.test:runner:0.5'
+ androidTestImplementation 'com.google.dexmaker:dexmaker:1.2'
+ androidTestImplementation 'com.google.dexmaker:dexmaker-mockito:1.2'
+ androidTestImplementation 'junit:junit:4.+'
+ androidTestImplementation 'org.mockito:mockito-core:1.9.5'
}
}
@@ -38,12 +38,12 @@ android.sourceSets {
java.srcDirs = ['test/robotest/src']
dependencies {
- testCompile 'org.robolectric:robolectric:3.4.2'
- testCompile 'org.robolectric:framework:3.4.2'
- testCompile 'junit:junit:4.+'
- testCompile 'org.mockito:mockito-core:1.9.5'
+ testImplementation 'org.robolectric:robolectric:3.4.2'
+ testImplementation 'org.robolectric:framework:3.4.2'
+ testImplementation 'junit:junit:4.+'
+ testImplementation 'org.mockito:mockito-core:1.9.5'
// Workaround for https://github.com/robolectric/robolectric/issues/2566
- testCompile 'org.khronos:opengl-api:gl1.1-android-2.1_r1'
+ testImplementation 'org.khronos:opengl-api:gl1.1-android-2.1_r1'
}
}
@@ -51,6 +51,9 @@ android.sourceSets {
java.srcDirs = ['gingerbread/test/robotest/src', 'recyclerview/test/robotest/src']
}
}
+
+android.testOptions.unitTests.includeAndroidResources = true
+
android.defaultConfig.testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
android.lintOptions {
abortOnError true