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