Merge pull request #1048 from owncloud/shareWithYou_icon_in_fileList
[pub/Android/ownCloud.git] / build.gradle
1 buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
6 classpath 'com.android.tools.build:gradle:1.0.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 'com.android.support:support-v4:19.1.0'
24 compile project(':owncloud-android-library')
25 compile 'com.jakewharton:disklrucache:2.0.2'
26 compile 'com.android.support:appcompat-v7:19.1.0'
27 }
28
29 android {
30 compileSdkVersion 19
31 buildToolsVersion "20.0.0"
32 sourceSets {
33 main {
34 manifest.srcFile 'AndroidManifest.xml'
35 java.srcDirs = ['src']
36 resources.srcDirs = ['src']
37 aidl.srcDirs = ['src']
38 renderscript.srcDirs = ['src']
39 res.srcDirs = ['res']
40 assets.srcDirs = ['res']
41 }
42
43 // Move the tests to tests/java, tests/res, etc...
44 instrumentTest.setRoot('tests')
45
46 // Move the build types to build-types/<type>
47 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
48 // This moves them out of them default location under src/<type>/... which would
49 // conflict with src/ being used by the main source set.
50 // Adding new build types or product flavors should be accompanied
51 // by a similar customization.
52 debug.setRoot('build-types/debug')
53 release.setRoot('build-types/release')
54 }
55
56 android {
57 lintOptions {
58 abortOnError false
59 }
60 }
61
62
63 compileOptions {
64 sourceCompatibility JavaVersion.VERSION_1_7
65 targetCompatibility JavaVersion.VERSION_1_7
66 }
67
68 productFlavors {
69 }
70
71 packagingOptions {
72 exclude 'META-INF/LICENSE.txt'
73 }
74 }
75
76