1buildscript {
2    repositories {
3        jcenter()
4    }
5    dependencies {
6        // this requires Gradle 2
7        classpath 'com.android.tools.build:gradle:1.0.1'
8    }
9}
10
11// This is actually a test without an AUT (application under test).
12apply plugin: 'com.android.application'
13
14android {
15    compileSdkVersion 21
16    buildToolsVersion '21.1.2'
17
18    defaultConfig {
19        minSdkVersion 8
20        targetSdkVersion 21
21        // Force remove the suffix '.test'
22        testApplicationId 'io.appium.droiddriver.manualtest'
23        testInstrumentationRunner 'io.appium.droiddriver.runner.TestRunner'
24    }
25
26    sourceSets {
27        main {
28            manifest.srcFile 'AndroidManifest.xml'
29        }
30        androidTest {
31            java.srcDirs = ['src']
32        }
33    }
34}
35
36// Building with droiddriver source. Common tests should use droiddriver from jcenter by having
37// these lines instead:
38// repositories {
39//     jcenter()
40// }
41// dependencies {
42//     androidTestCompile 'io.appium:droiddriver:0.9.1-BETA' // or another version
43// }
44dependencies {
45    androidTestCompile project(':droiddriver')
46}
47