Home | History | Annotate | Download | only in android-support-test
      1 /*
      2  * WARNING: This file is deprecated! its here for legacy purposes only.
      3  * All Android Testing Libraries should be used from the Android Maven repository,
      4  * the same way you would use the Support Libraries.
      5  *
      6  * If you're compiling against current and the prerelease versions of the Support Libraries
      7  * (using Jars in "prebuilts/sdk/current/support") then you should explicitly exclude your
      8  * "support-annotations" dependency.
      9  *
     10  * An example of how to configure your project can be found here:
     11  * go/config-atsl-deps (https://bit.googleplex.com/#/nkorsote/5894271450218496)
     12  */
     13 
     14 // To use the test runner and test rules add the following dependency:
     15 //     compile project(":android-support-test")
     16 // where "android-support-test" is the name you defined in your settings.gradle file
     17 if (!configurations.findByName("default")) {
     18     configurations.create("default")
     19 }
     20 artifacts.add("default", file("runner/runner-0.6-beta-2-release.jar"))
     21 artifacts.add("default", file("rules/rules-0.6-beta-2-release.jar"))
     22 
     23 // To use the "android-support-test.jar" and the "esspresso-core.jar" add the following dependency:
     24 //     compile project(path: ":android-support-test", configuration: "espresso-core")
     25 if (!configurations.findByName("espresso-core")) {
     26     configurations.create("espresso-core")
     27 }
     28 artifacts.add("espresso-core", file("espresso/espresso-core-0.6-beta-2-release.jar"))
     29 
     30 // To use the "runner-no-dep.jar", add the following dependency:
     31 //     compile project(path: ":android-support-test", configuration: "runner-no-dep")
     32 if (!configurations.findByName("runner-no-dep")) {
     33     configurations.create("runner-no-dep")
     34 }
     35 artifacts.add("runner-no-dep", file("runner/runner-0.6-beta-2-release-no-dep.jar"))
     36