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