1buildscript {
2    repositories {
3        mavenCentral()
4    }
5
6    dependencies {
7        classpath 'com.android.tools.build:gradle:1.0.0'
8    }
9}
10
11apply plugin: 'com.android.application'
12
13
14dependencies {
15
16
17    compile 'com.google.android.gms:play-services-wearable:6.5.+'
18    compile 'com.android.support:support-v13:21.0.+'
19    wearApp project(':Wearable')
20}
21
22// The sample build uses multiple directories to
23// keep boilerplate and common code separate from
24// the main sample code.
25List<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
30android {
31    compileSdkVersion 21
32
33    buildToolsVersion "21.1.1"
34
35    defaultConfig {
36        minSdkVersion 18
37        targetSdkVersion 21
38        versionCode 1
39        versionName "1.0"
40    }
41
42    sourceSets {
43        main {
44            dirs.each { dir ->
45                java.srcDirs "src/${dir}/java"
46                res.srcDirs "src/${dir}/res"
47            }
48        }
49        androidTest.setRoot('tests')
50        androidTest.java.srcDirs = ['tests/src']
51
52    }
53
54}
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70