Trevor Johns | 818bd7c | 2015-05-20 22:03:03 -0700 | [diff] [blame] | 1 | |
Trevor Johns | 9a41535 | 2014-10-21 19:52:28 -0700 | [diff] [blame] | 2 | buildscript { |
| 3 | repositories { |
Trevor Johns | ababd38 | 2015-03-30 13:44:30 -0700 | [diff] [blame] | 4 | jcenter() |
Trevor Johns | 9a41535 | 2014-10-21 19:52:28 -0700 | [diff] [blame] | 5 | } |
| 6 | |
| 7 | dependencies { |
Trevor Johns | 0d86cdf | 2015-08-14 16:16:39 -0700 | [diff] [blame] | 8 | classpath 'com.android.tools.build:gradle:1.2.3' |
Trevor Johns | 9a41535 | 2014-10-21 19:52:28 -0700 | [diff] [blame] | 9 | } |
| 10 | } |
| 11 | |
| 12 | apply plugin: 'com.android.application' |
| 13 | |
Trevor Johns | ababd38 | 2015-03-30 13:44:30 -0700 | [diff] [blame] | 14 | repositories { |
| 15 | jcenter() |
| 16 | } |
Trevor Johns | 9a41535 | 2014-10-21 19:52:28 -0700 | [diff] [blame] | 17 | |
| 18 | dependencies { |
Trevor Johns | c85aa03 | 2015-11-17 21:37:39 -0800 | [diff] [blame] | 19 | compile "com.android.support:support-v4:23.1.0" |
| 20 | compile "com.android.support:support-v13:23.1.0" |
| 21 | compile "com.android.support:cardview-v7:23.1.0" |
Trevor Johns | f9b796d | 2016-01-08 16:54:28 -0800 | [diff] [blame] | 22 | compile 'com.google.android.gms:play-services-wearable:8.4.0' |
| 23 | compile 'com.android.support:support-v13:23.1.1' |
Trevor Johns | 9a41535 | 2014-10-21 19:52:28 -0700 | [diff] [blame] | 24 | wearApp project(':Wearable') |
Trevor Johns | 9a41535 | 2014-10-21 19:52:28 -0700 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | // The sample build uses multiple directories to |
| 28 | // keep boilerplate and common code separate from |
| 29 | // the main sample code. |
| 30 | List<String> dirs = [ |
| 31 | 'main', // main sample code; look here for the interesting stuff. |
| 32 | 'common', // components that are reused by multiple samples |
| 33 | 'template'] // boilerplate code that is generated by the sample template process |
| 34 | |
| 35 | android { |
Trevor Johns | 31fb395 | 2015-08-13 21:06:42 -0700 | [diff] [blame] | 36 | compileSdkVersion 23 |
Trevor Johns | 38d73e3 | 2015-11-18 00:13:22 -0800 | [diff] [blame] | 37 | buildToolsVersion "23.0.2" |
Trevor Johns | 09c2691 | 2014-11-12 11:07:34 -0800 | [diff] [blame] | 38 | |
| 39 | defaultConfig { |
Trevor Johns | e1f764c | 2014-11-20 13:28:15 -0800 | [diff] [blame] | 40 | minSdkVersion 18 |
Trevor Johns | c85aa03 | 2015-11-17 21:37:39 -0800 | [diff] [blame] | 41 | targetSdkVersion 23 |
Trevor Johns | 09c2691 | 2014-11-12 11:07:34 -0800 | [diff] [blame] | 42 | } |
Trevor Johns | 9a41535 | 2014-10-21 19:52:28 -0700 | [diff] [blame] | 43 | |
Trevor Johns | 40f8fbe | 2015-05-08 19:28:40 -0700 | [diff] [blame] | 44 | compileOptions { |
| 45 | sourceCompatibility JavaVersion.VERSION_1_7 |
| 46 | targetCompatibility JavaVersion.VERSION_1_7 |
| 47 | } |
| 48 | |
Trevor Johns | 9a41535 | 2014-10-21 19:52:28 -0700 | [diff] [blame] | 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 | |
| 61 | } |