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