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
9 apply plugin: 'com.android.application'
10 apply plugin: 'kotlin-android'
11 apply plugin: 'kotlin-android-extensions'
12 apply plugin: 'org.jetbrains.dokka-android'
16 buildToolsVersion '27.0.1'
19 applicationId "at.bitfire.davdroid"
22 buildConfigField "long", "buildTime", System.currentTimeMillis() + "L"
23 buildConfigField "boolean", "customCerts", "true"
25 minSdkVersion 19 // Android 4.4
26 targetSdkVersion 27 // Android 8.1
28 // when using this, make sure that notification icons are real bitmaps
29 vectorDrawables.useSupportLibrary = true
32 flavorDimensions "type"
36 versionName "1.9.8.1-ose"
38 buildConfigField "boolean", "customCerts", "true"
39 buildConfigField "boolean", "customCertsUI", "true"
49 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
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
60 disable 'RtlHardcoded'
64 exclude 'META-INF/DEPENDENCIES'
65 exclude 'META-INF/LICENSE'
69 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
74 compile project(':cert4android')
75 compile project(':dav4android')
76 compile project(':ical4android')
77 compile project(':vcard4android')
79 compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
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'
86 compile 'com.github.yukuku:ambilwarna:2.0.1'
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'
95 //noinspection GradleDynamicVersion
96 androidTestCompile('com.android.support.test:runner:+') {
97 exclude group: 'com.android.support', module: 'support-annotations'
99 //noinspection GradleDynamicVersion
100 androidTestCompile('com.android.support.test:rules:+') {
101 exclude group: 'com.android.support', module: 'support-annotations'
103 androidTestCompile 'junit:junit:4.12'
104 androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
106 testCompile 'junit:junit:4.12'
107 testCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'