blob: 506795fe1242e4f3098fde5b7a45203312009210 [file] [log] [blame]
Alexander Lucas3b4da722013-11-21 12:45:31 -08001
2
3
4buildscript {
5 repositories {
6 mavenCentral()
7 }
8
9 dependencies {
Alexander Lucasc9605c12014-02-06 14:42:27 -080010 classpath 'com.android.tools.build:gradle:0.8.+'
Alexander Lucas3b4da722013-11-21 12:45:31 -080011 }
12}
13
14apply plugin: 'android'
15
16dependencies {
17 // Add the support lib that is appropriate for SDK 14
Alexander Lucasc9605c12014-02-06 14:42:27 -080018 compile "com.android.support:support-v13:19.0.+"
Alexander Lucas3b4da722013-11-21 12:45:31 -080019}
20
21// The sample build uses multiple directories to
22// keep boilerplate and common code separate from
23// the main sample code.
24List<String> dirs = [
25 'main', // main sample code; look here for the interesting stuff.
26 'common', // components that are reused by multiple samples
27 'template'] // boilerplate code that is generated by the sample template process
28
29android {
30 compileSdkVersion 19
Alexander Lucasc9605c12014-02-06 14:42:27 -080031 buildToolsVersion "19.0.1"
Alexander Lucas3b4da722013-11-21 12:45:31 -080032
33 sourceSets {
34 main {
35 dirs.each { dir ->
36 java.srcDirs "src/${dir}/java"
37 res.srcDirs "src/${dir}/res"
38 }
39 }
40 instrumentTest.setRoot('tests')
41 instrumentTest.java.srcDirs = ['tests/src']
42 }
43}
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58