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.0'
22    compile 'com.android.support:cardview-v7:27.0.0'
23    compile 'com.android.support:design:27.0.0'
24    compile 'com.google.android.gms:play-services-wearable:11.8.0'
25    compile 'com.android.support:support-v13:27.0.2'
26    compile project(':Shared')
27    wearApp project(':Wearable')
28}
29
30// The sample build uses multiple directories to
31// keep boilerplate and common code separate from
32// the main sample code.
33List<String> dirs = [
34    'main',     // main sample code; look here for the interesting stuff.
35    'common',   // components that are reused by multiple samples
36    'template'] // boilerplate code that is generated by the sample template process
37
38android {
39    compileSdkVersion 26
40
41    buildToolsVersion "27.0.2"
42
43    defaultConfig {
44        minSdkVersion 18
45        targetSdkVersion 26
46        versionCode 1
47        versionName "1.0"
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
67}
68