Home | History | Annotate | Download | only in droiddriver-android_support_test
      1 buildscript {
      2     repositories {
      3         jcenter()
      4     }
      5     dependencies {
      6         // this requires Gradle 2
      7         classpath 'com.android.tools.build:gradle:1.0.1'
      8         classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.0'
      9     }
     10 }
     11 
     12 apply plugin: 'android-sdk-manager'
     13 apply plugin: 'com.android.library'
     14 
     15 ext.ddSnapshot = hasProperty('ddSnapshot')
     16 
     17 repositories {
     18     jcenter()
     19     if (ddSnapshot) {
     20         // For development only - droiddriver SNAPSHOTs published here
     21         maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
     22     }
     23 }
     24 
     25 dependencies {
     26     if (ddSnapshot) {
     27         // For development only.
     28         compile 'io.appium:droiddriver:1.0.0-SNAPSHOT'
     29     } else {
     30         // This is broken now b/c droiddriver-1.0.0 is not published yet
     31         compile 'io.appium:droiddriver:1.0.0'
     32     }
     33 
     34     compile 'com.android.support.test:testing-support-lib:0.1'
     35 }
     36 
     37 tasks.withType(JavaCompile) {
     38     options.compilerArgs << '-Xlint:deprecation'
     39 }
     40 
     41 android {
     42     compileSdkVersion 21
     43     buildToolsVersion '21.1.2'
     44 
     45     defaultConfig {
     46         minSdkVersion 8
     47         targetSdkVersion 21
     48         versionCode 1
     49     }
     50 
     51     compileOptions {
     52         sourceCompatibility JavaVersion.VERSION_1_7
     53         targetCompatibility JavaVersion.VERSION_1_7
     54     }
     55 
     56     sourceSets {
     57         main {
     58             manifest.srcFile 'AndroidManifest.xml'
     59             java.srcDirs = ['src']
     60         }
     61     }
     62 
     63     lintOptions {
     64         // Aborting on lint errors prevents jenkins from processing the Lint output
     65         // https://wiki.jenkins-ci.org/display/JENKINS/Android%20Lint%20Plugin
     66         abortOnError false
     67     }
     68 }
     69 
     70 //TODO: add script for publishing
     71