blob: aeece309a2607a5ab28fd1d8acc11c2c89c38cf5 [file] [log] [blame]
Trevor Johns818bd7c2015-05-20 22:03:03 -07001
Trevor Johns684d2c12014-10-16 02:54:51 -07002buildscript {
3 repositories {
Trevor Johns29e861b2014-12-01 14:56:41 -08004 jcenter()
Trevor Johns684d2c12014-10-16 02:54:51 -07005 }
6
7 dependencies {
Trevor Johns8ef75db2016-06-15 10:56:34 -07008 classpath 'com.android.tools.build:gradle:2.1.2'
Trevor Johns684d2c12014-10-16 02:54:51 -07009 }
10}
11
12apply plugin: 'com.android.application'
13
Trevor Johns29e861b2014-12-01 14:56:41 -080014repositories {
15 jcenter()
16}
17
Trevor Johns684d2c12014-10-16 02:54:51 -070018dependencies {
Trevor Johns8ef75db2016-06-15 10:56:34 -070019 compile "com.android.support:support-v4:24.0.0-beta1"
20 compile "com.android.support:support-v13:24.0.0-beta1"
21 compile "com.android.support:cardview-v7:24.0.0-beta1"
22 compile "com.android.support:appcompat-v7:24.0.0-beta1"
Trevor Johns684d2c12014-10-16 02:54:51 -070023}
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 21
Trevor Johns8ef75db2016-06-15 10:56:34 -070035 buildToolsVersion "23.0.3"
Trevor Johns684d2c12014-10-16 02:54:51 -070036
37 defaultConfig {
38 minSdkVersion 21
39 targetSdkVersion 21
40 }
41
Trevor Johns40f8fbe2015-05-08 19:28:40 -070042 compileOptions {
43 sourceCompatibility JavaVersion.VERSION_1_7
44 targetCompatibility JavaVersion.VERSION_1_7
45 }
46
Trevor Johns684d2c12014-10-16 02:54:51 -070047 sourceSets {
48 main {
49 dirs.each { dir ->
50 java.srcDirs "src/${dir}/java"
51 res.srcDirs "src/${dir}/res"
52 }
53 }
54 androidTest.setRoot('tests')
55 androidTest.java.srcDirs = ['tests/src']
56
57 }
58
59}