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