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.google.android.gms:play-services-wearable:11.8.0'
22    compile 'com.android.support:support-v13:27.0.2'
23
24    provided 'com.google.android.wearable:wearable:2.2.0'
25
26    compile 'com.google.android.support:wearable:2.2.0'
27
28    compile project(':Shared')
29}
30
31// The sample build uses multiple directories to
32// keep boilerplate and common code separate from
33// the main sample code.
34List<String> dirs = [
35    'main',     // main sample code; look here for the interesting stuff.
36    'common',   // components that are reused by multiple samples
37    'template'] // boilerplate code that is generated by the sample template process
38
39android {
40
41    compileSdkVersion 27
42
43    buildToolsVersion "27.0.2"
44
45    defaultConfig {
46        versionCode 1
47        versionName "1.0"
48
49        minSdkVersion 18
50
51        targetSdkVersion 25
52
53
54    }
55
56    compileOptions {
57        sourceCompatibility JavaVersion.VERSION_1_7
58        targetCompatibility JavaVersion.VERSION_1_7
59    }
60
61    sourceSets {
62        main {
63            dirs.each { dir ->
64                java.srcDirs "src/${dir}/java"
65                res.srcDirs "src/${dir}/res"
66            }
67        }
68        androidTest.setRoot('tests')
69        androidTest.java.srcDirs = ['tests/src']
70
71    }
72}
73