Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 1 | |
| 2 | buildscript { |
| 3 | repositories { |
| 4 | jcenter() |
| 5 | } |
| 6 | |
| 7 | dependencies { |
Jeremy Walker | 967e652 | 2016-12-06 16:33:58 -0800 | [diff] [blame] | 8 | classpath 'com.android.tools.build:gradle:2.2.3' |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 9 | } |
| 10 | } |
| 11 | |
| 12 | apply plugin: 'com.android.application' |
| 13 | |
| 14 | |
| 15 | |
| 16 | dependencies { |
| 17 | |
| 18 | |
| 19 | provided "com.google.android.wearable:wearable:1.0.0" |
| 20 | |
| 21 | compile 'com.google.android.gms:play-services-wearable:9.4.0' |
| 22 | compile 'com.android.support:support-v13:24.2.1' |
| 23 | |
Jeremy Walker | 340c10a | 2016-12-12 11:11:05 -0800 | [diff] [blame^] | 24 | compile 'com.google.android.support:wearable:2.0.0-beta1' |
Jeremy Walker | c45c0c2 | 2016-12-02 11:09:10 -0800 | [diff] [blame] | 25 | |
| 26 | } |
| 27 | |
| 28 | // The sample build uses multiple directories to |
| 29 | // keep boilerplate and common code separate from |
| 30 | // the main sample code. |
| 31 | List<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 | |
| 36 | android { |
| 37 | compileSdkVersion 24 |
| 38 | |
| 39 | buildToolsVersion "24.0.2" |
| 40 | |
| 41 | defaultConfig { |
| 42 | versionCode 1 |
| 43 | versionName "1.0" |
| 44 | |
| 45 | minSdkVersion 23 |
| 46 | |
| 47 | targetSdkVersion 24 |
| 48 | } |
| 49 | |
| 50 | compileOptions { |
| 51 | sourceCompatibility JavaVersion.VERSION_1_7 |
| 52 | targetCompatibility JavaVersion.VERSION_1_7 |
| 53 | } |
| 54 | |
| 55 | sourceSets { |
| 56 | main { |
| 57 | dirs.each { dir -> |
| 58 | java.srcDirs "src/${dir}/java" |
| 59 | res.srcDirs "src/${dir}/res" |
| 60 | } |
| 61 | } |
| 62 | androidTest.setRoot('tests') |
| 63 | androidTest.java.srcDirs = ['tests/src'] |
| 64 | |
| 65 | } |
| 66 | } |