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.1.3'
      9     }
     10 }
     11 
     12 apply plugin: 'com.android.application'
     13 
     14 
     15 
     16 repositories {
     17     jcenter()
     18 }
     19 
     20 dependencies {
     21     compile 'com.google.android.gms:play-services-wearable:9.4.0'
     22     compile 'com.android.support:support-v13:24.2.1'
     23 
     24     compile 'com.google.android.support:wearable:1.4.0'
     25 
     26     compile project(':Shared')
     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 24
     39 
     40     buildToolsVersion "24.0.2"
     41 
     42     defaultConfig {
     43         versionCode 1
     44         versionName "1.0"
     45 
     46         targetSdkVersion 23
     47 
     48     }
     49 
     50     compileOptions {
     51         sourceCompatibility JavaVersion.VERSION_1_7
     52         targetCompatibility JavaVersion.VERSION_1_7
     53     }
     54 
     55     sourceSets {
     56         main {
     57             dirs.each { dir ->
     58                 java.srcDirs "src/${dir}/java"
     59                 res.srcDirs "src/${dir}/res"
     60             }
     61         }
     62         androidTest.setRoot('tests')
     63         androidTest.java.srcDirs = ['tests/src']
     64 
     65     }
     66 }
     67