espace-formation-initiation-android / CardView / Application / build.gradle
Historique | Voir | Annoter | Télécharger (1,185 ko)
1 | 1 | segarra | |
---|---|---|---|
2 | buildscript { |
||
3 | repositories { |
||
4 | jcenter() |
||
5 | } |
||
6 | |||
7 | dependencies { |
||
8 | classpath 'com.android.tools.build:gradle:2.2.3' |
||
9 | } |
||
10 | } |
||
11 | |||
12 | apply plugin: 'com.android.application' |
||
13 | |||
14 | repositories { |
||
15 | jcenter() |
||
16 | } |
||
17 | |||
18 | dependencies { |
||
19 | compile 'com.android.support:cardview-v7:24.0.0' |
||
20 | } |
||
21 | |||
22 | // The sample build uses multiple directories to |
||
23 | // keep boilerplate and common code separate from |
||
24 | // the main sample code. |
||
25 | List<String> dirs = [ |
||
26 | 'main', // main sample code; look here for the interesting stuff. |
||
27 | 'common', // components that are reused by multiple samples |
||
28 | 'template'] // boilerplate code that is generated by the sample template process |
||
29 | |||
30 | android { |
||
31 | compileSdkVersion 25 |
||
32 | buildToolsVersion "25.0.2" |
||
33 | |||
34 | defaultConfig { |
||
35 | minSdkVersion 7 |
||
36 | targetSdkVersion 25 |
||
37 | } |
||
38 | |||
39 | compileOptions { |
||
40 | sourceCompatibility JavaVersion.VERSION_1_7 |
||
41 | targetCompatibility JavaVersion.VERSION_1_7 |
||
42 | } |
||
43 | |||
44 | sourceSets { |
||
45 | main { |
||
46 | dirs.each { dir -> |
||
47 | java.srcDirs "src/${dir}/java" |
||
48 | res.srcDirs "src/${dir}/res" |
||
49 | } |
||
50 | } |
||
51 | androidTest.setRoot('tests') |
||
52 | androidTest.java.srcDirs = ['tests/src'] |
||
53 | |||
54 | } |
||
55 | |||
56 | } |