blob: 9d71de20b426b41d9b7e3c00148a9c242ce4a171 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
}
}
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.library'
ext.ddSnapshot = hasProperty('ddSnapshot')
repositories {
jcenter()
if (ddSnapshot) {
// For development only - droiddriver SNAPSHOTs published here
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
}
}
dependencies {
if (ddSnapshot) {
// For development only.
compile 'io.appium:droiddriver:1.0.0-SNAPSHOT'
} else {
compile 'io.appium:droiddriver:1.0.0-BETA1'
}
compile 'com.android.support.test:runner:0.4.1'
}
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked'
}
android {
compileSdkVersion 23
buildToolsVersion '21.1.2'
defaultConfig {
minSdkVersion 8
targetSdkVersion 23
versionCode 1
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
}
}
lintOptions {
// Aborting on lint errors prevents jenkins from processing the Lint output
// https://wiki.jenkins-ci.org/display/JENKINS/Android%20Lint%20Plugin
abortOnError false
}
}
//TODO: add script for publishing
|