update
[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
34 defaultConfig {
35 applicationId "com.owncloud.android.beta"
36 }
37
38 sourceSets {
39 main {
40 manifest.srcFile 'AndroidManifest.xml'
41 java.srcDirs = ['src']
42 resources.srcDirs = ['src']
43 aidl.srcDirs = ['src']
44 renderscript.srcDirs = ['src']
45 res.srcDirs = ['res']
46 assets.srcDirs = ['res']
47 }
48
49 // Move the tests to tests/java, tests/res, etc...
50 instrumentTest.setRoot('tests')
51
52 // Move the build types to build-types/<type>
53 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
54 // This moves them out of them default location under src/<type>/... which would
55 // conflict with src/ being used by the main source set.
56 // Adding new build types or product flavors should be accompanied
57 // by a similar customization.
58 debug.setRoot('build-types/debug')
59 release.setRoot('build-types/release')
60 }
61
62 android {
63 lintOptions {
64 abortOnError false
65 }
66 }
67
68 productFlavors {
69 }
70
71 packagingOptions {
72 exclude 'META-INF/LICENSE.txt'
73 }
74 }
75
76