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