thunderbird-android/app/k9mail/build.gradle
2018-06-21 22:53:38 +02:00

166 lines
5.7 KiB
Groovy

apply plugin: 'com.android.application'
apply plugin: 'org.jetbrains.kotlin.android'
apply plugin: 'org.jetbrains.kotlin.android.extensions'
apply from: "${rootProject.projectDir}/gradle/plugins/checkstyle-android.gradle"
apply from: "${rootProject.projectDir}/gradle/plugins/findbugs-android.gradle"
if (rootProject.testCoverage) {
apply plugin: 'jacoco'
}
//noinspection GroovyAssignabilityCheck
configurations.all {
resolutionStrategy {
force "com.android.support:support-annotations:${versions.supportLibrary}"
force "com.android.support:design:${versions.supportLibrary}"
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
implementation project(":mail:common")
implementation project(":mail:protocols:imap")
implementation project(":mail:protocols:pop3")
implementation project(":mail:protocols:webdav")
implementation project(":mail:protocols:smtp")
implementation project(":backend:api")
implementation project(":backend:imap")
implementation project(":backend:pop3")
implementation project(":backend:webdav")
implementation project(':plugins:HoloColorPicker')
implementation project(':plugins:openpgp-api-lib:openpgp-api')
implementation "com.squareup.okio:okio:${versions.okio}"
implementation "commons-io:commons-io:${versions.commonsIo}"
implementation "com.android.support:support-v4:${versions.supportLibrary}"
implementation "com.android.support:appcompat-v7:${versions.supportLibrary}"
implementation "com.takisoft.fix:preference-v7:${versions.preferencesFix}"
implementation "com.takisoft.fix:preference-v7-datetimepicker:${versions.preferencesFix}"
implementation "com.takisoft.fix:preference-v7-colorpicker:${versions.preferencesFix}"
implementation "com.takisoft.fix:preference-v7-ringtone:${versions.preferencesFix}"
implementation "com.android.support:recyclerview-v7:${versions.supportLibrary}"
implementation "android.arch.lifecycle:extensions:${versions.lifecycleExtensions}"
implementation "androidx.core:core-ktx:0.3"
implementation "org.jsoup:jsoup:1.11.2"
implementation "de.cketti.library.changelog:ckchangelog:1.2.1"
implementation "com.github.bumptech.glide:glide:3.6.1"
implementation "com.splitwise:tokenautocomplete:2.0.7"
implementation "de.cketti.safecontentresolver:safe-content-resolver-v14:0.9.0"
implementation "com.github.amlcurran.showcaseview:library:5.4.1"
implementation "com.squareup.moshi:moshi:1.2.0"
implementation "com.jakewharton.timber:timber:${versions.timber}"
implementation "net.jcip:jcip-annotations:1.0"
implementation "org.apache.james:apache-mime4j-core:0.8.1"
implementation "com.xwray:groupie:2.1.0"
implementation "com.xwray:groupie-kotlin-android-extensions:2.1.0"
implementation "org.jetbrains.anko:anko-coroutines:0.10.4"
implementation "org.koin:koin-android-architecture:${versions.koin}"
implementation 'com.mikepenz:materialdrawer:6.0.7'
androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.1"
testImplementation "org.robolectric:robolectric:${versions.robolectric}"
testImplementation "junit:junit:${versions.junit}"
testImplementation "com.google.truth:truth:${versions.truth}"
testImplementation "org.mockito:mockito-core:${versions.mockito}"
testImplementation "com.nhaarman:mockito-kotlin:${versions.mockitoKotlin}"
testImplementation "org.jdom:jdom2:2.0.6"
testImplementation "org.koin:koin-test:${versions.koin}"
}
android {
compileSdkVersion buildConfig.compileSdk
buildToolsVersion buildConfig.buildTools
defaultConfig {
applicationId "com.fsck.k9"
testApplicationId "com.fsck.k9.tests"
versionCode 27000
versionName '5.700-SNAPSHOT'
minSdkVersion buildConfig.minSdk
targetSdkVersion 22
generatedDensities = ['mdpi', 'hdpi', 'xhdpi']
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
signingConfigs {
release
}
buildTypes {
release {
if (project.hasProperty('storeFile')) {
signingConfig signingConfigs.release
}
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "boolean", "DEVELOPER_MODE", "false"
}
debug {
applicationIdSuffix ".debug"
testCoverageEnabled rootProject.testCoverage
buildConfigField "boolean", "DEVELOPER_MODE", "true"
}
}
// Do not abort build if lint finds errors
lintOptions {
abortOnError false
lintConfig file("$rootProject.projectDir/config/lint/lint.xml")
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/README'
exclude 'LICENSE.txt'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
androidExtensions {
experimental = true
}
kotlin {
experimental {
coroutines "enable"
}
}
if (project.hasProperty('keyAlias')) {
android.signingConfigs.release.keyAlias = keyAlias
}
if (project.hasProperty('keyPassword')) {
android.signingConfigs.release.keyPassword = keyPassword
}
if (project.hasProperty('storeFile')) {
android.signingConfigs.release.storeFile = file(storeFile)
}
if (project.hasProperty('storePassword')) {
android.signingConfigs.release.storePassword = storePassword
}