thunderbird-android/app/k9mail/build.gradle

147 lines
4.7 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.application'
2018-05-23 17:45:46 +00:00
apply plugin: 'org.jetbrains.kotlin.android'
if (rootProject.testCoverage) {
apply plugin: 'jacoco'
}
dependencies {
implementation project(":app:ui:legacy")
implementation project(":app:core")
implementation project(":app:storage")
implementation project(":app:crypto-openpgp")
implementation project(":backend:imap")
implementation project(":backend:pop3")
implementation project(":backend:webdav")
2021-09-23 19:15:59 +00:00
debugImplementation project(":backend:demo")
2018-02-17 03:05:09 +00:00
2019-02-09 04:23:37 +00:00
implementation "androidx.appcompat:appcompat:${versions.androidxAppCompat}"
implementation "androidx.core:core-ktx:${versions.androidxCore}"
2020-03-11 15:44:13 +00:00
implementation "com.takisoft.preferencex:preferencex:${versions.preferencesFix}"
2018-07-08 01:27:52 +00:00
implementation "com.jakewharton.timber:timber:${versions.timber}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.kotlinCoroutines}"
2018-07-08 01:27:52 +00:00
2020-07-15 21:23:05 +00:00
implementation "com.github.bumptech.glide:glide:${versions.glide}"
annotationProcessor "com.github.bumptech.glide:compiler:${versions.glide}"
if (project.hasProperty('k9mail.enableLeakCanary') && project.property('k9mail.enableLeakCanary') == "true") {
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.4'
}
2020-05-16 19:06:06 +00:00
// Required for DependencyInjectionTest to be able to resolve OpenPgpApiManager
testImplementation project(':plugins:openpgp-api-lib:openpgp-api')
2018-06-29 14:12:20 +00:00
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}"
2021-04-21 23:57:38 +00:00
testImplementation "org.mockito.kotlin:mockito-kotlin:${versions.mockitoKotlin}"
2018-06-29 14:12:20 +00:00
testImplementation "org.koin:koin-test:${versions.koin}"
}
android {
compileSdkVersion buildConfig.compileSdk
buildToolsVersion buildConfig.buildTools
defaultConfig {
applicationId "com.fsck.k9"
testApplicationId "com.fsck.k9.tests"
2021-09-28 13:55:46 +00:00
versionCode 29003
versionName '5.903'
// Keep in sync with the resource string array 'supported_languages'
resConfigs "in", "br", "ca", "cs", "cy", "da", "de", "et", "en", "en_GB", "es", "eo", "eu", "fr", "gd", "gl",
"hr", "is", "it", "lv", "lt", "hu", "nl", "nb", "pl", "pt_PT", "pt_BR", "ru", "ro", "sq", "sk", "sl",
2021-02-19 13:17:38 +00:00
"fi", "sv", "tr", "el", "be", "bg", "sr", "uk", "iw", "ar", "fa", "ml", "ko", "zh_CN", "zh_TW", "ja"
minSdkVersion buildConfig.minSdk
targetSdkVersion buildConfig.targetSdk
vectorDrawables.useSupportLibrary = true
2019-02-09 04:23:37 +00:00
testInstrumentationRunner "androidx.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"
2018-05-23 18:09:33 +00:00
testCoverageEnabled rootProject.testCoverage
minifyEnabled false
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 'META-INF/README.md'
exclude 'META-INF/CHANGES'
exclude 'LICENSE.txt'
exclude 'META-INF/*.kotlin_module'
exclude 'META-INF/*.version'
exclude 'kotlin/**'
2020-10-04 19:51:17 +00:00
exclude 'DebugProbesKt.bin'
}
2020-07-14 23:51:13 +00:00
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
compileOptions {
sourceCompatibility javaVersion
targetCompatibility javaVersion
}
kotlinOptions {
jvmTarget = kotlinJvmVersion
}
testOptions {
unitTests {
includeAndroidResources = true
}
}
}
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
}