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