blob: a8c0c31bbd081dc48c55044f996c153050c2fd2a (
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
39
40
41
42
43
44
45
46
47
48
|
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion '25.0.0'
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 {}
}
lintOptions {
abortOnError true
checkAllWarnings true
warningsAsErrors true
}
}
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'
})
// The 'snippetCompile project' dep is to compile against the snippet lib
// source in this repo. For your own snippets, you'll want to use the
// regular 'snippetCompile' dep instead:
//snippetCompile 'com.google.android.mobly:mobly-snippet-lib:1.2.0'
snippetCompile project(':mobly-snippet-lib')
snippetCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
snippetCompile 'com.android.support:support-annotations:24.2.1'
}
|