chiark / gitweb /
Add Nextcloud and DavDroid test case
[fdroidserver.git] / tests / source-files / at.bitfire.davdroid / build.gradle
1 /*
2  * Copyright (c) Ricki Hirner (bitfire web engineering).
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the GNU Public License v3.0
5  * which accompanies this distribution, and is available at
6  * http://www.gnu.org/licenses/gpl.html
7  */
8
9 apply plugin: 'com.android.application'
10 apply plugin: 'kotlin-android'
11 apply plugin: 'kotlin-android-extensions'
12 apply plugin: 'org.jetbrains.dokka-android'
13
14 android {
15     compileSdkVersion 27
16     buildToolsVersion '27.0.1'
17
18     defaultConfig {
19         applicationId "at.bitfire.davdroid"
20
21         versionCode 197
22         buildConfigField "long", "buildTime", System.currentTimeMillis() + "L"
23         buildConfigField "boolean", "customCerts", "true"
24
25         minSdkVersion 19        // Android 4.4
26         targetSdkVersion 27     // Android 8.1
27
28         // when using this, make sure that notification icons are real bitmaps
29         vectorDrawables.useSupportLibrary = true
30     }
31
32     flavorDimensions "type"
33
34     productFlavors {
35         standard {
36             versionName "1.9.8.1-ose"
37
38             buildConfigField "boolean", "customCerts", "true"
39             buildConfigField "boolean", "customCertsUI", "true"
40         }
41     }
42
43     buildTypes {
44         debug {
45             minifyEnabled false
46         }
47         release {
48             minifyEnabled true
49             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
50         }
51     }
52
53     lintOptions {
54         disable 'GoogleAppIndexingWarning'      // we don't need Google indexing, thanks
55         disable 'ImpliedQuantity', 'MissingQuantity'            // quantities from Transifex may vary
56         disable 'MissingTranslation', 'ExtraTranslation'        // translations from Transifex are not always up to date
57         disable "OnClick"     // doesn't recognize Kotlin onClick methods
58         disable 'Recycle'           // doesn't understand Lombok's @Cleanup
59         disable 'RtlEnabled'
60         disable 'RtlHardcoded'
61         disable 'Typos'
62     }
63     packagingOptions {
64         exclude 'META-INF/DEPENDENCIES'
65         exclude 'META-INF/LICENSE'
66     }
67
68     defaultConfig {
69         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
70     }
71 }
72
73 dependencies {
74     compile project(':cert4android')
75     compile project(':dav4android')
76     compile project(':ical4android')
77     compile project(':vcard4android')
78
79     compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
80
81     compile 'com.android.support:appcompat-v7:27.0.2'
82     compile 'com.android.support:cardview-v7:27.0.2'
83     compile 'com.android.support:design:27.0.2'
84     compile 'com.android.support:preference-v14:27.0.2'
85
86     compile 'com.github.yukuku:ambilwarna:2.0.1'
87
88     compile 'com.squareup.okhttp3:logging-interceptor:3.9.1'
89     compile 'commons-io:commons-io:2.6'
90     compile 'dnsjava:dnsjava:2.1.8'
91     compile 'org.apache.commons:commons-lang3:3.6'
92     compile 'org.apache.commons:commons-collections4:4.1'
93
94     // for tests
95     //noinspection GradleDynamicVersion
96     androidTestCompile('com.android.support.test:runner:+') {
97         exclude group: 'com.android.support', module: 'support-annotations'
98     }
99     //noinspection GradleDynamicVersion
100     androidTestCompile('com.android.support.test:rules:+') {
101         exclude group: 'com.android.support', module: 'support-annotations'
102     }
103     androidTestCompile 'junit:junit:4.12'
104     androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
105
106     testCompile 'junit:junit:4.12'
107     testCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
108 }