Home | History | Annotate | Download | only in Wearable
      1 
      2 buildscript {
      3     repositories {
      4         jcenter()
      5     }
      6 
      7     dependencies {
      8         classpath 'com.android.tools.build:gradle:2.3.1'
      9     }
     10 }
     11 
     12 apply plugin: 'com.android.application'
     13 
     14 
     15 
     16 dependencies {
     17 
     18 
     19 
     20     compile 'com.google.android.gms:play-services-wearable:10.2.4'
     21     compile 'com.android.support:support-v13:25.3.1'
     22 
     23     provided 'com.google.android.wearable:wearable:2.0.1'
     24 
     25     compile 'com.google.android.support:wearable:2.0.1'
     26 
     27 }
     28 
     29 // The sample build uses multiple directories to
     30 // keep boilerplate and common code separate from
     31 // the main sample code.
     32 List<String> dirs = [
     33     'main',     // main sample code; look here for the interesting stuff.
     34     'common',   // components that are reused by multiple samples
     35     'template'] // boilerplate code that is generated by the sample template process
     36 
     37 android {
     38     compileSdkVersion 25
     39 
     40     buildToolsVersion "25.0.3"
     41 
     42     defaultConfig {
     43         versionCode 1
     44         versionName "1.0"
     45 
     46         minSdkVersion 24
     47 
     48         targetSdkVersion 22
     49     }
     50 
     51     compileOptions {
     52         sourceCompatibility JavaVersion.VERSION_1_7
     53         targetCompatibility JavaVersion.VERSION_1_7
     54     }
     55 
     56     sourceSets {
     57         main {
     58             dirs.each { dir ->
     59                 java.srcDirs "src/${dir}/java"
     60                 res.srcDirs "src/${dir}/res"
     61             }
     62         }
     63         androidTest.setRoot('tests')
     64         androidTest.java.srcDirs = ['tests/src']
     65 
     66     }
     67 }
     68