Daniel Zlotin před 7 roky
rodič
revize
d33f963455
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. 7
    7
      android/prepare-robolectric.gradle

+ 7
- 7
android/prepare-robolectric.gradle Zobrazit soubor

@@ -1,4 +1,4 @@
1
-def robolectricDependenciesFolder = new File(gradle.gradleUserHomeDir, "/robolectric-dependencies-3.2.2")
1
+def robolectricDependenciesFolder = new File(rootProject.buildDir, "robolectric-3.2.2-dependencies")
2 2
 
3 3
 configurations.create('robolectricRuntime')
4 4
 
@@ -8,17 +8,17 @@ dependencies {
8 8
 }
9 9
 
10 10
 rootProject.task(type: Copy, overwrite: true, "downloadRobolectricDependencies") {
11
-    println "downloadRobolectricDependencies " + robolectricDependenciesFolder
11
+    println "downloadRobolectricDependencies into " + robolectricDependenciesFolder
12 12
     from configurations.robolectricRuntime
13 13
     into robolectricDependenciesFolder
14 14
 }
15 15
 
16 16
 project.afterEvaluate {
17
-  tasks.all {
18
-      if (it.name.startsWith("test")) {
19
-          it.dependsOn(rootProject.tasks.findByName("downloadRobolectricDependencies"))
20
-      }
21
-  }
17
+    tasks.all {
18
+        if (it.name.startsWith("test")) {
19
+            it.dependsOn(rootProject.tasks.findByName("downloadRobolectricDependencies"))
20
+        }
21
+    }
22 22
 }
23 23
 
24 24
 android {