• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2buildscript {
3    repositories {
4        jcenter()
5    }
6
7    dependencies {
8        classpath 'com.android.tools.build:gradle:2.3.1'
9    }
10}
11
12apply plugin: 'com.android.application'
13
14
15
16dependencies {
17
18    compile 'com.android.support:appcompat-v7:25.1.1'
19
20
21    compile 'com.google.android.gms:play-services-wearable:10.2.4'
22    compile 'com.android.support:support-v13:25.3.1'
23
24    provided 'com.google.android.wearable:wearable:2.0.1'
25
26    compile 'com.google.android.support:wearable:2.0.1'
27
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 25
40
41    buildToolsVersion "25.0.3"
42
43    defaultConfig {
44        versionCode 1
45        versionName "1.0"
46
47        minSdkVersion 25
48
49        targetSdkVersion 25
50    }
51
52    compileOptions {
53        sourceCompatibility JavaVersion.VERSION_1_7
54        targetCompatibility JavaVersion.VERSION_1_7
55    }
56
57    sourceSets {
58        main {
59            dirs.each { dir ->
60                java.srcDirs "src/${dir}/java"
61                res.srcDirs "src/${dir}/res"
62            }
63        }
64        androidTest.setRoot('tests')
65        androidTest.java.srcDirs = ['tests/src']
66
67    }
68}
69