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