Merge branch 'material_buttons' of https://github.com/owncloud/android into material_fab
[pub/Android/ownCloud.git] / build.gradle
1 buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
6 classpath 'com.android.tools.build:gradle:1.3.0'
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 project(':owncloud-android-library')
24 compile 'com.jakewharton:disklrucache:2.0.2'
25 compile 'com.android.support:appcompat-v7:23.1.0'
26 compile 'com.getbase:floatingactionbutton:1.10.1'
27 }
28
29 android {
30 compileSdkVersion 23
31 buildToolsVersion "23.0.1"
32 // as long as ownCloud uses Apache HTTP
33 // http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client
34 useLibrary 'org.apache.http.legacy'
35 sourceSets {
36 main {
37 manifest.srcFile 'AndroidManifest.xml'
38 java.srcDirs = ['src']
39 resources.srcDirs = ['src']
40 aidl.srcDirs = ['src']
41 renderscript.srcDirs = ['src']
42 res.srcDirs = ['res']
43 assets.srcDirs = ['res']
44 }
45
46 // Move the tests to tests/java, tests/res, etc...
47 instrumentTest.setRoot('tests')
48
49 // Move the build types to build-types/<type>
50 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
51 // This moves them out of them default location under src/<type>/... which would
52 // conflict with src/ being used by the main source set.
53 // Adding new build types or product flavors should be accompanied
54 // by a similar customization.
55 debug.setRoot('build-types/debug')
56 release.setRoot('build-types/release')
57 }
58
59 android {
60 lintOptions {
61 abortOnError false
62 }
63 }
64
65 productFlavors {
66 }
67
68 packagingOptions {
69 exclude 'META-INF/LICENSE.txt'
70 }
71 }
72
73