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