Merge branch 'target_marshmallow' of https://github.com/owncloud/android into beta
[pub/Android/ownCloud.git] / build.gradle
1 buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
6 classpath 'com.android.tools.build:gradle:1.5.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.android.support:support-v4:23.1.1'
25 compile 'com.jakewharton:disklrucache:2.0.2'
26 compile 'com.android.support:appcompat-v7:23.1.1'
27 compile 'com.getbase:floatingactionbutton:1.10.1'
28 }
29
30 android {
31 compileSdkVersion 23
32 buildToolsVersion "23.0.2"
33 // as long as ownCloud uses Apache HTTP
34 // http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html#behavior-apache-http-client
35 useLibrary 'org.apache.http.legacy'
36
37 defaultConfig {
38 applicationId "com.owncloud.android.beta"
39 versionCode 20151128
40 versionName "ownCloud beta"
41 }
42
43 sourceSets {
44 main {
45 manifest.srcFile 'AndroidManifest.xml'
46 java.srcDirs = ['src']
47 resources.srcDirs = ['src']
48 aidl.srcDirs = ['src']
49 renderscript.srcDirs = ['src']
50 res.srcDirs = ['res']
51 assets.srcDirs = ['res']
52 }
53
54 // Move the tests to tests/java, tests/res, etc...
55 instrumentTest.setRoot('tests')
56
57 // Move the build types to build-types/<type>
58 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
59 // This moves them out of them default location under src/<type>/... which would
60 // conflict with src/ being used by the main source set.
61 // Adding new build types or product flavors should be accompanied
62 // by a similar customization.
63 debug.setRoot('build-types/debug')
64 release.setRoot('build-types/release')
65 }
66
67 android {
68 lintOptions {
69 abortOnError false
70 }
71 }
72
73 productFlavors {
74 }
75
76 packagingOptions {
77 exclude 'META-INF/LICENSE.txt'
78 }
79
80 signingConfigs {
81 release {
82 storeFile file(RELEASE_STORE_FILE)
83 storePassword RELEASE_STORE_PASSWORD
84 keyAlias RELEASE_KEY_ALIAS
85 keyPassword RELEASE_KEY_PASSWORD
86 }
87 }
88
89 buildTypes {
90 release {
91 signingConfig signingConfigs.release
92 }
93 }
94
95 }