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