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.3'
      9     }
     10 }
     11 
     12 apply plugin: 'com.android.application'
     13 
     14 repositories {
     15     jcenter()
     16     maven {
     17         url 'https://maven.google.com'
     18     }
     19 }
     20 
     21 dependencies {
     22     compile 'com.android.support:appcompat-v7:26.0.0'
     23     compile 'com.android.support:wear:26.0.0'
     24     compile 'com.android.support:design:26.0.0'
     25     compile 'com.google.android.gms:play-services-wearable:11.4.0'
     26     compile 'com.android.support:support-v13:26.1.0'
     27 
     28     provided 'com.google.android.wearable:wearable:2.0.5'
     29 
     30     compile 'com.google.android.support:wearable:2.0.5'
     31 
     32     compile project(':Shared')
     33 }
     34 
     35 // The sample build uses multiple directories to
     36 // keep boilerplate and common code separate from
     37 // the main sample code.
     38 List<String> dirs = [
     39     'main',     // main sample code; look here for the interesting stuff.
     40     'common',   // components that are reused by multiple samples
     41     'template'] // boilerplate code that is generated by the sample template process
     42 
     43 android {
     44 
     45         compileSdkVersion 26
     46 
     47     buildToolsVersion "26.0.1"
     48 
     49     defaultConfig {
     50         versionCode 1
     51         versionName "1.0"
     52 
     53         minSdkVersion 23
     54 
     55         targetSdkVersion 26
     56 
     57          multiDexEnabled true
     58 
     59     }
     60 
     61     compileOptions {
     62         sourceCompatibility JavaVersion.VERSION_1_7
     63         targetCompatibility JavaVersion.VERSION_1_7
     64     }
     65 
     66     sourceSets {
     67         main {
     68             dirs.each { dir ->
     69                 java.srcDirs "src/${dir}/java"
     70                 res.srcDirs "src/${dir}/res"
     71             }
     72         }
     73         androidTest.setRoot('tests')
     74         androidTest.java.srcDirs = ['tests/src']
     75 
     76     }
     77 }
     78