|
@@ -1,20 +1,18 @@
|
1
|
|
-def robolectricDependenciesFolder = new File(rootProject.buildDir, "robolectric-3.3-dependencies")
|
|
1
|
+def robolectricDependenciesFolder = new File(rootProject.buildDir, "robolectric-3.5.1-dependencies")
|
2
|
2
|
|
3
|
3
|
configurations.create('robolectricRuntime')
|
4
|
4
|
|
5
|
5
|
dependencies {
|
6
|
6
|
testCompile "org.khronos:opengl-api:gl1.1-android-2.1_r1"
|
7
|
7
|
|
8
|
|
- robolectricRuntime "org.robolectric:android-all:7.1.0_r7-robolectric-0"
|
9
|
|
- robolectricRuntime "org.robolectric:shadows-core:3.3"
|
10
|
|
- robolectricRuntime "org.robolectric:robolectric-utils:3.3"
|
11
|
|
- robolectricRuntime "org.robolectric:robolectric-resources:3.3"
|
12
|
|
- robolectricRuntime "org.robolectric:robolectric-processor:3.3"
|
13
|
|
- robolectricRuntime "org.robolectric:robolectric-sandbox:3.3"
|
14
|
|
- robolectricRuntime "org.robolectric:shadows-support-v4:3.3"
|
15
|
|
- robolectricRuntime "org.robolectric:shadows-multidex:3.3"
|
16
|
|
- robolectricRuntime "org.robolectric:shadows-play-services:3.3"
|
17
|
|
- robolectricRuntime "org.robolectric:shadows-maps:3.3"
|
|
8
|
+ robolectricRuntime "org.robolectric:android-all:8.1.0-robolectric-4402310"
|
|
9
|
+
|
|
10
|
+ robolectricRuntime "org.robolectric:annotations:3.5.1"
|
|
11
|
+ robolectricRuntime "org.robolectric:junit:3.5.1"
|
|
12
|
+ robolectricRuntime "org.robolectric:resources:3.5.1"
|
|
13
|
+ robolectricRuntime "org.robolectric:sandbox:3.5.1"
|
|
14
|
+ robolectricRuntime "org.robolectric:utils:3.5.1"
|
|
15
|
+ robolectricRuntime "org.robolectric:shadows-framework:3.5.1"
|
18
|
16
|
}
|
19
|
17
|
|
20
|
18
|
rootProject.task(type: Copy, overwrite: true, "downloadRobolectricDependencies") {
|
|
@@ -33,6 +31,9 @@ project.afterEvaluate {
|
33
|
31
|
|
34
|
32
|
android {
|
35
|
33
|
testOptions {
|
|
34
|
+ unitTests {
|
|
35
|
+ includeAndroidResources = true
|
|
36
|
+ }
|
36
|
37
|
unitTests.all {
|
37
|
38
|
systemProperty 'robolectric.offline', 'true'
|
38
|
39
|
systemProperty 'robolectric.dependency.dir', robolectricDependenciesFolder
|