1
2buildscript {
3    repositories {
4        jcenter()
5    }
6
7    dependencies {
8        classpath 'com.android.tools.build:gradle:2.1.2'
9    }
10}
11
12apply plugin: 'com.android.application'
13
14repositories {
15    jcenter()
16}
17
18dependencies {
19    compile "com.android.support:support-v4:24.0.0-beta1"
20    compile "com.android.support:support-v13:24.0.0-beta1"
21    compile "com.android.support:cardview-v7:24.0.0-beta1"
22    compile "com.android.support:appcompat-v7:24.0.0-beta1"
23    compile 'com.google.android.gms:play-services-wearable:8.4.0'
24    compile 'com.android.support:support-v13:24.0.0-beta1'
25    wearApp project(':Wearable')
26}
27
28// The sample build uses multiple directories to
29// keep boilerplate and common code separate from
30// the main sample code.
31List<String> dirs = [
32    'main',     // main sample code; look here for the interesting stuff.
33    'common',   // components that are reused by multiple samples
34    'template'] // boilerplate code that is generated by the sample template process
35
36android {
37    compileSdkVersion 23
38    buildToolsVersion "23.0.3"
39
40    defaultConfig {
41        minSdkVersion 18
42        targetSdkVersion 23
43    }
44
45    compileOptions {
46        sourceCompatibility JavaVersion.VERSION_1_7
47        targetCompatibility JavaVersion.VERSION_1_7
48    }
49
50    sourceSets {
51        main {
52            dirs.each { dir ->
53                java.srcDirs "src/${dir}/java"
54                res.srcDirs "src/${dir}/res"
55            }
56        }
57        androidTest.setRoot('tests')
58        androidTest.java.srcDirs = ['tests/src']
59
60    }
61
62}
63