Merge branch 'target_marshmallow' of https://github.com/owncloud/android into target_...
[pub/Android/ownCloud.git] / build.gradle
1 buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
6 classpath 'com.android.tools.build:gradle:1.2.3'
7 }
8 }
9
10 apply plugin: 'com.android.application'
11
12
13 repositories {
14 mavenCentral()
15
16 flatDir {
17 dirs 'libs'
18 }
19 }
20
21 dependencies {
22 compile name: 'touch-image-view'
23 compile 'com.android.support:support-v4:22.2.1'
24 compile project(':owncloud-android-library')
25 compile 'com.jakewharton:disklrucache:2.0.2'
26 compile 'com.android.support:appcompat-v7:22.2.1'
27 compile 'com.getbase:floatingactionbutton:1.10.1'
28 }
29
30 android {
31 compileSdkVersion 22
32 buildToolsVersion "22.0.1"
33 sourceSets {
34 main {
35 manifest.srcFile 'AndroidManifest.xml'
36 java.srcDirs = ['src']
37 resources.srcDirs = ['src']
38 aidl.srcDirs = ['src']
39 renderscript.srcDirs = ['src']
40 res.srcDirs = ['res']
41 assets.srcDirs = ['res']
42 }
43
44 // Move the tests to tests/java, tests/res, etc...
45 instrumentTest.setRoot('tests')
46
47 // Move the build types to build-types/<type>
48 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
49 // This moves them out of them default location under src/<type>/... which would
50 // conflict with src/ being used by the main source set.
51 // Adding new build types or product flavors should be accompanied
52 // by a similar customization.
53 debug.setRoot('build-types/debug')
54 release.setRoot('build-types/release')
55 }
56
57 android {
58 lintOptions {
59 abortOnError false
60 }
61 }
62
63 productFlavors {
64 }
65
66 packagingOptions {
67 exclude 'META-INF/LICENSE.txt'
68 }
69 }
70
71