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