aboutsummaryrefslogtreecommitdiff
path: root/examples/ex2_espresso/build.gradle
blob: ac4bbd2dbe3517387c60b591b6d02d4a5be33924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apply plugin: 'com.android.application'

android {
    compileSdkVersion 24
    buildToolsVersion "24.0.3"

    defaultConfig {
        applicationId "com.google.android.mobly.snippet.example2"
        minSdkVersion 11
        targetSdkVersion 24
        versionCode 1
        versionName "0.0.1"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }

    productFlavors {
        main {}
        snippet {}
    }
}

dependencies {
    compile 'com.android.support:appcompat-v7:24.2.1'

    // The androidTest package is not for snippet support; it shows an example
    // of an instrumentation test coexisting with a snippet in the same
    // codebase.
    androidTestCompile 'com.android.support:support-annotations:24.2.1'
    androidTestCompile 'com.android.support.test:runner:0.5'
    androidTestCompile 'com.android.support.test:rules:0.5'
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    snippetCompile project(':third_party:sl4a')
    snippetCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
    snippetCompile 'com.android.support:support-annotations:24.2.1'
}