Merge remote-tracking branch 'remotes/upstream/master' 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.3.0'
7 }
8 }
9
10 apply plugin: 'com.android.application'
11
12 repositories {
13 mavenCentral()
14
15 flatDir {
16 dirs 'libs'
17 }
18 }
19
20 dependencies {
21 compile name: 'touch-image-view'
22 compile project(':owncloud-android-library')
23 compile 'com.android.support:support-v4:22.2.1'
24 compile 'com.jakewharton:disklrucache:2.0.2'
25 compile 'com.android.support:appcompat-v7:22.2.1'
26 compile 'com.getbase:floatingactionbutton:1.10.1'
27 }
28
29 android {
30 compileSdkVersion 22
31 buildToolsVersion "22.0.1"
32
33 defaultConfig {
34 applicationId "com.owncloud.android.beta"
35 versionCode 20151125
36 versionName "ownCloud beta"
37 }
38
39 sourceSets {
40 main {
41 manifest.srcFile 'AndroidManifest.xml'
42 java.srcDirs = ['src']
43 resources.srcDirs = ['src']
44 aidl.srcDirs = ['src']
45 renderscript.srcDirs = ['src']
46 res.srcDirs = ['res']
47 assets.srcDirs = ['res']
48 }
49
50 // Move the tests to tests/java, tests/res, etc...
51 instrumentTest.setRoot('tests')
52
53 // Move the build types to build-types/<type>
54 // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
55 // This moves them out of them default location under src/<type>/... which would
56 // conflict with src/ being used by the main source set.
57 // Adding new build types or product flavors should be accompanied
58 // by a similar customization.
59 debug.setRoot('build-types/debug')
60 release.setRoot('build-types/release')
61 }
62
63 android {
64 lintOptions {
65 abortOnError false
66 }
67 }
68
69 productFlavors {
70 }
71
72 packagingOptions {
73 exclude 'META-INF/LICENSE.txt'
74 }
75
76 signingConfigs {
77 release {
78 storeFile file(RELEASE_STORE_FILE)
79 storePassword RELEASE_STORE_PASSWORD
80 keyAlias RELEASE_KEY_ALIAS
81 keyPassword RELEASE_KEY_PASSWORD
82 }
83 }
84
85 buildTypes {
86 release {
87 signingConfig signingConfigs.release
88 }
89 }
90
91 }